From c3ddd47ce7b546530e2241b0ea6a96817977886a Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Mon, 6 May 2019 18:06:21 +0200 Subject: [bundler/bundler] Normalize file:// handling in specs https://github.com/bundler/bundler/commit/5946d62ad0 --- spec/bundler/support/path.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/bundler/support/path.rb') diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index dc4b3bb6eb..28682a1f25 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -62,6 +62,14 @@ module Spec tmp.join("gems/base") end + def file_uri_for(path) + protocol = "file://" + + return protocol + "localhost" + path.to_s if RUBY_VERSION < "2.5" + + protocol + path.to_s + end + def gem_repo1(*args) tmp("gems/remote1", *args) end -- cgit v1.2.3