Gemfile in solidus_newsletter-1.0 vs Gemfile in solidus_newsletter-1.1

- old
+ new

@@ -1,25 +1,52 @@ +# frozen_string_literal: true + source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } branch = ENV.fetch('SOLIDUS_BRANCH', 'master') -gem 'solidus', github: 'solidusio/solidus', branch: branch -gem 'solidus_i18n', github: 'solidusio-contrib/solidus_i18n', branch: 'master' -if branch == 'master' || branch >= 'v2.3' - gem 'rails', '~> 5.1.0' -elsif branch >= 'v2.0' - gem 'rails', '~> 5.0.0' - gem 'rails-controller-testing', group: :test +solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2') + %w[solidusio/solidus solidusio/solidus_frontend] + else + %w[solidusio/solidus] * 2 + end + +gem 'solidus', github: solidus_git, branch: branch +gem 'solidus_api', github: solidus_git, branch: branch +gem 'solidus_backend', github: solidus_git, branch: branch +gem 'solidus_core', github: solidus_git, branch: branch +gem 'solidus_frontend', github: solidus_frontend_git, branch: branch +gem 'solidus_sample', github: solidus_git, branch: branch + +# Needed to help Bundler figure out how to resolve dependencies, +# otherwise it takes forever to resolve them. +# See https://github.com/bundler/bundler/issues/6677 +gem 'rails', ENV.fetch('RAILS_VERSION', nil) + +# Provides basic authentication functionality for testing parts of your engine +gem 'solidus_auth_devise' + +case ENV.fetch('DB', nil) +when 'mysql' + gem 'mysql2' +when 'postgresql' + gem 'pg' else - gem 'rails', '~> 4.2.0' - gem 'rails_test_params_backport', group: :test + gem 'sqlite3' end -gem 'pg', '~> 0.21' -gem 'sqlite3' -gem 'mysql2' +group :test do + gem 'rails-controller-testing' + gem 'rspec-activemodel-mocks' +end group :development, :test do - gem 'i18n-tasks', '~> 0.9' if branch == 'master' + gem 'factory_bot', '> 4.10.0' + gem 'pry-rails' end gemspec + +# Use a local Gemfile to include development dependencies that might not be +# relevant for the project or for other contributors, e.g.: `gem 'pry-debug'`. +eval_gemfile 'Gemfile-local' if File.exist? 'Gemfile-local'