Skip to content

Commit 6e78ab0

Browse files
jeremyevansaycabta
authored andcommitted
Fix keyword argument separation issues in lib
Mostly requires adding ** in either calls or method definitions.
1 parent da63d91 commit 6e78ab0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/rdoc/generator/darkfish.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def copy_static
269269

270270
@options.static_path.each do |path|
271271
unless File.directory? path then
272-
FileUtils.install path, @outputdir, fu_options.merge(:mode => 0644)
272+
FileUtils.install path, @outputdir, **fu_options.merge(:mode => 0644)
273273
next
274274
end
275275

@@ -278,9 +278,9 @@ def copy_static
278278
dest_file = @outputdir + entry
279279

280280
if File.directory? entry then
281-
FileUtils.mkdir_p entry, fu_options
281+
FileUtils.mkdir_p entry, **fu_options
282282
else
283-
FileUtils.install entry, dest_file, fu_options.merge(:mode => 0644)
283+
FileUtils.install entry, dest_file, **fu_options.merge(:mode => 0644)
284284
end
285285
end
286286
end
@@ -585,16 +585,16 @@ def install_rdoc_static_file source, destination, options # :nodoc:
585585
return unless source.exist?
586586

587587
begin
588-
FileUtils.mkdir_p File.dirname(destination), options
588+
FileUtils.mkdir_p File.dirname(destination), **options
589589

590590
begin
591-
FileUtils.ln source, destination, options
591+
FileUtils.ln source, destination, **options
592592
rescue Errno::EEXIST
593593
FileUtils.rm destination
594594
retry
595595
end
596596
rescue
597-
FileUtils.cp source, destination, options
597+
FileUtils.cp source, destination, **options
598598
end
599599
end
600600

0 commit comments

Comments
 (0)