Gemfile in solidus_static_content-1.0.0 vs Gemfile in solidus_static_content-2.0.0

- old
+ new

@@ -1,13 +1,33 @@ -source 'https://rubygems.org/' +# 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 -if branch == 'master' || branch >= "v2.0" - gem "rails-controller-testing", group: :test -end +# 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', '>0.a' -gem 'pg' -gem 'mysql2' +# Provides basic authentication functionality for testing parts of your engine +gem 'solidus_auth_devise' +case ENV['DB'] +when 'mysql' + gem 'mysql2' +when 'postgresql' + gem 'pg' +else + gem 'sqlite3' +end + gemspec + +# Use a local Gemfile to include development dependencies that might not be +# relevant for the project or for other contributors, e.g. pry-byebug. +# +# We use `send` instead of calling `eval_gemfile` to work around an issue with +# how Dependabot parses projects: https://github.com/dependabot/dependabot-core/issues/1658. +send(:eval_gemfile, 'Gemfile-local') if File.exist? 'Gemfile-local'