-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathGemfile
More file actions
61 lines (49 loc) · 1.94 KB
/
Gemfile
File metadata and controls
61 lines (49 loc) · 1.94 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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
gem "solidus_backend", github: "solidusio/solidus", branch: branch
rails_requirement_string = ENV.fetch("RAILS_VERSION", "7.0")
gem "rails", "~> #{rails_requirement_string}"
# The solidus_frontend gem has been pulled out since v3.2
if branch >= "v3.2"
gem "solidus_frontend"
elsif branch == "main"
gem "solidus_frontend", github: "solidusio/solidus_frontend"
else
gem "solidus_frontend", github: "solidusio/solidus", branch: branch
end
case ENV.fetch("DB", nil)
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
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3")
# While we still support Ruby < 3 we need to workaround a limitation in
# the 'async' gem that relies on the latest ruby, since RubyGems doesn't
# resolve gems based on the required ruby version.
gem "async", "< 3", require: false
end
# 'net/smtp' is required by 'mail', see:
# - https://github.com/ruby/net-protocol/issues/10
# - https://stackoverflow.com/a/72474475
gem "net-smtp", require: false
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"
# Pin state_machines
gem "state_machines", "= 0.6.0"
if RUBY_VERSION >= "4.0"
# Necessary for github_changelog_generator
gem "benchmark", "~> 0.5.0"
end