File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ source "https://rubygems.org"
3
3
4
4
gemspec
5
5
6
- %w[ rspec rspec-core rspec-expectations rspec-mocks rspec-support ] . each do |lib |
7
- library_path = File . expand_path ( "../../#{ lib } " , __FILE__ )
6
+ {
7
+ 'rspec' => 'rspec-metagem' ,
8
+ 'rspec-core' => 'rspec-core' ,
9
+ 'rspec-expectations' => 'rspec-expectations' ,
10
+ 'rspec-mocks' => 'rspec-mocks' ,
11
+ 'rspec-support' => 'rspec-support'
12
+ } . each do |lib , repo |
13
+ library_path = File . expand_path ( "../../#{ repo } " , __FILE__ )
8
14
if File . exist? ( library_path ) && !ENV [ 'USE_GIT_REPOS' ]
9
15
gem lib , :path => library_path
10
16
else
11
- gem lib , :git => "https://github.com/rspec/#{ lib } .git" , :branch => ENV . fetch ( 'RSPEC_BRANCH' , 'main' )
17
+ gem lib , :git => "https://github.com/rspec/#{ repo } .git" , :branch => ENV . fetch ( 'RSPEC_BRANCH' , 'main' )
12
18
end
13
19
end
14
20
You can’t perform that action at this time.
0 commit comments