Actions
Bug #10690
closedTempfile new ArgumentError wrong number of arguments
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
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
Like0
Like0