forked from rspec/rspec-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
76 lines (58 loc) · 1.64 KB
/
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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
source "https://rubygems.org"
version_file = File.expand_path("../.rails-version", __FILE__)
RAILS_VERSION = ENV['RAILS_VERSION'] || (File.exist?(version_file) && File.read(version_file).chomp) || ""
gemspec
rspec_dependencies_gemfile = File.expand_path("../Gemfile-rspec-dependencies", __FILE__)
eval_gemfile rspec_dependencies_gemfile
gem 'yard', '~> 0.8.7', :require => false
### deps for rdoc.info
group :documentation do
gem 'redcarpet', '~> 3.4.0', platforms: [:ruby]
gem 'github-markup', '~> 3.0.3'
gem 'relish', '~> 0.7.1'
end
platforms :jruby do
gem "jruby-openssl"
end
case RAILS_VERSION
when /master/
MAJOR = 6
MINOR = 0
when /stable/
MAJOR = 6
MINOR = 0
when nil, false, ""
MAJOR = 5
MINOR = 0
else
match = /(\d+)(\.|-)(\d+)/.match(RAILS_VERSION)
MAJOR, MINOR = match.captures.map(&:to_i).compact
end
if MAJOR >= 6
gem 'sqlite3', '~> 1.4', platforms: [:ruby]
gem 'selenium-webdriver', '~> 3.5', :require => false
else
gem 'sqlite3', '~> 1.3.6', platforms: [:ruby]
end
if RUBY_VERSION >= '2.4.0'
gem 'json', '>= 2.0.2'
end
gem 'ffi', '~> 1.9.25'
gem 'rake', '~> 12'
gem 'mime-types', "~> 3"
# Version 5.12 of minitest requires Ruby 2.4
if RUBY_VERSION < '2.4.0'
gem 'minitest', '< 5.12.0'
end
gem 'capybara', '~> 2.13', :require => false
if MAJOR < 6
gem 'nokogiri', '1.8.5'
else
gem 'nokogiri', '>= 1.10.4'
end
gem "rubyzip", '~> 1.2'
gem 'rubocop', '~> 0.77.0'
custom_gemfile = File.expand_path("../Gemfile-custom", __FILE__)
eval_gemfile custom_gemfile if File.exist?(custom_gemfile)
rails_dependencies_gemfile = File.expand_path("../Gemfile-rails-dependencies", __FILE__)
eval_gemfile rails_dependencies_gemfile