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

ruby-changes:38603

From: usa <ko1@a...>
Date: Sat, 30 May 2015 16:01:46 +0900 (JST)
Subject: [ruby-changes:38603] usa:r50684 (trunk): * lib/tempfile.rb (Tempfile#initialize): initialize @unlinked to fix

usa	2015-05-30 16:01:29 +0900 (Sat, 30 May 2015)

  New Revision: 50684

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

  Log:
    * lib/tempfile.rb (Tempfile#initialize): initialize @unlinked to fix
      test failures introduced at r50682.  I hope that check the results of
      tests before committing, at least the tests about the changed feature.

  Modified files:
    trunk/ChangeLog
    trunk/lib/tempfile.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50683)
+++ ChangeLog	(revision 50684)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat May 30 15:59:10 2015  NAKAMURA Usaku  <usa@r...>
+
+	* lib/tempfile.rb (Tempfile#initialize): initialize @unlinked to fix
+	  test failures introduced at r50682.  I hope that check the results of
+	  tests before committing, at least the tests about the changed feature.
+
 Sat May 30 11:02:55 2015  Martin Englund <martin@e...>
 
 	* doc/dtrace_probes.rdoc: change lingering dtrace probe documentation
Index: lib/tempfile.rb
===================================================================
--- lib/tempfile.rb	(revision 50683)
+++ lib/tempfile.rb	(revision 50684)
@@ -125,6 +125,7 @@ class Tempfile < DelegateClass(File) https://github.com/ruby/ruby/blob/trunk/lib/tempfile.rb#L125
   def initialize(basename="", tmpdir=nil, mode: 0, **options)
     warn "Tempfile.new doesn't call the given block." if block_given?
 
+    @unlinked = false
     @mode = mode|File::RDWR|File::CREAT|File::EXCL
     ::Dir::Tmpname.create(basename, tmpdir, options) do |tmpname, n, opts|
       opts[:perm] = 0600

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

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