From 377030a6e5071af36600d0805ba83f61d9172694 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Thu, 27 Jan 2022 10:41:43 -0600 Subject: [PATCH] Update tmpdir.rb from 3.1 The changes here are trivial, and tmpdir will move to a gem soon once we have incorporated our minor changes. We will no longer copy this from CRuby proper. https://github.com/ruby/tmpdir/issues/13 --- lib/ruby/stdlib/tmpdir.rb | 4 ++-- tool/sync_ruby_files.rb | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ruby/stdlib/tmpdir.rb b/lib/ruby/stdlib/tmpdir.rb index 12def4977b8..cc0b60790b5 100644 --- a/lib/ruby/stdlib/tmpdir.rb +++ b/lib/ruby/stdlib/tmpdir.rb @@ -69,7 +69,7 @@ def self.tmpdir # # Dir.mktmpdir {|dir| # # use the directory... - # open("#{dir}/foo", "w") { ... } + # open("#{dir}/foo", "w") { something using the file } # } # # If a block is not given, @@ -79,7 +79,7 @@ def self.tmpdir # dir = Dir.mktmpdir # begin # # use the directory... - # open("#{dir}/foo", "w") { ... } + # open("#{dir}/foo", "w") { something using the file } # ensure # # remove the directory. # FileUtils.remove_entry dir diff --git a/tool/sync_ruby_files.rb b/tool/sync_ruby_files.rb index a2f001e242f..af567617ef4 100644 --- a/tool/sync_ruby_files.rb +++ b/tool/sync_ruby_files.rb @@ -1,5 +1,4 @@ STDLIB_FILES = %w[ - tmpdir.rb unicode_normalize weakref.rb ]