Project

General

Profile

Bug #10690

Tempfile new ArgumentError wrong number of arguments

Added by chills42 (Craig Hills) almost 4 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
[ruby-core:67296]

Description

After updating to 2.2.0, I ran into an ArgumentError when calling Tempfile.new (wrong number of arguments (3 for 1..2).

I was able to narrow it down to this sample script which works on 2.1.3 and fails on 2.2.0.

require 'tempfile'
p Tempfile.new('asdf', Dir.tmpdir, 'wb+')

tmptest.rb (61 Bytes) tmptest.rb sample script chills42 (Craig Hills), 01/02/2015 02:10 PM

History

#1 [ruby-core:67299] Updated by nobu (Nobuyoshi Nakada) almost 4 years ago

  • Status changed from Open to Rejected

It's your bug.
Tempfile.new hasn't accepted such argument, but just ignored.

Also available in: Atom PDF