Skip to content

Commit

Permalink
Switch git to monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Dec 31, 2024
1 parent 4e0fa6e commit 9cd49e1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Gemfile-rspec-dependencies
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
branch = File.read(File.expand_path("../maintenance-branch", __FILE__)).chomp
%w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
library_path = File.expand_path("../../#{lib}", __FILE__)
library_path = File.expand_path("../../rspec/#{lib}", __FILE__)
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
gem lib, :path => library_path, :require => false
gem lib, path: library_path, require: false
else
if lib == 'rspec'
gem 'rspec', :git => "https://github.com/rspec/rspec-metagem.git", :branch => branch, :require => false
else
gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => branch, :require => false
end
gem lib, git: "https://github.com/rspec/rspec", glob: "#{lib}/#{lib}.gemspec"
end
end

0 comments on commit 9cd49e1

Please sign in to comment.