Project

General

Profile

Bug #10616

Dir.mktmpdir is not setting "d" prefix as default

Added by alex_slynko (Alex Slynko) almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.2.0.preview1, 2.2.0.preview2
[ruby-core:66943]

Description

In Ruby < 2.2.0 when nil was passed as first parameter it was changed to "d"
In latest version this behaviour was changed and now 'd' is default value, but if nil was passed Exception is raised.

I attached tiny patch to this.


Files

ruby-changes.patch (518 Bytes) ruby-changes.patch alex_slynko (Alex Slynko), 12/18/2014 10:38 AM

Associated revisions

Revision 8b5c7d93
Added by akr (Akira Tanaka) almost 5 years ago

  • 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

Revision 48905
Added by akr (Akira Tanaka) almost 5 years ago

  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Revision 48905
Added by akr (Akira Tanaka) almost 5 years ago

  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Revision 48905
Added by akr (Akira Tanaka) almost 5 years ago

  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Revision 48905
Added by akr (Akira Tanaka) almost 5 years ago

  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Revision 48905
Added by akr (Akira Tanaka) almost 5 years ago

  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Revision 48905
Added by akr (Akira Tanaka) almost 5 years ago

  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Revision fa9f7c25
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 48906
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

Revision 48906
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

Revision 48906
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

Revision 48906
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

Revision 48906
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

Revision 48906
Added by akr (Akira Tanaka) almost 5 years ago

Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616].

Revision 7f5bc1ba
Added by naruse (Yui NARUSE) almost 5 years ago

merge revision(s) 48905: [Backport #10616]

    * 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/branches/ruby_2_2@48947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

Updated by akr (Akira Tanaka) almost 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r48905.


  • lib/tmpdir.rb (Dir.mktmpdir): Accept nil again, as Ruby 2.1. [ruby-core:66943] [Bug #10616] Fixed by Alex Slynko.

Updated by nagachika (Tomoyuki Chikanaga) almost 5 years ago

  • Backport set to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED

Updated by naruse (Yui NARUSE) almost 5 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

ruby_2_2 r48947 merged revision(s) 48905.

Also available in: Atom PDF