From 1954a95f8bf71f61ce9996a0d8a34b18bb56da3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 29 Dec 2021 20:53:26 +0100 Subject: [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 --- spec/bundler/support/artifice/vcr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/bundler/support') diff --git a/spec/bundler/support/artifice/vcr.rb b/spec/bundler/support/artifice/vcr.rb index 0d51201bef..ceb133346f 100644 --- a/spec/bundler/support/artifice/vcr.rb +++ b/spec/bundler/support/artifice/vcr.rb @@ -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 -- cgit v1.2.1