Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 1, 2012
  1. @knu

    * lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): Just

    knu authored
      call File.unlink and ignore ENOENT because existence check
      before unlinking does not help in terms of race condition.
    
    * lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): My
      comment about thread safeness is obsolete.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 28, 2009
  1. @knu

    * lib/tempfile.rb (Tempfile#callback): Debug information should be

    knu authored
      output to stderr, not stdout; pointed out by akira yamada.
      cf. [ruby-dev:39072]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 11, 2007
  1. @knu

    * lib/tempfile.rb (Tempfile::make_tmpname): Allow to specify a

    knu authored
      suffix for a temporary file name.
    
    * lib/tempfile.rb (Tempfile::make_tmpname): Make temporary file
      names less predictable by including a random string.
      [inspired by: akr]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 20, 2003
  1. @knu

    * lib/tempfile.rb (self.open): If a block is given, call it with

    knu authored
      tempfile as an argument and automatically close the tempfile
      when the block terminates.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 23, 2002
  1. @knu

    Rename an argument name to avoid a potential clash.

    knu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 20, 2002
  1. @knu

    Fix a fatal typo. (pointed out by Jim Freeze)

    knu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 19, 2002
  1. @knu

    * lib/tempfile.rb: Embed Rdoc style comments.

    knu authored
    * lib/tempfile.rb: Add length as an alias for size.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @knu

    Add Tempfile#close!() as a shorthand for Tempfile#close(true).

    knu authored
    Add Tempfile#{unlink,delete}().
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 18, 2002
  1. @knu

    Improve the comment section.

    knu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 17, 2002
  1. @knu

    * lib/tempfile.rb: Make this libary thread safe.

    knu authored
    * lib/tempfile.rb: Do not pick a name which was once used and is
      still scheduled for removal.
    
    * lib/tempfile.rb: A lock file need not and must not be scheduled
      for removal.
    
    * lib/tempfile.rb: Compare Max_try with the number of mkdir
      failures instead of the suffix counter.
    
    * lib/tempfile.rb: Overall cleanup and add some important notices.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 5, 2001
  1. @knu

    * lib/tempfile.rb: a tempfile must be created with mode 0600.

    knu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.