diff --git a/ChangeLog b/ChangeLog index 7a614ac6a7..ee75315c92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 21 18:28:42 2013 Nobuyoshi Nakada + + * lib/tempfile.rb (Tempfile#initialize): use class method to get rid + of warnings when $VERBOSE. + Thu Nov 21 17:43:29 2013 Koichi Sasada * gc.c: rename initial_xxx variables to gc_params.xxx. diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 92a73f82ea..5f4e8eedf1 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -133,7 +133,7 @@ class Tempfile < DelegateClass(File) @clean_proc = Remover.new(@data) ObjectSpace.define_finalizer(self, @clean_proc) - create(basename, *rest) do |tmpname, n, opts| + ::Dir::Tmpname.create(basename, *rest) do |tmpname, n, opts| mode = File::RDWR|File::CREAT|File::EXCL perm = 0600 if opts