diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-04-07 16:44:49 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-08-30 12:39:31 -0700 |
commit | d08e1004e0ee1286e4513de2a170391a4d0a0116 (patch) | |
tree | 5c7dd8244c2bf4c0f9b06725f3585c7ffc710ef3 /lib/tmpdir.rb | |
parent | 3f67fcd3d5ca5e2907790eb5bb16d03f5884ece8 (diff) |
Fix keyword argument separation issues in lib
Mostly requires adding ** in either calls or method definitions.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2395
Diffstat (limited to 'lib/tmpdir.rb')
-rw-r--r-- | lib/tmpdir.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index 05e74eb523..d7a8f799fe 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -82,9 +82,9 @@ class Dir # FileUtils.remove_entry dir # end # - def self.mktmpdir(prefix_suffix=nil, *rest) + def self.mktmpdir(prefix_suffix=nil, *rest, **options) base = nil - path = Tmpname.create(prefix_suffix || "d", *rest) {|path, _, _, d| + path = Tmpname.create(prefix_suffix || "d", *rest, **options) {|path, _, _, d| base = d mkdir(path, 0700) } |