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

* lib/rubygems/installer.rb: Use gsub instead of gsub! to avoid

altering @bin_dir.  Fixes tests on windows.  [ruby-trunk - Bug #7885]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-02-19 22:51:38 +00:00
parent b6cdc43976
commit cd8ef79d22
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Feb 20 07:51:19 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems/installer.rb: Use gsub instead of gsub! to avoid
altering @bin_dir. Fixes tests on windows. [ruby-trunk - Bug #7885]
Tue Feb 19 20:50:00 2013 Kenta MURATA <mrkn@mrkn.jp> Tue Feb 19 20:50:00 2013 Kenta MURATA <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.gemspec: bump to 1.2.0. * ext/bigdecimal/bigdecimal.gemspec: bump to 1.2.0.

View file

@ -561,7 +561,9 @@ class Gem::Installer
# DOC: Missing docs or :nodoc:. # DOC: Missing docs or :nodoc:.
def check_that_user_bin_dir_is_in_path def check_that_user_bin_dir_is_in_path
user_bin_dir = @bin_dir || Gem.bindir(gem_home) user_bin_dir = @bin_dir || Gem.bindir(gem_home)
user_bin_dir.gsub!(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR user_bin_dir = user_bin_dir.gsub(File::SEPARATOR, File::ALT_SEPARATOR) if
File::ALT_SEPARATOR
path = ENV['PATH'] path = ENV['PATH']
if Gem.win_platform? then if Gem.win_platform? then
path = path.downcase path = path.downcase