Gemfile in solidus_reviews-1.1.1 vs Gemfile in solidus_reviews-1.2.0
- old
+ new
@@ -3,27 +3,29 @@
source 'https://rubygems.org'
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
gem 'solidus', git: 'https://github.com/solidusio/solidus.git', branch: branch
gem 'solidus_auth_devise'
+
+# Needed to help Bundler figure out how to resolve dependencies, otherwise it takes forever to
+# resolve them
+if branch == 'master' || Gem::Version.new(branch[1..-1]) >= Gem::Version.new('2.10.0')
+ gem 'rails', '~> 6.0'
+else
+ gem 'rails', '~> 5.0'
+end
+
gem 'puma'
gem 'rails-controller-testing', group: :test
-if ENV['DB'] == 'mysql'
+case ENV['DB']
+when 'mysql'
gem 'mysql2', '~> 0.4.10'
-else
+when 'postgres'
gem 'pg', '~> 0.21'
end
group :development, :test do
- if branch < 'v2.5'
- gem 'factory_bot', '4.10.0'
- else
- gem 'factory_bot', '> 4.10.0'
- end
-
- gem 'pry-rails'
- gem 'selenium-webdriver'
- gem 'webdrivers'
+ gem 'factory_bot', '> 4.10.0'
end
gemspec