We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de15bbd commit 823fc70Copy full SHA for 823fc70
1 file changed
Gemfile
@@ -17,10 +17,8 @@ else
17
gem "solidus_frontend", github: "solidusio/solidus", branch: branch
18
end
19
20
-# Needed to help Bundler figure out how to resolve dependencies,
21
-# otherwise it takes forever to resolve them.
22
-# See https://github.com/bundler/bundler/issues/6677
23
-gem "rails", ">0.a"
+rails_requirement_string = ENV.fetch("RAILS_VERSION", "~> 8.0")
+gem "rails", rails_requirement_string
24
25
gem "state_machines", "0.6.0"
26
@@ -33,7 +31,10 @@ when "mysql"
33
31
when "postgresql"
34
32
gem "pg"
35
else
36
- gem "sqlite3"
+ rails_version = Gem::Requirement.new(rails_requirement_string).requirements[0][1]
+ sqlite_version = (rails_version < Gem::Version.new(7.2)) ? "~> 1.4" : "~> 2.0"
+
37
+ gem "sqlite3", sqlite_version
38
39
40
gemspec
0 commit comments