From 434582d888ad2982ec01d9b5a1e1afe8480312ab Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 6 Sep 2019 13:37:09 -0700 Subject: [PATCH] Fix Tempfile.open to correctly pass keywords to Tempfile.new --- lib/tempfile.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 66d206a938..2bd124abea 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -287,8 +287,8 @@ class Tempfile < DelegateClass(File) # ensure # f.close # end - def open(*args) - tempfile = new(*args) + def open(*args, **kw) + tempfile = new(*args, **kw) if block_given? begin