diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-06 18:06:21 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:55 +0900 |
commit | c3ddd47ce7b546530e2241b0ea6a96817977886a (patch) | |
tree | 46515c479773d7add25773b536009e096ee9fa78 /spec/bundler/support/path.rb | |
parent | d8d5e16305ee071f7cf16980788cabcc44799c2e (diff) |
[bundler/bundler] Normalize file:// handling in specs
https://github.com/bundler/bundler/commit/5946d62ad0
Diffstat (limited to 'spec/bundler/support/path.rb')
-rw-r--r-- | spec/bundler/support/path.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |