From 7bad91752e6573042199b64eb434025877f381f4 Mon Sep 17 00:00:00 2001 From: Ciprian Badescu Date: Wed, 3 Nov 2021 10:03:24 +0200 Subject: [PATCH] (maint) revert location_for signature in acceptance/Gemfile --- acceptance/Gemfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acceptance/Gemfile b/acceptance/Gemfile index a99250c7f2..b9489757b8 100644 --- a/acceptance/Gemfile +++ b/acceptance/Gemfile @@ -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