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 7235b56..0f7551d 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -4,8 +4,6 @@ on: push: branches: [master] pull_request: - branches: - - UTI-2583--adapt-haste-client-to-new-api jobs: unit_tests: @@ -14,15 +12,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 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. 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 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