diff --git a/lib/rake/file_utils_ext.rb b/lib/rake/file_utils_ext.rb index 7c22f8068..a5fdb9dad 100644 --- a/lib/rake/file_utils_ext.rb +++ b/lib/rake/file_utils_ext.rb @@ -12,7 +12,7 @@ module FileUtilsExt class << self attr_accessor :verbose_flag, :nowrite_flag end - FileUtilsExt.verbose_flag = nil + FileUtilsExt.verbose_flag = true FileUtilsExt.nowrite_flag = false $fileutils_verbose = true @@ -29,11 +29,11 @@ class << self next if default_options.empty? module_eval(<<-EOS, __FILE__, __LINE__ + 1) - def #{name}( *args, &block ) + def #{name}( *args, **options, &block ) super( - *rake_merge_option(args, - #{default_options.join(', ')} - ), &block) + *args, + **{#{default_options.join(", ")}}.merge(options), + &block) end EOS end