зеркало из https://github.com/github/ruby.git
* lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1.
[ruby-core:66943] [Bug #10616] Fixed by Alex Slynko. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
96fc3108b5
Коммит
8b5c7d939d
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 20 17:49:03 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1.
|
||||
[ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.
|
||||
|
||||
Sat Dec 20 11:22:58 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/fiddle/depend, ext/fiddle/extconf.rb: try to build bundled
|
||||
|
|
|
@ -81,8 +81,8 @@ class Dir
|
|||
# FileUtils.remove_entry dir
|
||||
# end
|
||||
#
|
||||
def Dir.mktmpdir(prefix_suffix="d", *rest)
|
||||
path = Tmpname.create(prefix_suffix, *rest) {|n| mkdir(n, 0700)}
|
||||
def Dir.mktmpdir(prefix_suffix=nil, *rest)
|
||||
path = Tmpname.create(prefix_suffix || "d", *rest) {|n| mkdir(n, 0700)}
|
||||
if block_given?
|
||||
begin
|
||||
yield path
|
||||
|
|
Загрузка…
Ссылка в новой задаче