forked from rspec/rspec-core
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGemfile
38 lines (28 loc) · 990 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
32
33
34
35
36
37
38
source "https://rubygems.org"
gemspec
def exists_and_version_matches lib, path, const
version_path = "lib/#{lib.gsub('-','/')}/version"
return false unless File.exist?(path)
require File.join(path, version_path)
RSpec::Core::Version::STRING == Object.const_get(const)::Version::STRING
end
{ 'rspec' => 'RSpec', 'rspec-expectations' => 'RSpec::Expectations', 'rspec-mocks' => 'RSpec::Mocks' }.each do |lib,const|
library_path = File.expand_path("../../#{lib}", __FILE__)
if exists_and_version_matches(lib, library_path, const)
gem lib, :path => library_path
else
gem lib, :git => "git://github.com/rspec/#{lib}.git"
end
end
### deps for rdoc.info
platforms :ruby do
gem 'yard', '0.8.6.1', :require => false
gem 'redcarpet', '2.1.1'
gem 'github-markup', '0.7.2'
end
### dep for ci/coverage
gem 'coveralls', :require => false
platforms :jruby do
gem "jruby-openssl"
end
eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')