require "babel_diff/version" require "babel_diff/file_handler" require "babel_diff/yaml_differ" module BabelDiff def self.run(current_version_path = "config/locales/phrase.en.yml") handler = FileHandler.new(current_version_path) yaml_differ = YamlDiffer.new(handler.current_version, handler.previous_version) updates = yaml_differ.updates additions = yaml_differ.additions handler.create_updates(updates) handler.create_additions(additions) handler.version_files end end