forked from rspec/rspec-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
79 lines (62 loc) · 2.03 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
77
78
79
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', '2.3.0'
gem 'github-markup', '1.0.0'
if RUBY_VERSION > '2.0.0'
gem 'relish'
end
end
platforms :jruby do
gem "jruby-openssl"
end
gem 'sqlite3', '~> 1.3.6'
if RUBY_VERSION >= '2.4.0'
gem 'json', '>= 2.0.2'
end
if RUBY_VERSION >= '1.9.3'
gem 'rake', '>= 10.0.0'
else
gem 'rake', '~> 10.0' # rake 11 requires Ruby 1.9.3 or later
end
# Version 3 of mime-types 3 requires Ruby 2.0
if RUBY_VERSION < '2.0.0'
gem 'mime-types', '< 3'
end
# Capybara versions that support RSpec 3 only support RUBY_VERSION >= 1.9.3
if RUBY_VERSION >= '1.9.3'
if /5(\.|-)1/ === RAILS_VERSION || "master" == RAILS_VERSION
gem 'capybara', '~> 2.13', :require => false
else
gem 'capybara', '~> 2.2.0', :require => false
end
end
# Rack::Cache 1.3.0 requires Ruby >= 2.0.0
gem 'rack-cache', '< 1.3.0' if RUBY_VERSION < '2.0.0'
if RUBY_VERSION < '1.9.2'
gem 'nokogiri', '~> 1.5.0'
elsif RUBY_VERSION < '1.9.3'
gem 'nokogiri', '1.5.2'
else
gem 'nokogiri', '1.6.7.1'
end
if RUBY_VERSION <= '1.8.7'
# cucumber and gherkin require rubyzip as a runtime dependency on 1.8.7
# Only < 1.0 supports 1.8.7
gem 'rubyzip', '< 1.0'
end
if RUBY_VERSION >= '2.0.0' && RUBY_VERSION < '2.2.0'
# our current rubocop version doesn't support the json version required by Ruby 2.4
# our rails rubocop setup only supports 2.0 and 2.1
gem 'rubocop', "~> 0.23.0"
end
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