diff options
author | Jared Norman <jared@super.gd> | 2020-06-22 13:24:58 -0700 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2020-06-22 13:24:58 -0700 |
commit | 6ee2311e1a2ea912a4a58fd42d10fac083cd18ae (patch) | |
tree | 1192c8e099cd8d4e9f4323d020e898a5e00af7cf /Gemfile | |
parent | ebaa2a05e37522d0854847eba3d734e31604f544 (diff) |
Update Gemfile as per solidus_dev_support
Diffstat (limited to 'Gemfile')
-rw-r--r-- | Gemfile | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -6,12 +6,21 @@ branch = ENV.fetch('SOLIDUS_BRANCH', 'master') gem "solidus", github: "solidusio/solidus", branch: branch -if ENV['RAILS_VERSION'] - gem "rails", ENV['RAILS_VERSON'] -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" + +# Provides basic authentication functionality for testing parts of your engine +gem "solidus_auth_devise" -if ENV.fetch('DB') == 'postgres' - gem 'pg' +case ENV["DB"] +when "mysql" + gem "mysql2" +when "postgresql" + gem "pg" +else + gem "sqlite3" end group :development, :test do @@ -19,3 +28,10 @@ group :development, :test do 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" |