Skip to content

Commit 33f6492

Browse files
committed
Merge pull request #2826 from rspec/switch-to-monorepo
Switch git to monorepo
1 parent db114bb commit 33f6492

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Gemfile-rspec-dependencies

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
branch = File.read(File.expand_path("../maintenance-branch", __FILE__)).chomp
22
%w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
3-
library_path = File.expand_path("../../#{lib}", __FILE__)
3+
library_path = File.expand_path("../../rspec/#{lib}", __FILE__)
44
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
5-
gem lib, :path => library_path, :require => false
5+
gem lib, path: library_path, require: false
66
else
7-
if lib == 'rspec'
8-
gem 'rspec', :git => "https://github.com/rspec/rspec-metagem.git", :branch => branch, :require => false
9-
else
10-
gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => branch, :require => false
11-
end
7+
gem lib, git: "https://github.com/rspec/rspec", glob: "#{lib}/#{lib}.gemspec"
128
end
139
end

0 commit comments

Comments
 (0)