From b8b2b83bc49eb31509e28cb833bbd30748556b1d Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Wed, 17 Feb 2021 11:12:47 +0100 Subject: [PATCH] Fix Ruby 2.7 options warning during compilation During compilation, the usual Ruby 2.7 warning is raised: lib/compiler/utils.rb:93: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /path/to/ruby/2.7.0/fileutils.rb:463: warning: The called method `cp_r' is defined here The (conventional) fix applied is to unpack the keyword arguments hash. --- lib/compiler/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/utils.rb b/lib/compiler/utils.rb index 00a1a024f..f63d6d530 100644 --- a/lib/compiler/utils.rb +++ b/lib/compiler/utils.rb @@ -90,7 +90,7 @@ def cp(from, to) def cp_r(from, to, options = {}) warn "-> cp -r #{from.inspect} #{to.inspect}" unless @options[:quiet] - FileUtils.cp_r(from, to, options) + FileUtils.cp_r(from, to, **options) end def rm(path)