Sha256: 77a634edec3d12f19d4da081d4188f53d8686e76f6b5c40d23ad71739675f671

Contents?: true

Size: 883 Bytes

Versions: 1

Compression:

Stored size: 883 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "apstrings"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start


$ROOT = ARGV[0]

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

1 entries across 1 versions & 1 rubygems

Version Path
apstrings-0.2.4 bin/apstrings