summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-14 13:16:09 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commitc090c64b4faa429c9f0f7c361e932e6b1a960a3d (patch)
tree8a81500f2bee986ae0bd1328d9e59d61400e78ad /lib
parent65a4b03781764cccf7153847b996ebd1db65335f (diff)
[rubygems/rubygems] Prefer the standard separator on Windows
It seems like the most common case since it requires no tricks on our CI environment. Co-authored-by: MSP-Greg <MSP-Greg@users.noreply.github.com> https://github.com/rubygems/rubygems/commit/751c475574
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 33de7f2f7c..3882330b53 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -704,7 +704,7 @@ class Gem::Installer
return if self.class.path_warning
user_bin_dir = @bin_dir || Gem.bindir(gem_home)
- user_bin_dir = user_bin_dir.tr(File::SEPARATOR, File::ALT_SEPARATOR) if
+ user_bin_dir = user_bin_dir.tr(File::ALT_SEPARATOR, File::SEPARATOR) if
File::ALT_SEPARATOR
path = ENV['PATH']