Skip to content

Commit 27fa7a8

Browse files
committed
Fix path & name for rspec gems in Gemfile
The rspec gem is defined in the rspec-metagem repository. If your local checkout of rspec is in ../rspec, you should rename it to ../rspec-metagem.
1 parent 1b86407 commit 27fa7a8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Gemfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ source "https://rubygems.org"
33

44
gemspec
55

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__)
814
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
915
gem lib, :path => library_path
1016
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')
1218
end
1319
end
1420

0 commit comments

Comments
 (0)