lib/apstrings.rb in apstrings-0.1.1 vs lib/apstrings.rb in apstrings-0.2.0

- old
+ new

@@ -2,24 +2,24 @@ require 'colorize' module Apstrings require 'apstrings/reader' require 'apstrings/strings_parser' +require 'apstrings/strings_validator' + # Public - def self.parse(file) - file = Apstrings::read(file) - StringsParser.new(file).parse_file - end + def self.parse(file) + file = Apstrings::read(file) + StringsParser.new(file).parse_file + end - def self.read(file) - Reader.read(file) - end + def self.read(file) + Reader.read(file) + end - def self.check(path = File::expand_path("."), master = "zh-Hans") - p "Checking files recursively for #{path} according to master strings file name : #{master}" - - - end - + def self.validate(file,masterFile = nil) + Validator::validate(file,masterFile) + end + end