Sha256: 374cf66d132c9d87a72b703731743be19695ebe5c7dd036f72c667c9d0684390

Contents?: true

Size: 709 Bytes

Versions: 11

Compression:

Stored size: 709 Bytes

Contents

require 'apstrings'



$ROOT = "/Users/Jason/Desktop/clean-portal/Portal/Pods/APCommonUI/APCommonUI.framework"

Dir::chdir($ROOT)
files_to_validate = {"master"=> nil,"files" => []}
Dir.glob(File.join("**", "*.bundle","**","*.strings")) { |file| 
	p File.basename(file)
	if File.basename(file) == "zh-Hans.strings"
		files_to_validate["master"] = File.expand_path(file)
	else
		files_to_validate["files"] << File.expand_path(file) 
	end
 }

success = true
files_to_validate["files"].each { |file|
	if !Apstrings::validate(file,files_to_validate["master"])
		success = false
	end
 }

 p success ? Apstrings::log_info("Success, well done!") :  Apstrings::log_error("Failed: You'd better know what r u doing...")

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
apstrings-0.4.1 lib/apstrings/tester.rb
apstrings-0.4.0 lib/apstrings/tester.rb
apstrings-0.3.9 lib/apstrings/tester.rb
apstrings-0.3.8 lib/apstrings/tester.rb
apstrings-0.3.7 lib/apstrings/tester.rb
apstrings-0.3.6 lib/apstrings/tester.rb
apstrings-0.3.5 lib/apstrings/tester.rb
apstrings-0.3.4 lib/apstrings/tester.rb
apstrings-0.3.3 lib/apstrings/tester.rb
apstrings-0.3.1 lib/apstrings/tester.rb
apstrings-0.3.0 lib/apstrings/tester.rb