lib/tori/backend/s3.rb in tori-0.7.2 vs lib/tori/backend/s3.rb in tori-0.8.0

- old
+ new

@@ -146,15 +146,15 @@ def open(filename, opts = {}) names = [::File.basename(filename), ::File.extname(filename)] tmpdir = opts.delete(:tmpdir) if block_given? - Tempfile.create(names, tmpdir, opts) do |f| + Tempfile.create(names, tmpdir, **opts) do |f| get_object(key: filename, response_target: f.path) yield f end else - f = Tempfile.open(names, tmpdir, opts) + f = Tempfile.open(names, tmpdir, **opts) get_object(key: filename, response_target: f.path) f end end