File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1717 gem "solidus_frontend" , github : "solidusio/solidus" , branch : branch
1818end
1919
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"
20+ rails_requirement_string = ENV . fetch ( "RAILS_VERSION" , "~> 8.0" )
21+ gem "rails" , rails_requirement_string
2422
2523gem "state_machines" , "0.6.0"
2624
@@ -33,7 +31,10 @@ when "mysql"
3331when "postgresql"
3432 gem "pg"
3533else
36- gem "sqlite3"
34+ rails_version = Gem ::Requirement . new ( rails_requirement_string ) . requirements [ 0 ] [ 1 ]
35+ sqlite_version = ( rails_version < Gem ::Version . new ( 7.2 ) ) ? "~> 1.4" : "~> 2.0"
36+
37+ gem "sqlite3" , sqlite_version
3738end
3839
3940gemspec
You can’t perform that action at this time.
0 commit comments