From 65adc1ae4eb007494cd8f46ccad3ef12a82e4de8 Mon Sep 17 00:00:00 2001 From: Yusuf Yilmaz Date: Tue, 31 Jan 2023 10:16:00 +0300 Subject: [PATCH 1/6] Update hastebin urls --- lib/haste/uploader.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/haste/uploader.rb b/lib/haste/uploader.rb index f42b06f..5149033 100644 --- a/lib/haste/uploader.rb +++ b/lib/haste/uploader.rb @@ -4,8 +4,8 @@ require 'uri' module Haste - DEFAULT_SERVER_URL = 'https://new.hastebin.com' - DEFAULT_SHARE_SERVER_URL = 'https://new.hastebin.com' + DEFAULT_SERVER_URL = 'https://hastebin.com' + DEFAULT_SHARE_SERVER_URL = 'https://hastebin.com' class Uploader From 7028107b9f49ae63016a2bb845a3f993a7933bcf Mon Sep 17 00:00:00 2001 From: Yusuf Yilmaz Date: Tue, 31 Jan 2023 10:21:32 +0300 Subject: [PATCH 2/6] Fix licence link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6388f2d..00b0e6c 100644 --- a/README.md +++ b/README.md @@ -131,4 +131,4 @@ uploader.upload_path '/tmp/whaaaa' # key ## Contributor License Agreement -Licensed under the [MIT](https://github.com/toptal/haste-client/blob/main/LICENSE.txt 'https://github.com/toptal/haste-client/blob/main/LICENSE.txt') license. +Licensed under the [MIT](https://github.com/toptal/haste-client/blob/master/LICENSE.txt 'https://github.com/toptal/haste-client/blob/main/LICENSE.txt') license. From f918c81b3887297508c9803e6d9ee6dfd472d011 Mon Sep 17 00:00:00 2001 From: Yusuf Yilmaz Date: Tue, 31 Jan 2023 11:12:33 +0300 Subject: [PATCH 3/6] update ga test workflow --- .github/workflows/unit.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 7235b56..c7d5c98 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -5,7 +5,7 @@ on: branches: [master] pull_request: branches: - - UTI-2583--adapt-haste-client-to-new-api + - no-jira-update-hastebin-urls jobs: unit_tests: @@ -14,15 +14,16 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/checkout@v1 - - uses: actions/setup-ruby@v1 - with: - ruby-version: 3.0.0 + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' + bundler-cache: true - - name: Run bundle install - run: | - gem install bundler - bundle install --jobs 4 --retry 3 + - name: Run bundle install + run: | + gem install bundler + bundle install --jobs 4 --retry 3 - - name: Build and test with rspec - run: bundle exec rspec spec + - name: Build and test with rspec + run: bundle exec rspec spec From ca19c717386ce78ff468bca97da931360155e9a3 Mon Sep 17 00:00:00 2001 From: Yusuf Yilmaz Date: Tue, 31 Jan 2023 11:14:10 +0300 Subject: [PATCH 4/6] update ga test workflow --- .github/workflows/unit.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index c7d5c98..e097777 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -4,8 +4,7 @@ on: push: branches: [master] pull_request: - branches: - - no-jira-update-hastebin-urls + branches: [no-jira-update-hastebin-urls] jobs: unit_tests: From 57bd045ae9030d6c1a5ad0eb4304865b8704f1aa Mon Sep 17 00:00:00 2001 From: Yusuf Yilmaz Date: Tue, 31 Jan 2023 11:15:10 +0300 Subject: [PATCH 5/6] update ga test workflow --- .bundle/config | 3 +++ .github/workflows/unit.yml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .bundle/config diff --git a/.bundle/config b/.bundle/config new file mode 100644 index 0000000..b572b09 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,3 @@ +--- +BUNDLE_RETRY: "3" +BUNDLE_JOBS: "4" diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index e097777..0f7551d 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -4,7 +4,6 @@ on: push: branches: [master] pull_request: - branches: [no-jira-update-hastebin-urls] jobs: unit_tests: From 34dd41eb0499f4d284c6077b447828eb747e0abb Mon Sep 17 00:00:00 2001 From: Yusuf Yilmaz Date: Tue, 31 Jan 2023 11:48:30 +0300 Subject: [PATCH 6/6] Fix gem specs --- haste.gemspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haste.gemspec b/haste.gemspec index a5465e7..756f1b5 100644 --- a/haste.gemspec +++ b/haste.gemspec @@ -3,14 +3,14 @@ require File.dirname(__FILE__) + '/lib/haste/version' Gem::Specification.new do |s| s.name = 'haste' - s.author = 'John Crepezzi' + s.author = '@toptal/marketing-tools-2-eng' s.add_development_dependency('rspec') s.add_dependency('json') s.add_dependency('faraday', '~> 0.9') s.description = 'CLI Haste Client' s.license = 'MIT License' - s.homepage = 'https://github.com/seejohnrun/haste-client' - s.email = 'john.crepezzi@gmail.com' + s.homepage = 'https://github.com/toptal/haste-client' + s.email = 'support@toptal.com' s.executables = 'haste' s.files = Dir['lib/**/*.rb', 'haste'] s.platform = Gem::Platform::RUBY