Skip to content

Commit 1d945db

Browse files
committed
Only pin Rails and json when RAILS_VERSION is set
1 parent 9bba72b commit 1d945db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎Gemfile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ source "https://rubygems.org"
44

55
gemspec
66

7+
rails_version = ENV.fetch("RAILS_VERSION", "8.1.0")
8+
79
gem "rubocop", require: false
810
gem "codeclimate-test-reporter"
911
gem "concurrent-ruby", "< 1.3.9"
1012
# json 3.0 dropped the quirks_mode option that ActiveSupport 7.2.3.x still passes
11-
gem "json", "< 3"
13+
gem "json", "< 3" if Gem::Version.new(rails_version) < Gem::Version.new("8.1")
1214

13-
gem "rails", "~> #{ENV.fetch('RAILS_VERSION', '8.0')}"
15+
gem "rails", "~> #{rails_version}"

0 commit comments

Comments
 (0)