Skip to content

Commit

Permalink
Specify correct minimal Faraday version (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov authored Apr 19, 2022
1 parent b3ae36b commit 0249c51
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .gemfiles/faraday-0.gemfile

This file was deleted.

3 changes: 0 additions & 3 deletions .gemfiles/faraday-1.gemfile

This file was deleted.

3 changes: 0 additions & 3 deletions .gemfiles/faraday-2.gemfile

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
build:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/.gemfiles/${{ matrix.gemfile }}.gemfile
FARADAY_VERSION: ${{ matrix.faraday }}
strategy:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0', '3.1', 'truffleruby', 'jruby' ]
gemfile: [ 'faraday-0', 'faraday-1', 'faraday-2' ]
faraday: [ '~> 0.17.3', '~> 1.0', '~> 2.0' ]

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ source "http://rubygems.org"

gemspec

gem 'rake'
gem "rake"

group :test do
gem "minitest"
end

install_if -> { ENV["FARADAY_VERSION"] } do
gem "faraday", ENV["FARADAY_VERSION"]
end
2 changes: 1 addition & 1 deletion sawyer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/lostisland/sawyer'
spec.licenses = ['MIT']

spec.add_dependency 'faraday', ">= 0.9", "< 3"
spec.add_dependency 'faraday', '>= 0.17.3', '< 3'
spec.add_dependency 'addressable', ['>= 2.3.5']

spec.files = %w(Gemfile LICENSE.md README.md Rakefile)
Expand Down

0 comments on commit 0249c51

Please sign in to comment.