@@ -7,24 +7,40 @@ branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
77gem 'solidus' , github : 'solidusio/solidus' , branch : branch
88
99# The solidus_frontend gem has been pulled out since v3.2
10- gem 'solidus_frontend'
10+ if branch >= 'v3.2'
11+ gem 'solidus_frontend'
12+ elsif branch == 'main'
13+ gem 'solidus_frontend' , github : 'solidusio/solidus_frontend'
14+ else
15+ gem 'solidus_frontend' , github : 'solidusio/solidus' , branch : branch
16+ end
1117
12- rails_version = ENV . fetch ( 'RAILS_VERSION' , '7.2 ' )
18+ rails_version = ENV . fetch ( 'RAILS_VERSION' , '7.0 ' )
1319gem 'rails' , "~> #{ rails_version } "
1420
15- case ENV [ 'DB' ]
21+ case ENV . fetch ( 'DB' , nil )
1622when 'mysql'
1723 gem 'mysql2'
1824when 'postgresql'
1925 gem 'pg'
2026else
21- if rails_version <= " 7.2"
22- gem 'sqlite3' , "~> 1.7"
23- else
24- gem 'sqlite3' , "~> 2.0"
25- end
27+ gem 'sqlite3' , rails_version < ' 7.2' ? '~> 1.4' : '~> 2.0'
28+ end
29+
30+ if rails_version == '7.0'
31+ gem 'concurrent-ruby' , '< 1.3.5'
2632end
2733
34+ if RUBY_VERSION >= '3.4'
35+ # Solidus Promotions uses CSV but does not have it as dependency yet.
36+ gem 'csv'
37+ end
38+
39+ # While we still support Ruby < 3 we need to workaround a limitation in
40+ # the 'async' gem that relies on the latest ruby, since RubyGems doesn't
41+ # resolve gems based on the required ruby version.
42+ gem 'async' , '< 3' if Gem ::Version . new ( RUBY_VERSION ) < Gem ::Version . new ( '3' )
43+
2844gemspec
2945
3046# Use a local Gemfile to include development dependencies that might not be
0 commit comments