Sha256: 5589a60a2d1d109972fa7715abcd47ee6309cc03e51b9f3f092f092e3e557880

Contents?: true

Size: 665 Bytes

Versions: 4

Compression:

Stored size: 665 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 ? "Success, well done!" : "Failed: You'd better know what r u doing..."

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apstrings-0.2.7 lib/apstrings/tester.rb
apstrings-0.2.6 lib/apstrings/tester.rb
apstrings-0.2.5 lib/apstrings/tester.rb
apstrings-0.2.4 lib/apstrings/tester.rb