Skip to content

Commit bf196dd

Browse files
flavorjonesclaude
andauthored
dep(dev): pin json to < 3 in the rails_8_1 appraisal (#350)
Both rails_8_1 CI jobs failed, unit with 7 errors and integration with 3. json 3.0 made `::JSON.parse`'s options keyword-only, and `ActiveSupport::JSON.decode` in Rails 8.1.3.1 still passes them positionally, so every tenant JSON round trip raised ArgumentError. The appraisal lockfiles are gitignored, so every run re-resolved onto json 3.0.2. Pin `json` to `< 3` in the `rails-8-1` appraisal and regenerate. The pin goes in `Appraisals` rather than the generated `gemfiles/rails_8_1.gemfile`, which the dependabot regeneration workflow would overwrite. It comes out once a Rails 8.1 release carries the backport of rails/rails#58601, which is already on `main` and `8-1-stable` and is why the rails_edge jobs stayed green. ref: rails/rails#58685 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e50e0f3 commit bf196dd

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎Appraisals‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
appraise "rails-8-1" do
44
gem "rails", "~> 8.1.0"
5+
6+
# json 3.0 made ::JSON.parse's options keyword-only, which breaks
7+
# ActiveSupport::JSON.decode in Rails 8.1.3.1. Remove this pin once a Rails 8.1
8+
# release carries the backport from https://github.com/rails/rails/pull/58601.
9+
gem "json", "< 3"
510
end
611

712
appraise "rails-edge" do

‎gemfiles/rails_8_1.gemfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gem "solid_queue"
1515
gem "stimulus-rails"
1616
gem "tailwindcss-rails"
1717
gem "turbo-rails"
18+
gem "json", "< 3"
1819

1920
group :development, :test do
2021
gem "appraisal", "2.5.0", require: false

0 commit comments

Comments
 (0)