We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 946fb68 + 14e6b9a commit d6977e0Copy full SHA for d6977e0
Gemfile
@@ -2,12 +2,13 @@ source 'https://rubygems.org'
2
3
gemspec
4
5
-%w[rspec rspec-support rspec-core rspec-expectations rspec-mocks].each do |lib|
+%w[rspec-metagem rspec-support rspec-core rspec-expectations rspec-mocks].each do |lib|
6
+ gem_name = lib.sub('rspec-metagem', 'rspec')
7
library_path = File.expand_path("../../#{lib}", __FILE__)
8
if File.exist?(library_path) && !ENV['USE_GIT_REPOS']
- gem lib, :path => library_path
9
+ gem gem_name, :path => library_path
10
else
- gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => ENV.fetch('BRANCH', 'main')
11
+ gem gem_name, :git => "https://github.com/rspec/#{lib}.git", :branch => ENV.fetch('BRANCH', 'main')
12
end
13
14
0 commit comments