Skip to content

Commit cd73788

Browse files
justin808claude
andcommitted
Add nokogiri version constraints to all gemfiles
Add Ruby version-specific nokogiri constraints to ensure compatibility: - nokogiri ~> 1.15.0 for Ruby < 3.0 - nokogiri ~> 1.17.0 for Ruby >= 3.0 This extends the constraint added to the main Gemfile to all the test gemfiles used for different configurations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 953061a commit cd73788

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

gemfiles/base.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ source "http://rubygems.org"
44

55
gem "rails", "~> 7.0.x"
66

7+
# Nokogiri version constraints for different Ruby versions
8+
gem "nokogiri", "~> 1.15.0" if RUBY_VERSION < "3.0"
9+
gem "nokogiri", "~> 1.17.0" if RUBY_VERSION >= "3.0"
10+
711
gemspec path: "../"

gemfiles/propshaft.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ source "http://rubygems.org"
44

55
gem "propshaft", "~> 1.0.x"
66

7+
# Nokogiri version constraints for different Ruby versions
8+
gem "nokogiri", "~> 1.15.0" if RUBY_VERSION < "3.0"
9+
gem "nokogiri", "~> 1.17.0" if RUBY_VERSION >= "3.0"
10+
711
gemspec path: "../"

gemfiles/shakapacker.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ source "http://rubygems.org"
44

55
gem "shakapacker", "7.2.0"
66

7+
# Nokogiri version constraints for different Ruby versions
8+
gem "nokogiri", "~> 1.15.0" if RUBY_VERSION < "3.0"
9+
gem "nokogiri", "~> 1.17.0" if RUBY_VERSION >= "3.0"
10+
711
gemspec path: "../"

gemfiles/sprockets_3.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ gem "sprockets-rails"
77
gem "turbolinks", "~> 5"
88
gem "mini_racer", platforms: :mri
99

10+
# Nokogiri version constraints for different Ruby versions
11+
gem "nokogiri", "~> 1.15.0" if RUBY_VERSION < "3.0"
12+
gem "nokogiri", "~> 1.17.0" if RUBY_VERSION >= "3.0"
13+
1014
gemspec path: "../"

gemfiles/sprockets_4.gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ gem "sprockets-rails"
77
gem "turbolinks", "~> 5"
88
gem "mini_racer", platforms: :mri
99

10+
# Nokogiri version constraints for different Ruby versions
11+
gem "nokogiri", "~> 1.15.0" if RUBY_VERSION < "3.0"
12+
gem "nokogiri", "~> 1.17.0" if RUBY_VERSION >= "3.0"
13+
1014
gemspec path: "../"

0 commit comments

Comments
 (0)