Skip to content

Commit

Permalink
Merge pull request puppetlabs#2164 from ciprianbadescu/maint/update-a…
Browse files Browse the repository at this point in the history
…cceptence-gemfile-location

(maint) revert location_for signature in acceptance/Gemfile
  • Loading branch information
GabrielNagy authored Nov 3, 2021
2 parents 615513a + 7bad917 commit 80f18b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acceptance/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# to ensure a similar environment on acceptance hosts.
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

def location_for(place)
def location_for(place, fake_version = nil)
if place =~ /^((?:git[:@]|https:)[^#]*)#(.*)/
[{ :git => $1, :branch => $2, :require => false }]
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
Expand Down

0 comments on commit 80f18b0

Please sign in to comment.