33source 'https://rubygems.org'
44git_source ( :github ) { |repo | "https://github.com/#{ repo } .git" }
55
6- branch = ENV . fetch ( 'SOLIDUS_BRANCH' , 'master' )
7- solidus_git , solidus_frontend_git = if ( branch == 'master' ) || ( branch >= 'v3.2' )
8- %w[ solidusio/solidus solidusio/solidus_frontend ]
9- else
10- %w[ solidusio/solidus ] * 2
11- end
12- gem 'solidus' , github : solidus_git , branch : branch
13- gem 'solidus_frontend' , github : solidus_frontend_git , branch : branch
6+ branch = ENV . fetch ( 'SOLIDUS_BRANCH' , 'main' )
7+ gem 'solidus' , github : 'solidusio/solidus' , branch : branch
8+
9+ # The solidus_frontend gem has been pulled out since v3.2
10+ if branch >= 'v3.2'
11+ gem 'solidus_frontend'
12+ elsif branch == 'main'
13+ gem 'solidus_frontend' , github : 'solidusio/solidus_frontend' , branch : branch
14+ else
15+ gem 'solidus_frontend' , github : 'solidusio/solidus' , branch : branch
16+ end
1417
1518# Needed to help Bundler figure out how to resolve dependencies,
1619# otherwise it takes forever to resolve them.
@@ -20,7 +23,7 @@ gem 'rails', '>0.a'
2023# Provides basic authentication functionality for testing parts of your engine
2124gem 'solidus_auth_devise'
2225
23- case ENV [ 'DB' ]
26+ case ENV . fetch ( 'DB' , nil )
2427when 'mysql'
2528 gem 'mysql2'
2629when 'postgresql'
2932 gem 'sqlite3'
3033end
3134
35+ group :development , :test do
36+ gem 'factory_bot' , '> 4.10.0'
37+ gem 'pry-rails'
38+ end
39+
40+ group :test do
41+ gem 'rails-controller-testing'
42+ end
43+
44+ # While we still support Ruby < 3 we need to workaround a limitation in
45+ # the 'async' gem that relies on the latest ruby, since RubyGems doesn't
46+ # resolve gems based on the required ruby version.
47+ gem 'async' , '< 3' if Gem ::Version . new ( RUBY_VERSION ) < Gem ::Version . new ( '3' )
48+
3249gemspec
3350
3451# Use a local Gemfile to include development dependencies that might not be
0 commit comments