Skip to content

Commit 7de2087

Browse files
justin808claude
andcommitted
Use nokogiri 1.17.2 for Ruby 3.0-3.3 compatibility
Nokogiri 1.18+ requires Ruby >= 3.2, which breaks Ruby 3.0 and 3.1 support. Additionally, nokogiri 1.18 changed the platform identifier from x86_64-linux to x86_64-linux-gnu, causing lockfile inconsistencies. Using nokogiri 1.17.2 which: - Supports the full Ruby 2.7-3.3 range - Uses the x86_64-linux platform identifier consistently - Resolves dependency issues across all supported Ruby versions Reverted CI workflow to use x86_64-linux platform (not -gnu). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 42b53a3 commit 7de2087

File tree

7 files changed

+57
-34
lines changed

7 files changed

+57
-34
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
path: vendor/bundle
4848
key: root-gem-cache-${{ hashFiles('Gemfile.lock') }}
4949
- name: Install Ruby Gems
50-
run: bundle lock --add-platform 'x86_64-linux-gnu' && bundle check --path=vendor/bundle || bundle _2.4.9_ install --path=vendor/bundle --jobs=4 --retry=3
50+
run: bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle _2.4.9_ install --path=vendor/bundle --jobs=4 --retry=3
5151
- run: yarn
5252
- run: bundle exec rake react:update
5353
- run: bundle exec rake ujs:update
@@ -114,7 +114,7 @@ jobs:
114114
path: test/dummy/vendor/bundle
115115
key: dummy-app-gem-cache-${{ hashFiles(format('{0}/gemfiles/{1}.gemfile.lock', github.workspace, matrix.gemfile)) }}
116116
- name: Install Ruby Gems for dummy app
117-
run: bundle lock --add-platform 'x86_64-linux-gnu' && bundle check --path=test/dummy/vendor/bundle || bundle _2.4.9_ install --frozen --path=test/dummy/vendor/bundle --jobs=4 --retry=3
117+
run: bundle lock --add-platform 'x86_64-linux' && bundle check --path=test/dummy/vendor/bundle || bundle _2.4.9_ install --frozen --path=test/dummy/vendor/bundle --jobs=4 --retry=3
118118
- run: cd test/dummy && yalc add react_ujs && ${{ matrix.js_package_manager.installer }} install
119119
- run: bundle exec rake test
120120
env:

Gemfile.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ GEM
8888
execjs (~> 2.0)
8989
builder (3.2.4)
9090
byebug (11.1.3)
91-
capybara (3.37.1)
91+
capybara (3.40.0)
9292
addressable
9393
matrix
9494
mini_mime (>= 0.1.3)
95-
nokogiri (~> 1.8)
95+
nokogiri (~> 1.11)
9696
rack (>= 1.6.0)
9797
rack-test (>= 0.6.3)
9898
regexp_parser (>= 1.5, < 3.0)
@@ -171,9 +171,11 @@ GEM
171171
net-smtp (0.5.0)
172172
net-protocol
173173
nio4r (2.7.3)
174-
nokogiri (1.18.10-x86_64-darwin)
174+
nokogiri (1.17.2-aarch64-linux)
175+
racc (~> 1.4)
176+
nokogiri (1.17.2-x86_64-darwin)
175177
racc (~> 1.4)
176-
nokogiri (1.18.10-x86_64-linux-gnu)
178+
nokogiri (1.17.2-x86_64-linux)
177179
racc (~> 1.4)
178180
notiffany (0.1.3)
179181
nenv (~> 0.1)
@@ -252,9 +254,9 @@ GEM
252254
zeitwerk (2.6.6)
253255

254256
PLATFORMS
257+
aarch64-linux
255258
x86_64-darwin-20
256259
x86_64-linux
257-
x86_64-linux-gnu
258260

259261
DEPENDENCIES
260262
appraisal

gemfiles/base.gemfile.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ GEM
8888
execjs (~> 2.0)
8989
builder (3.2.4)
9090
byebug (11.1.3)
91-
capybara (3.38.0)
91+
capybara (3.40.0)
9292
addressable
9393
matrix
9494
mini_mime (>= 0.1.3)
95-
nokogiri (~> 1.8)
95+
nokogiri (~> 1.11)
9696
rack (>= 1.6.0)
9797
rack-test (>= 0.6.3)
9898
regexp_parser (>= 1.5, < 3.0)
@@ -171,11 +171,13 @@ GEM
171171
net-smtp (0.5.0)
172172
net-protocol
173173
nio4r (2.7.3)
174-
nokogiri (1.18.10-arm64-darwin)
174+
nokogiri (1.17.2-aarch64-linux)
175+
racc (~> 1.4)
176+
nokogiri (1.17.2-arm64-darwin)
175177
racc (~> 1.4)
176-
nokogiri (1.18.10-x86_64-darwin)
178+
nokogiri (1.17.2-x86_64-darwin)
177179
racc (~> 1.4)
178-
nokogiri (1.18.10-x86_64-linux-gnu)
180+
nokogiri (1.17.2-x86_64-linux)
179181
racc (~> 1.4)
180182
notiffany (0.1.3)
181183
nenv (~> 0.1)
@@ -253,6 +255,7 @@ GEM
253255
zeitwerk (2.6.7)
254256

255257
PLATFORMS
258+
aarch64-linux
256259
arm64-darwin-24
257260
x86_64-darwin-20
258261
x86_64-linux

gemfiles/propshaft.gemfile.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ GEM
8888
execjs (~> 2.0)
8989
builder (3.2.4)
9090
byebug (11.1.3)
91-
capybara (3.38.0)
91+
capybara (3.40.0)
9292
addressable
9393
matrix
9494
mini_mime (>= 0.1.3)
95-
nokogiri (~> 1.8)
95+
nokogiri (~> 1.11)
9696
rack (>= 1.6.0)
9797
rack-test (>= 0.6.3)
9898
regexp_parser (>= 1.5, < 3.0)
@@ -171,11 +171,13 @@ GEM
171171
net-smtp (0.5.0)
172172
net-protocol
173173
nio4r (2.7.3)
174-
nokogiri (1.18.10-arm64-darwin)
174+
nokogiri (1.17.2-aarch64-linux)
175+
racc (~> 1.4)
176+
nokogiri (1.17.2-arm64-darwin)
175177
racc (~> 1.4)
176-
nokogiri (1.18.10-x86_64-darwin)
178+
nokogiri (1.17.2-x86_64-darwin)
177179
racc (~> 1.4)
178-
nokogiri (1.18.10-x86_64-linux-gnu)
180+
nokogiri (1.17.2-x86_64-linux)
179181
racc (~> 1.4)
180182
notiffany (0.1.3)
181183
nenv (~> 0.1)
@@ -259,6 +261,7 @@ GEM
259261
zeitwerk (2.6.7)
260262

261263
PLATFORMS
264+
aarch64-linux
262265
arm64-darwin-24
263266
x86_64-darwin-20
264267
x86_64-linux

gemfiles/shakapacker.gemfile.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ GEM
8888
execjs (~> 2.0)
8989
builder (3.2.4)
9090
byebug (11.1.3)
91-
capybara (3.38.0)
91+
capybara (3.40.0)
9292
addressable
9393
matrix
9494
mini_mime (>= 0.1.3)
95-
nokogiri (~> 1.8)
95+
nokogiri (~> 1.11)
9696
rack (>= 1.6.0)
9797
rack-test (>= 0.6.3)
9898
regexp_parser (>= 1.5, < 3.0)
@@ -171,11 +171,13 @@ GEM
171171
net-smtp (0.5.0)
172172
net-protocol
173173
nio4r (2.7.3)
174-
nokogiri (1.18.10-arm64-darwin)
174+
nokogiri (1.17.2-aarch64-linux)
175+
racc (~> 1.4)
176+
nokogiri (1.17.2-arm64-darwin)
175177
racc (~> 1.4)
176-
nokogiri (1.18.10-x86_64-darwin)
178+
nokogiri (1.17.2-x86_64-darwin)
177179
racc (~> 1.4)
178-
nokogiri (1.18.10-x86_64-linux-gnu)
180+
nokogiri (1.17.2-x86_64-linux)
179181
racc (~> 1.4)
180182
notiffany (0.1.3)
181183
nenv (~> 0.1)
@@ -263,6 +265,7 @@ GEM
263265
zeitwerk (2.6.7)
264266

265267
PLATFORMS
268+
aarch64-linux
266269
arm64-darwin-24
267270
x86_64-darwin-20
268271
x86_64-linux

gemfiles/sprockets_3.gemfile.lock

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ GEM
8888
execjs (~> 2.0)
8989
builder (3.2.4)
9090
byebug (11.1.3)
91-
capybara (3.30.0)
91+
capybara (3.40.0)
9292
addressable
93+
matrix
9394
mini_mime (>= 0.1.3)
94-
nokogiri (~> 1.8)
95+
nokogiri (~> 1.11)
9596
rack (>= 1.6.0)
9697
rack-test (>= 0.6.3)
97-
regexp_parser (~> 1.5)
98+
regexp_parser (>= 1.5, < 3.0)
9899
xpath (~> 3.2)
99100
codeclimate-test-reporter (1.0.9)
100101
simplecov (<= 0.13)
@@ -139,6 +140,7 @@ GEM
139140
jbuilder (2.9.1)
140141
activesupport (>= 4.2.0)
141142
json (2.3.0)
143+
libv8-node (16.19.0.1-aarch64-linux)
142144
libv8-node (16.19.0.1-arm64-darwin)
143145
libv8-node (16.19.0.1-x86_64-darwin)
144146
libv8-node (16.19.0.1-x86_64-linux)
@@ -155,6 +157,7 @@ GEM
155157
net-pop
156158
net-smtp
157159
marcel (1.0.4)
160+
matrix (0.4.3)
158161
method_source (0.9.2)
159162
mini_mime (1.1.2)
160163
mini_racer (0.6.4)
@@ -173,11 +176,13 @@ GEM
173176
net-smtp (0.5.0)
174177
net-protocol
175178
nio4r (2.7.3)
176-
nokogiri (1.18.10-arm64-darwin)
179+
nokogiri (1.17.2-aarch64-linux)
180+
racc (~> 1.4)
181+
nokogiri (1.17.2-arm64-darwin)
177182
racc (~> 1.4)
178-
nokogiri (1.18.10-x86_64-darwin)
183+
nokogiri (1.17.2-x86_64-darwin)
179184
racc (~> 1.4)
180-
nokogiri (1.18.10-x86_64-linux-gnu)
185+
nokogiri (1.17.2-x86_64-linux)
181186
racc (~> 1.4)
182187
notiffany (0.1.3)
183188
nenv (~> 0.1)
@@ -266,6 +271,7 @@ GEM
266271
zeitwerk (2.6.7)
267272

268273
PLATFORMS
274+
aarch64-linux
269275
arm64-darwin-24
270276
x86_64-darwin-20
271277
x86_64-linux

gemfiles/sprockets_4.gemfile.lock

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ GEM
8888
execjs (~> 2.0)
8989
builder (3.2.4)
9090
byebug (11.1.3)
91-
capybara (3.30.0)
91+
capybara (3.40.0)
9292
addressable
93+
matrix
9394
mini_mime (>= 0.1.3)
94-
nokogiri (~> 1.8)
95+
nokogiri (~> 1.11)
9596
rack (>= 1.6.0)
9697
rack-test (>= 0.6.3)
97-
regexp_parser (~> 1.5)
98+
regexp_parser (>= 1.5, < 3.0)
9899
xpath (~> 3.2)
99100
codeclimate-test-reporter (1.0.9)
100101
simplecov (<= 0.13)
@@ -139,6 +140,7 @@ GEM
139140
jbuilder (2.9.1)
140141
activesupport (>= 4.2.0)
141142
json (2.3.0)
143+
libv8-node (16.19.0.1-aarch64-linux)
142144
libv8-node (16.19.0.1-arm64-darwin)
143145
libv8-node (16.19.0.1-x86_64-darwin)
144146
libv8-node (16.19.0.1-x86_64-linux)
@@ -155,6 +157,7 @@ GEM
155157
net-pop
156158
net-smtp
157159
marcel (1.0.4)
160+
matrix (0.4.3)
158161
method_source (0.9.2)
159162
mini_mime (1.1.2)
160163
mini_racer (0.6.4)
@@ -173,11 +176,13 @@ GEM
173176
net-smtp (0.5.0)
174177
net-protocol
175178
nio4r (2.7.3)
176-
nokogiri (1.18.10-arm64-darwin)
179+
nokogiri (1.17.2-aarch64-linux)
180+
racc (~> 1.4)
181+
nokogiri (1.17.2-arm64-darwin)
177182
racc (~> 1.4)
178-
nokogiri (1.18.10-x86_64-darwin)
183+
nokogiri (1.17.2-x86_64-darwin)
179184
racc (~> 1.4)
180-
nokogiri (1.18.10-x86_64-linux-gnu)
185+
nokogiri (1.17.2-x86_64-linux)
181186
racc (~> 1.4)
182187
notiffany (0.1.3)
183188
nenv (~> 0.1)
@@ -266,6 +271,7 @@ GEM
266271
zeitwerk (2.6.7)
267272

268273
PLATFORMS
274+
aarch64-linux
269275
arm64-darwin-24
270276
x86_64-darwin-20
271277
x86_64-linux

0 commit comments

Comments
 (0)