Skip to content

Commit 767eb8d

Browse files
authored
build: switch to Faraday 2 for the build environment, fixes #118 (#120)
Co-authored-by: Benny Lyne Amorsen <benny.amorsen@dstny.com>
1 parent fa3e775 commit 767eb8d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/rspec.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Ruby
2020
uses: ruby/setup-ruby@v1
2121
with:
22-
ruby-version: '2.7'
22+
ruby-version: '3.0'
2323

2424
- name: Bundler
2525
run: bundle install

‎Appraisals‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ end
1212

1313
appraise 'faraday2' do
1414
gem 'faraday', '< 3'
15-
gem 'faraday-net_http_persistent'
15+
gem 'faraday-net_http_persistent', '~> 2.3'
1616
remove_gem 'faraday_middleware'
1717
end

‎Gemfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ gem 'rspec'
1414
gem 'simplecov'
1515
gem 'warning'
1616

17-
# fallback to faraday 1.x in dev environment
18-
gem 'faraday', '~> 1.10'
19-
gem 'faraday_middleware'
17+
# default to faraday 2.x in dev environment
18+
gem 'faraday', '~> 2.14'
19+
gem 'faraday-net_http_persistent', '~> 2.3'
2020

2121
# Dev tools / linter
2222
gem 'rubocop', require: false

‎gemfiles/faraday2.gemfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ gem "rubocop", require: false
1414
gem "rubocop-performance", require: false
1515
gem "rubocop-rake", require: false
1616
gem "rubocop-rspec", require: false
17-
gem "faraday-net_http_persistent"
17+
gem "faraday-net_http_persistent", "~> 2.3"
1818

1919
gemspec path: "../"

0 commit comments

Comments
 (0)