Sha256: 8b009ba7b7c5c165965ab71c700c4c9232c4ea3d4a910c2cd21b789a8bf6ec40

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require "babel_diff/version"
require "babel_diff/file_handler"
require "babel_diff/yaml_differ"

module BabelDiff
  def self.run(current_version_path = "config/locales/phrases.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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
babel_diff-1.0.0 lib/babel_diff.rb