Skip to content

Commit d4c421c

Browse files
authored
Merge pull request JsonApiClient#412 from Shopify/seb-faraday-2.x
Add support for faraday 2.x
2 parents 5d46961 + 1db00ea commit d4c421c

21 files changed

Lines changed: 117 additions & 172 deletions

.github/workflows/ruby.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,11 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
ruby: [2.3, 2.4, 2.5, 2.6, 2.7]
26-
rails: ["4.1", "4.2", "5.0", "5.2.3", "6.0"]
27-
exclude:
28-
- ruby: "2.4"
29-
rails: "4.1"
30-
- ruby: "2.4"
31-
rails: "4.2"
32-
- ruby: "2.4"
33-
rails: "6.0"
34-
- ruby: "2.5"
35-
rails: "4.1"
36-
- ruby: "2.5"
37-
rails: "4.2"
38-
- ruby: "2.6"
39-
rails: "4.1"
40-
- ruby: "2.6"
41-
rails: "4.2"
42-
- ruby: "2.7"
43-
rails: "4.1"
44-
- ruby: "2.7"
45-
rails: "4.2"
25+
ruby:
26+
- "3.0"
27+
- "3.1"
28+
- "3.2"
29+
- "3.3"
4630
steps:
4731
- uses: actions/checkout@v4
4832
- name: Set up Ruby
@@ -51,4 +35,6 @@ jobs:
5135
ruby-version: ${{ matrix.ruby }}
5236
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
5337
- name: Run tests
54-
run: bundle exec rake
38+
run: |
39+
bundle exec appraisal install
40+
bundle exec appraisal rake test

Appraisals

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
appraise '3.2' do
2-
gem 'activesupport', '~> 3.2.22'
3-
gem 'minitest', '~> 5'
1+
appraise 'activesupport-6.0' do
2+
gem 'activesupport', '~> 6.0.0'
43
end
54

6-
appraise '4.0' do
7-
gem 'activesupport', '~> 4.0.13'
5+
appraise 'activesupport-6.1' do
6+
gem 'activesupport', '~> 6.1.0'
87
end
98

10-
appraise '4.1' do
11-
gem 'activesupport', '~> 4.1.14'
9+
appraise 'activesupport-7.0' do
10+
gem 'activesupport', '~> 7.0.0'
1211
end
1312

14-
appraise '4.2' do
15-
gem 'activesupport', '~> 4.2.5.1'
13+
appraise 'activesupport-7.1' do
14+
gem 'activesupport', '~> 7.1.0'
1615
end
1716

18-
appraise '5.0' do
19-
gem 'activesupport', '~> 5.0.0'
17+
appraise 'faraday-1.x' do
18+
gem 'faraday', '~> 1.10'
19+
gem 'faraday-gzip', '~> 1.0'
20+
end
21+
22+
appraise 'faraday-2.x' do
23+
gem 'faraday', '~> 2.0'
24+
gem 'faraday-gzip', '~> 2.0'
2025
end

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
## Unreleased
44

5-
5+
- [#412](https://github.com/JsonApiClient/json_api_client/pull/412)
6+
- Add support for faraday 2.x
7+
- Drop support for Ruby < 3.0 (EOL)
8+
- Drop support for activesupport < 6.0 (EOL)
9+
- Remove deprecated faraday_middleware and add faraday-gzip (from [#402](https://github.com/JsonApiClient/json_api_client/pull/402))
610
- [#400](https://github.com/JsonApiClient/json_api_client/pull/400) - Fix for multi-word custom endpoint and route format
711

812
## 1.22.0

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ source "https://rubygems.org"
33
gemspec
44

55
gem 'rake'
6-
gem 'appraisal'
76

8-
gem "activesupport"
7+
gem "activesupport", ">= 4.0.13"
98
gem 'addressable', '~> 2.2'
109

1110
gem "codeclimate-test-reporter", group: :test, require: nil

gemfiles/3.2.gemfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

gemfiles/4.0.gemfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

gemfiles/4.1.gemfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

gemfiles/4.2.gemfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

gemfiles/5.0.gemfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

gemfiles/5.2.3.gemfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)