From 9cd49e151b25969eb57d9f5e7f3f3e507ad8931a Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 31 Dec 2024 11:45:19 +0000 Subject: [PATCH] Switch git to monorepo --- Gemfile-rspec-dependencies | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Gemfile-rspec-dependencies b/Gemfile-rspec-dependencies index a0af7b2f5..e68e5fdb8 100644 --- a/Gemfile-rspec-dependencies +++ b/Gemfile-rspec-dependencies @@ -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