diff --git a/Gemfile b/Gemfile index ecacbdd7f..d2d350824 100644 --- a/Gemfile +++ b/Gemfile @@ -2,12 +2,13 @@ source "https://rubygems.org" gemspec +branch = File.read(File.expand_path("../maintenance-branch", __FILE__)).chomp %w[rspec rspec-core rspec-mocks rspec-support].each do |lib| library_path = File.expand_path("../../#{lib}", __FILE__) if File.exist?(library_path) && !ENV['USE_GIT_REPOS'] gem lib, :path => library_path else - gem lib, :git => "git://github.com/rspec/#{lib}.git" + gem lib, :git => "git://github.com/rspec/#{lib}.git", :branch => branch end end