lib/aigu/ios_exporter.rb in aigu-0.4.5 vs lib/aigu/ios_exporter.rb in aigu-0.5

- old
+ new

@@ -1,36 +1,12 @@ module Aigu - class IosExporter + class IOSExporter < Exporter PROP_LINE_REGEX = /^\s*"(?<key>.+)"\s?=\s?"(?<value>.*)";\s$/ DICT_DICT_OPEN_REGEX = /^\s*<dict>\s*$/ DICT_DICT_CLOSE_REGEX = /^\s*<\/dict>\s*$/ DICT_KEY_REGEX = /^\s*<key>(?<text>.*)<\/key>\s*$/ DICT_STRING_REGEX = /^\s*<string>(?<text>.*)<\/string>\s*$/ - - def initialize(opts = {}) - @output_file = opts[:'output-file'] - @input_directory = opts[:'input-directory'] - @locale = opts[:locale] - @ignore = opts[:ignore] - end - - def process! - puts "Generating Accent JSON file `#{@output_file}` based on IOS strings files in `#{@input_directory}` directory" - - if @ignore - print 'Ignoring ' - puts @ignore.join(', ') - end - - puts '---' - - build_output - write_json_file - - puts '---' - puts 'Done' - end protected def build_output @output = {}