lib/apstrings/strings_validator.rb in apstrings-0.3.5 vs lib/apstrings/strings_validator.rb in apstrings-0.3.6
- old
+ new
@@ -5,13 +5,15 @@
class Validator
def self.validate(file,masterFile)
@master = nil
- # puts "apstrings: start validate strings file ..."
+ puts "\n-----------------------------------------"
+ puts "apstrings: start validate strings file : #{file} ..."
+ puts "-----------------------------------------"
if nil == masterFile
- Log::warn("No master file provided, validating file format for #{file} only ...")
+ Log::warn("No master file provided, validating file format only ...")
else
@master = Validator::paredFile(masterFile)
end
valid_master, valid_file , no_missing_key = true,true,true
@@ -24,13 +26,13 @@
if valid_master && valid_file && no_missing_key
# Log::info("Yeah! 🍻 🍻 ")
return true
else if valid_master && valid_file && !no_missing_key
- Log::warn("Missing keys found.")
+# Log::warn("Missing keys found.")
return true
else
- Log::error("Oh no! Invalid file.")
+# Log::error("Invalid file.")
return false
end
end
end