Issue #10690 has been updated by Nobuyoshi Nakada.

Status changed from Open to Rejected

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

----------------------------------------
Bug #10690: Tempfile new ArgumentError wrong number of arguments
https://bugs.ruby-lang.org/issues/10690#change-50758

* Author: Craig Hills
* Status: Rejected
* Priority: Normal
* Assignee: 
* Category: lib
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
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)


-- 
https://bugs.ruby-lang.org/