forked from rspec/rspec-support
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGemfile
31 lines (24 loc) · 988 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
source 'https://rubygems.org'
# Specify your gem's dependencies in rspec-support.gemspec
gemspec
branch = File.read(File.expand_path("../maintenance-branch", __FILE__)).chomp
%w[rspec rspec-core rspec-expectations rspec-mocks].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
gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => branch
end
end
### dep for ci/coverage
gem 'simplecov', '~> 0.8'
if RUBY_VERSION < '2.0.0' || RUBY_ENGINE == 'java'
gem 'json', '< 2.0.0' # is a dependency of simplecov
end
if RUBY_VERSION < '2.0.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
gem 'ffi', '< 1.9.15' # allow ffi to be installed on older rubies on windows
end
if RUBY_VERSION >= '2.0' && RUBY_VERSION <= '2.1'
gem 'rubocop', "~> 0.23.0"
end
eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')