Project

General

Profile

Actions

Bug #10690

closed

Tempfile new ArgumentError wrong number of arguments

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

Status:
Rejected
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+')


Files

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

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • Status changed from Open to Rejected

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

Actions

Also available in: Atom PDF

Like0
Like0