ruby-changes:42343
From: naruse <ko1@a...>
Date: Wed, 30 Mar 2016 01:31:17 +0900 (JST)
Subject: [ruby-changes:42343] naruse:r54417 (ruby_2_3): merge revision(s) 54307: [Backport #12193]
naruse 2016-03-30 01:31:12 +0900 (Wed, 30 Mar 2016) New Revision: 54417 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54417 Log: merge revision(s) 54307: [Backport #12193] * lib/rubygems/test_case.rb: Fix test on Windows for inconsistent temp path. https://github.com/rubygems/rubygems/pull/1554 [Bug #12193][ruby-core:74431] Modified directories: branches/ruby_2_3/ Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/lib/rubygems/test_case.rb branches/ruby_2_3/version.h Index: ruby_2_3/lib/rubygems/test_case.rb =================================================================== --- ruby_2_3/lib/rubygems/test_case.rb (revision 54416) +++ ruby_2_3/lib/rubygems/test_case.rb (revision 54417) @@ -252,6 +252,17 @@ class Gem::TestCase < MiniTest::Unit::Te https://github.com/ruby/ruby/blob/trunk/ruby_2_3/lib/rubygems/test_case.rb#L252 @tempdir.untaint end + # This makes the tempdir consistent on Windows. + # Dir.tmpdir may return short path name, but Dir[Dir.tmpdir] returns long + # path name. https://bugs.ruby-lang.org/issues/10819 + # File.expand_path or File.realpath doesn't convert path name to long path + # name. Only Dir[] (= Dir.glob) works. + # Short and long path name is specific to Windows filesystem. + if win_platform? + @tempdir = Dir[@tempdir][0] + @tempdir.untaint + end + @gemhome = File.join @tempdir, 'gemhome' @userhome = File.join @tempdir, 'userhome' ENV["GEM_SPEC_CACHE"] = File.join @tempdir, 'spec_cache' Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 54416) +++ ruby_2_3/version.h (revision 54417) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.0" #define RUBY_RELEASE_DATE "2016-03-30" -#define RUBY_PATCHLEVEL 65 +#define RUBY_PATCHLEVEL 66 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 54416) +++ ruby_2_3/ChangeLog (revision 54417) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Wed Mar 30 01:30:54 2016 Hiroshi Shirosaki <h.shirosaki@g...> + + * lib/rubygems/test_case.rb: Fix test on Windows for inconsistent temp path. + https://github.com/rubygems/rubygems/pull/1554 + [Bug #12193][ruby-core:74431] + Wed Mar 30 01:25:46 2016 NARUSE, Yui <naruse@r...> * string.c (str_new_frozen): if the given string is embeddedable Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r54307 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/