lib/review/makerhelper.rb in review-2.3.0 vs lib/review/makerhelper.rb in review-2.4.0

- old
+ new

@@ -1,7 +1,5 @@ -# encoding: utf-8 - # Copyright (c) 2012-2017 Yuto HAYAMIZU, Kenshi Muto # # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. @@ -51,11 +49,11 @@ next unless /\.#{orig_type}$/ =~ fname is_converted = system("convert #{from_dir}/#{fname} #{to_dir}/#{fname}.#{conv_type}") image_files << "#{from_dir}/#{fname}.#{conv_type}" end - exts = options[:exts] || %w(png gif jpg jpeg svg pdf eps ai tif) + exts = options[:exts] || %w[png gif jpg jpeg svg pdf eps ai tif] exts_str = exts.join('|') if !is_converted && fname =~ /\.(#{exts_str})$/i FileUtils.cp "#{from_dir}/#{fname}", to_dir image_files << "#{from_dir}/#{fname}" end @@ -64,8 +62,7 @@ end image_files end module_function :copy_images_to_dir - end end