localize_string_filter 0.1.1 → 0.1.2
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 +5 -5
- data/lib/localize_string_filter.rb +7 -7
- data/lib/localize_string_filter/version.rb +1 -1
- data/localize_string_filter.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ce55be1c0090041978f21c4755d7b5224be71ed614daa80d154478cfd553c5f3
|
4
|
+
data.tar.gz: cd81d8809c70e9ef470eb43cd22b46d68e4446a2035a24a5dfff64729407f113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58970a7d3166ec1724777a8809c382feb8eeb11eac8dd0c805fc616194c4bbcecdb104ac16e44697ba0f8bad9ee4674396fda77a332b505fe23744bacf397900
|
7
|
+
data.tar.gz: d35fd0de53a4d5a8943bc3fe6b9702eb64646a327ed5deed738666bbc2cb587f77ef5ed63a0fad52fda5fe8c3a1759294312863a461fa2eebbafa91edfc785c0
|
@@ -9,9 +9,9 @@ def traverse_swift_files(file_path, swift_files)
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
else
|
12
|
-
if file_path.end_with? ".swift"
|
13
|
-
|
14
|
-
|
12
|
+
if (file_path.end_with? ".storyboard") || (file_path.end_with? ".swift") || (file_path.end_with? ".m") || (file_path.end_with? ".h")
|
13
|
+
swift_files << file_path
|
14
|
+
# puts "File:#{File.basename(file_path)}, Size:#{File.size(file_path)}"
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -19,8 +19,8 @@ end
|
|
19
19
|
def collect_keys(strings_path)
|
20
20
|
strings_keys = Array.new
|
21
21
|
File.open(strings_path, "r") do |file|
|
22
|
-
|
23
|
-
|
22
|
+
file.each_line do |line|
|
23
|
+
if line.start_with? "\""
|
24
24
|
temp_array = line.split('=')
|
25
25
|
quotation_indexes = Array.new
|
26
26
|
temp_array[0].split("").each_with_index do |character, index|
|
@@ -30,8 +30,8 @@ def collect_keys(strings_path)
|
|
30
30
|
end
|
31
31
|
str = temp_array[0][quotation_indexes[0], quotation_indexes[1] + 1]
|
32
32
|
strings_keys << str
|
33
|
-
|
34
|
-
|
33
|
+
end
|
34
|
+
end
|
35
35
|
end
|
36
36
|
return strings_keys
|
37
37
|
end
|
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = "localize_string_filter"
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
spec.required_ruby_version = '>= 2.0.0'
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.
|
22
|
-
spec.add_development_dependency "rake", "~>
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
22
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localize_string_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HongliYu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.16'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12.0'
|
41
41
|
description: Remove keys which never referenced by project in Localizable.strings.
|
42
42
|
email:
|
43
43
|
- yhlssdone@gmail.com
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.7.6
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Remove keys which never referenced by project in Localizable.strings.
|