-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathGemfile
81 lines (69 loc) · 2.21 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
80
81
# frozen_string_literal: true
source "https://rubygems.org"
gemspec
%w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
library_path = File.expand_path("../../#{lib}", __FILE__)
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
gem lib, :path => library_path
else
branch = ENV.fetch('RSPEC_BRANCH', 'main')
if lib == 'rspec'
gem 'rspec', :git => "https://github.com/rspec/rspec-metagem.git", :branch => branch
else
gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => branch
end
end
end
# Development dependencies
cucumber_version = RUBY_VERSION < '2.0.0' ? '< 3' : '>= 3'
gem 'cucumber', cucumber_version
gem 'rake'
gem 'rubocop'
gem 'aruba', '~> 0.4.11'
gem 'ZenTest', '~> 4.11.2'
### deps for rdoc.info
group :documentation do
gem 'github-markup', '1.0.0'
gem 'redcarpet', '2.3.0'
gem 'yard', '~> 0.9', :require => false
end
version = ENV.fetch('RAILS_VERSION', '6.0.0')
version_float = version.tr('-', '.').tr('~> ', '').to_f
if version_float < 4
gem 'sqlite3', '~> 1.3.5'
elsif version_float < 6
gem 'sqlite3', '~> 1.3.6'
else
gem 'sqlite3', '~> 1.4'
end
if version =~ /stable\z/
gem "activemodel", :github => "rails/rails", :branch => version
gem "activerecord", :github => "rails/rails", :branch => version
gem "activesupport", :github => "rails/rails", :branch => version
else
gem "activemodel", version
gem "activerecord", version
gem "activesupport", version
end
if version < '4.0.0'
gem "test-unit", '~> 3' if (version >= '3.2.22' || version == '3-2-stable')
else
# Version 5.12 of minitest requires Ruby 2.4
if RUBY_VERSION < '2.4.0'
gem 'minitest', '< 5.12.0'
else
gem 'minitest', '>= 5.12.0', :require => false
end
end
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.10'
elsif RUBY_VERSION < '2.4.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.15'
elsif RUBY_VERSION < '2.0'
gem 'ffi', '< 1.9.19' # ffi dropped Ruby 1.8 support in 1.9.19
elsif RUBY_VERSION < '2.3.0'
gem 'ffi', '~> 1.12.0'
else
gem 'ffi', '~> 1.15.0'
end
gem "i18n", '< 0.7.0' if RUBY_VERSION < '1.9.3'