1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Better way to join path components

The current way works, but error messages show duplicate "/" in paths,
which is weird.

https://github.com/rubygems/rubygems/commit/9123deb4fa
This commit is contained in:
David Rodríguez 2021-12-29 20:53:26 +01:00 committed by git
parent 7304e357a8
commit 1954a95f8b

View file

@ -69,7 +69,7 @@ class BundlerVCRHTTP < Net::HTTP
end
def file_name_for_key(key)
key.join("/").gsub(/[\:*?"<>|]/, "-")
File.join(*key).gsub(/[\:*?"<>|]/, "-")
end
def request_pair_paths