From a8e07924d6b648ed4a7031f9c4680f01eac756a8 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Fri, 1 Dec 2023 12:57:08 -0500 Subject: [PATCH] Fix dependency on JSON gem Don't use `json` 2.7.0 release that has a regression. Ref: https://github.com/flori/json/pull/554 --- Gemfile | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index ecd5dac8b9d28..dfea076b04736 100644 --- a/Gemfile +++ b/Gemfile @@ -40,7 +40,7 @@ gem "bcrypt", "~> 3.1.11", require: false gem "terser", ">= 1.1.4", require: false # Explicitly avoid 1.x that doesn't support Ruby 2.4+ -gem "json", ">= 2.0.0" +gem "json", ">= 2.0.0", "!=2.7.0" # Workaround until Ruby ships with cgi version 0.3.6 or higher. gem "cgi", ">= 0.3.6", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 0cf50b3952972..b20a0a0b9bdc9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -593,7 +593,7 @@ DEPENDENCIES importmap-rails (>= 1.2.3) jbuilder jsbundling-rails - json (>= 2.0.0) + json (>= 2.0.0, != 2.7.0) libxml-ruby listen (~> 3.3) mdl