Skip to content

Commit 43337e2

Browse files
committed
Pin json below 3 in the Gemfile
A fresh bundle now resolves json 3, which is incompatible with Rails before 8.1 and breaks test app setup with "unknown keyword: quirks_mode". Solidus main pins it in its gemspecs; the 4.5 to 4.7 branches this extension is tested against do not, so pin it here.
1 parent 802e555 commit 43337e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Gemfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ gem "solidus_backend", github: "solidusio/solidus", branch: branch
1010
rails_requirement_string = ENV.fetch("RAILS_VERSION", "7.0")
1111
gem "rails", "~> #{rails_requirement_string}"
1212

13+
# json 3 is incompatible with Rails < 8.1.
14+
gem "json", "< 3", require: false
15+
1316
# The solidus_frontend gem has been pulled out since v3.2
1417
if branch >= "v3.2"
1518
gem "solidus_frontend"

0 commit comments

Comments
 (0)