lib/emojidex/preprocessor.rb in emojidex-converter-0.2.1 vs lib/emojidex/preprocessor.rb in emojidex-converter-0.3.0
- old
+ new
@@ -5,16 +5,16 @@
class Preprocessor
def compile_svg_animations(path)
Dir.entries(path).each do |file|
current_path = "#{path}/#{file}"
next unless File.ftype(current_path) == 'directory'
- compile(current_path) unless file.start_with?('.')
+ _svg_compile(current_path) unless file.start_with?('.')
end
end
private
- def compile(source_dir)
+ def _svg_compile(source_dir)
json_path = "#{source_dir}/animation.json"
return unless File.exist?(json_path)
phantom_svg = Phantom::SVG::Base.new(json_path)