-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathGemfile
More file actions
34 lines (25 loc) · 1.01 KB
/
Gemfile
File metadata and controls
34 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
gem 'solidus', github: 'solidusio/solidus', branch: branch
# The solidus_frontend gem has been pulled out since v3.2
gem 'solidus_frontend'
rails_requirement_string = ENV.fetch('RAILS_VERSION', '~> 7.0')
gem 'rails', rails_requirement_string
# 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
rails_version = Gem::Requirement.new(rails_requirement_string).requirements[0][1]
sqlite_version = rails_version < Gem::Version.new(7.2) ? "~> 1.4" : "~> 2.0"
gem 'sqlite3', sqlite_version
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'`.
send :eval_gemfile, 'Gemfile-local' if File.exist? 'Gemfile-local'