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:
parent
7304e357a8
commit
1954a95f8b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue