forked from trailblazer/reform-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGemfile
More file actions
33 lines (25 loc) · 734 Bytes
/
Gemfile
File metadata and controls
33 lines (25 loc) · 734 Bytes
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
gem 'pry-byebug'
gem "minitest-line"
case ENV["GEMS_SOURCE"]
when "local"
gem "reform", path: "../reform"
when "github"
gem "reform", github: "trailblazer/reform"
end
rails_version = ENV.fetch("RAILS_VERSION", "6.0.0")
# bored of wrestling with rails...
gem("mongoid", "< 7.0") unless rails_version.to_i >= 6
gem "activerecord", "~> #{rails_version}"
gem "railties", "~> #{rails_version}"
if rails_version.to_i >= 6
gem "sqlite3", "~> 1.4"
else
gem "sqlite3", "~> 1.3", "< 1.4"
end
puts "Rails version #{rails_version}"