[前][次][番号順一覧][スレッド一覧]

ruby-changes:39014

From: hsbt <ko1@a...>
Date: Thu, 2 Jul 2015 09:52:10 +0900 (JST)
Subject: [ruby-changes:39014] hsbt:r51095 (trunk): * lib/rubygems/resolver.rb: fix error of null device reference with DOSISH

hsbt	2015-07-02 09:51:50 +0900 (Thu, 02 Jul 2015)

  New Revision: 51095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51095

  Log:
    * lib/rubygems/resolver.rb: fix error of null device reference with DOSISH
      platform.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/resolver.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51094)
+++ ChangeLog	(revision 51095)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jul  2 09:51:44 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* lib/rubygems/resolver.rb: fix error of null device reference with DOSISH
+	  platform.
+
 Thu Jul  2 06:49:44 2015  SHIBATA Hiroshi  <hsbt@r...>
 
 	* lib/rubygems: Update to RubyGems HEAD(c202db2).
Index: lib/rubygems/resolver.rb
===================================================================
--- lib/rubygems/resolver.rb	(revision 51094)
+++ lib/rubygems/resolver.rb	(revision 51095)
@@ -172,7 +172,7 @@ class Gem::Resolver https://github.com/ruby/ruby/blob/trunk/lib/rubygems/resolver.rb#L172
   include Molinillo::UI
 
   def output
-    @output ||= debug? ? $stdout : File.open('/dev/null', 'w')
+    @output ||= debug? ? $stdout : File.open(Gem::Util::NULL_DEVICE, 'w')
   end
 
   def debug?

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]