зеркало из https://github.com/github/ruby.git
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8252ef0ad3
Коммит
c1f355d91f
|
@ -1,3 +1,9 @@
|
|||
Sat May 30 15:59:10 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* 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@englund.nu>
|
||||
|
||||
* doc/dtrace_probes.rdoc: change lingering dtrace probe documentation
|
||||
|
|
|
@ -125,6 +125,7 @@ class Tempfile < DelegateClass(File)
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче