gametime-helper 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94a63f82a2e4d8a9d8bd390d8089b020d5ae1981
4
- data.tar.gz: de236b3771abe61a2d472a495ebb9aea9fdd1f60
3
+ metadata.gz: bb2b3d0ebf65f3e697ad1fd283281d208418af64
4
+ data.tar.gz: 1d4fd384d3e8db083680c2245288cd0f1283169a
5
5
  SHA512:
6
- metadata.gz: ebf160b80c89fa5f6aee9ada1991fdb4287594e2fad3525bd45d0a659cdc54b6eee2c5ed5de5515ac88679532451b1bbf4685148023e372b8d38f286f36188ee
7
- data.tar.gz: 211780739a400866162f783b4709da80a1af56f26a62cd0b79fb896e8d0ed79eca108b712ddbf9ec0b6cf7677e40e040075e63745aa0b25919372805efecdf7a
6
+ metadata.gz: ffe96fecc62fe85495f8bff5b728f7c6552efee428583bc819fa05ac7936a07d8f40648dcf0e599f3128c41cf8661657ef77eed626a49a979ba81fceb48eef68
7
+ data.tar.gz: d02be1d7b55803378b21ce24ea770d0de288b94b4f378ec7d087c3f562cf1fb332ac13ec4baa02383ffa452c17c6d72bbebf35db04947ab881478ae922ddeb4a
@@ -3,7 +3,8 @@ module Gametime
3
3
  class VerifyLocalization
4
4
  EXCEPTIONS = [
5
5
  "FAQ",
6
- "LocalNotifications"
6
+ "LocalNotifications",
7
+ "Inflectors"
7
8
  ]
8
9
 
9
10
  def verify
@@ -32,7 +33,14 @@ module Gametime
32
33
  if matched_output = result.match(/stringForID\("\S*"/)
33
34
  matched_output = matched_output.to_s.gsub(/stringForID\(/, '')
34
35
 
35
- unless valid_lines.include?(matched_output)
36
+ exception_found = false
37
+ EXCEPTIONS.each do |exception|
38
+ if matched_output.match(/#{exception}/)
39
+ exception_found = true
40
+ end
41
+ end
42
+
43
+ if !valid_lines.include?(matched_output) && !exception_found
36
44
  puts "missing key: #{matched_output}"
37
45
  valid_event = false
38
46
  end
@@ -41,7 +49,14 @@ module Gametime
41
49
  if matched_output = result.match(/GTStr\("\S*"/)
42
50
  matched_output = matched_output.to_s.gsub(/GTStr\(/, '')
43
51
 
44
- unless valid_lines.include?(matched_output)
52
+ exception_found = false
53
+ EXCEPTIONS.each do |exception|
54
+ if matched_output.match(/#{exception}/)
55
+ exception_found = true
56
+ end
57
+ end
58
+
59
+ if !valid_lines.include?(matched_output) && !exception_found
45
60
  puts "missing key: #{matched_output}"
46
61
  valid_event = false
47
62
  end
@@ -1,5 +1,5 @@
1
1
  module Gametime
2
2
  module Helper
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gametime-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Silvis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize