forked from trailblazer/reform-rails
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gemfile
33 lines (28 loc) · 721 Bytes
/
Gemfile
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
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
source "https://rubygems.org"
gemspec
case ENV["GEMS_SOURCE"]
when "local"
gem "reform", path: "../reform"
when "github"
gem "reform", github: "trailblazer/reform"
end
rails_version = ENV.fetch("RAILS_VERSION", "5.2.0")
# bored of wrestling with rails...
if rails_version == "4.0"
gem "mongoid", "~> 4"
else
gem "mongoid", "< 7.0"
end
gem "activerecord", "~> #{rails_version}"
gem "railties", "~> #{rails_version}"
gem "sqlite3"
puts "Rails version #{rails_version}"
if rails_version == "5.0.0"
gem "minitest", "5.10.3"
else
gem "minitest"
end