gametime-helper 0.1.0 → 0.1.1

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: 6120fa2a36c1f470b5dc58f053a4a65f83cb085a
4
- data.tar.gz: dea49cbbe25eb7739252bd59f892152bd7ebd7b9
3
+ metadata.gz: 41c41ba98fce282b4ed95cfd2559cdd853f75d24
4
+ data.tar.gz: 4c9b315bffe1b2b8402990fba28148b5b361e5d8
5
5
  SHA512:
6
- metadata.gz: a9bc421f8137f9a7192da3702b37bb10ac186e4688ec5d490838cbc6cb14edbf618a2ad5890f5871bcaeb9b6a8c10e934f45ae20ff49cf135f37e7264e931e5a
7
- data.tar.gz: bc07559d033e7d409147216e37f0f709fe15204e6d86dd64b70e03bcde7081c57258b6c7bdcd0595cc344412f529975b5111add72b3b492f8c10bfc1e97bfa4f
6
+ metadata.gz: 49bc02b1bb117f9e28ad7b614bc76b98e0a15b19b5351bbd447b2e117956e2a7ba36a7af28d2da83603a797b10ca96421091a6717a9ab2d5b657e0c6f1b9aafd
7
+ data.tar.gz: b9513ddd9ebcaa366a0efa24c2791933be197f5ae1a772612f4d1428b0160dbb8713bc0b51c8a8176756f297334c02265ab2e282f6c30e5414acc6e3edf035d7
@@ -1,5 +1,5 @@
1
1
  module Gametime
2
2
  module Helper
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -8,6 +8,11 @@ module Gametime
8
8
  end
9
9
 
10
10
  class VerifyLocalization
11
+ EXCEPTIONS = [
12
+ "FAQ",
13
+ "LocalNotifications"
14
+ ]
15
+
11
16
  def verify
12
17
  puts "verifying and removing unused localization strings\n\n"
13
18
  find_invalid_strings_and_remove
@@ -60,7 +65,15 @@ module Gametime
60
65
  file_path = './Resources/Base.lproj/Localizable.strings'
61
66
 
62
67
  File.open(file_path).each do |line|
63
- if line.start_with?('"')
68
+ exception_found = false
69
+
70
+ EXCEPTIONS.each do |exception|
71
+ if line.match(/#{exception}/i)
72
+ exception_found = true
73
+ end
74
+ end
75
+
76
+ if line.start_with?('"') && !exception_found
64
77
  localizable_string_name = line.match(/^"\S*/)
65
78
  search_results = `grep "#{localizable_string_name}" -R Classes/ | grep -v "Localizable.strings"`
66
79
 
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.0
4
+ version: 0.1.1
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-11-12 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler