lib/nanoc/extra/filesystem_tools.rb in nanoc-4.0.0 vs lib/nanoc/extra/filesystem_tools.rb in nanoc-4.0.1
- old
+ new
@@ -98,11 +98,13 @@
when String
patterns << "#{dir_name}/#{extra_files}"
when Array
patterns.concat(extra_files.map { |extra_file| "#{dir_name}/#{extra_file}" })
else
- raise Nanoc::Int::Errors::GenericTrivial,
- "Do not know how to handle extra_files: #{extra_files.inspect}"
+ raise(
+ Nanoc::Int::Errors::GenericTrivial,
+ "Do not know how to handle extra_files: #{extra_files.inspect}",
+ )
end
Dir.glob(patterns)
end
module_function :all_files_and_dirs_in