Skip to content

Commit c651634

Browse files
committed
chore: drop the json < 3 pin from the ActiveAdmin 4.0 gemfile
The pin worked around json 3.0 removing the `quirks_mode` keyword that ActiveSupport::JSON passed to JSON.parse/JSON.generate. activesupport 8.1 no longer passes it -- `quirks_mode` does not appear anywhere in activesupport 8.1.4's lib/, while 7.2.3 and 8.0.5.1 both pass it in lib/active_support/json/{decoding,encoding}.rb. Now that this gemfile is on Rails 8.1 the workaround is dead weight. Verified rather than assumed: with the pin removed and no lockfile (as on CI) bundler resolves json 3.0.2, and all four suites pass on Ruby 3.4.10 -- 161, 7, 8 and 6 examples, 0 failures, no "unknown keyword: quirks_mode" anywhere. gemfiles/activeadmin_3.5.gemfile keeps its pin and its comment: that leg runs an older activesupport, which still passes the keyword. Removing the pin there resolves json 3.0.2 and produces 59 failures.
1 parent 18442ad commit c651634

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎gemfiles/activeadmin_4.0.gemfile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,3 @@ gem "propshaft"
1717
gem "importmap-rails"
1818
gem "cssbundling-rails"
1919
gem "tailwindcss-rails", "~> 4.0"
20-
21-
# See the note in activeadmin_3.5.gemfile: json 3.0 removed the
22-
# `quirks_mode` keyword ActiveSupport::JSON still passes.
23-
gem "json", "< 3"

0 commit comments

Comments
 (0)