apstrings 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e34ce4ce8368783b9945b8b89844ff9f2d88e66a
4
- data.tar.gz: 2f61172036204cbd1802e983bd15e819bb118480
3
+ metadata.gz: 88ab7c4ba5dffccaf399f80708f577d3ab3164df
4
+ data.tar.gz: 95fa426290582eea88b6c5b9ee10d838fa857a03
5
5
  SHA512:
6
- metadata.gz: ea3c22a1ccef37b8074f9a0d7a08de3213c02910464bdca746d1f78d047d2ced13b396d49920d71ddcf3371f76be266f4c6355718033ddb8346e77f298546317
7
- data.tar.gz: c97ceb1f97eb388e19be1488abb122118f597b929ad6f10c973f2727db54f12b5a7d1dc118e2e9f23330adfa22ec5b3875f98c0aa358cd55bc848d6fe1c1ac79
6
+ metadata.gz: 5b46edfc19f1ac5ddccb38d4248ef1301f91426bbf4b6d1774195b7a3e4b88de685108be16e6e761faa7cce097df83a4a13b71853c450cbd6dc68d4095369bc4
7
+ data.tar.gz: 15190d55fe0c15b9b178f7af31dd95aec31ac1d14341295b83edcb7ac6dbe48f18ff22a0550b3c8833f8b59af137cd0bdc87aafc7e113e3688f54ef5540b860b
data/bin/apstrings CHANGED
@@ -33,6 +33,4 @@ files_to_validate["files"].each { |file|
33
33
 
34
34
  p success ? "Success, well done!" : "Failed: You'd better know what r u doing..."
35
35
 
36
-
37
-
38
36
 
@@ -78,6 +78,7 @@ module Apstrings
78
78
  }
79
79
  end
80
80
 
81
+
81
82
  def self.validate_special_characters(file)
82
83
  puts "apstrings: checking syntax for #{file}..."
83
84
  sf = Validator::paredFile(file)
@@ -87,8 +88,9 @@ module Apstrings
87
88
  |e| e.each_pair {
88
89
  |key,value|
89
90
  fixed_key = Validator::value_in_master(key)
90
- striped_value = value.gsub(/%\d\$/,'%') # Strip numbered format placeholders , e.g. %1$@ --> %@
91
- key_variables = fixed_key.scan(variables_regex)
91
+ striped_key = fixed_key.gsub(/%\d\$/,'%') # Strip numbered format placeholders , e.g. %1$@ --> %@
92
+ striped_value = value.gsub(/%\d\$/,'%')
93
+ key_variables = striped_key.scan(variables_regex)
92
94
  value_variables = striped_value.scan(variables_regex)
93
95
  if !(key_variables.sort == value_variables.sort)
94
96
  mismatchs << {key => value}
@@ -3,7 +3,7 @@ require 'apstrings'
3
3
 
4
4
 
5
5
 
6
- $ROOT = ARGV[0]
6
+ $ROOT = "/Users/Jason/Desktop/clean-portal/Portal/Pods/APCommonUI/APCommonUI.framework"
7
7
 
8
8
  Dir::chdir($ROOT)
9
9
  files_to_validate = {"master"=> nil,"files" => []}
@@ -18,7 +18,6 @@ Dir.glob(File.join("**", "*.bundle","**","*.strings")) { |file|
18
18
 
19
19
  success = true
20
20
  files_to_validate["files"].each { |file|
21
- # p files_to_validate["master"].to_hash[""]
22
21
  if !Apstrings::validate(file,files_to_validate["master"])
23
22
  success = false
24
23
  end
@@ -1,3 +1,3 @@
1
1
  module Apstrings
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apstrings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JasonWorking
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,6 @@ files:
69
69
  - LICENSE.txt
70
70
  - README.md
71
71
  - Rakefile
72
- - apstrings-0.2.1.gem
73
72
  - apstrings.gemspec
74
73
  - bin/apstrings
75
74
  - bin/console
data/apstrings-0.2.1.gem DELETED
Binary file