[前][次][番号順一覧][スレッド一覧]

ruby-changes:57424

From: Yusuke <ko1@a...>
Date: Sat, 31 Aug 2019 07:18:27 +0900 (JST)
Subject: [ruby-changes:57424] Yusuke Endoh: 8cb9efbbe6 (master): tool/rbinstall.rb: remove a keyword-argument warning

https://git.ruby-lang.org/ruby.git/commit/?id=8cb9efbbe6

From 8cb9efbbe62a9a544bff2cd6571fc756ce92a738 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 31 Aug 2019 07:17:46 +0900
Subject: tool/rbinstall.rb: remove a keyword-argument warning


diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 1a14960..a316e07 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -171,7 +171,7 @@ def install(src, dest, options = {}) https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L171
   strip = options.delete(:strip)
   options[:preserve] = true
   d = with_destdir(dest)
-  super(src, d, options)
+  super(src, d, **options)
   srcs = Array(src)
   if strip
     d = srcs.map {|s| File.join(d, File.basename(s))} if $made_dirs[dest]
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]