fastlane-plugin-translation 1.0.2 → 1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13810020d9c0b6c99f1dbe3c3201cf168af8898d
|
4
|
+
data.tar.gz: f05dd7f3ccdd8459124c7ff7e678c0d61dfff696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 825e1b78c24dfa05ec11e928f3c54aca9fcb85e1bbe94757c1fdf71a52e8973ad28670e4c1339d789f7a7fd8f92c15058d476b85b3b80c9b42fa9ad20fb19fa5
|
7
|
+
data.tar.gz: cf283f70239b87f99a89d60ba4598b43300dc343ecee895137b75525d365a7b1617a99ca437af44febd4412f6feda3cf93fa83ade50426e02deda433776eedf3
|
@@ -69,7 +69,9 @@ module Fastlane
|
|
69
69
|
UI.message("Writing swift struct #{swift_path}")
|
70
70
|
FileUtils.mkdir_p(File.dirname(swift_path))
|
71
71
|
file = open(swift_path, 'w')
|
72
|
-
file.write("import Foundation\
|
72
|
+
file.write("import Foundation\n")
|
73
|
+
file.write("// swiftlint:disable identifier_name line_length file_length\n")
|
74
|
+
file.write("struct Translations {\n")
|
73
75
|
|
74
76
|
CSV.foreach(cvs_path) do |row|
|
75
77
|
if row[key] && row[key].length > 0 && row.compact.length > 1
|
@@ -83,11 +85,11 @@ module Fastlane
|
|
83
85
|
parameters.each { |e| file.write(".replacingOccurrences(of: \"#{e}\", with: #{e.sub('%', 'p')})") }
|
84
86
|
file.write(" }\n")
|
85
87
|
else
|
86
|
-
file.write("\tstatic let #{key_row} = NSLocalizedString(\"#{key_row}\", comment: \"\")
|
88
|
+
file.write("\tstatic let #{key_row} = NSLocalizedString(\"#{key_row}\", comment: \"\")\n")
|
87
89
|
end
|
88
90
|
end
|
89
91
|
end
|
90
|
-
file.write("}")
|
92
|
+
file.write("}\n")
|
91
93
|
file.close
|
92
94
|
end
|
93
95
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -142,13 +142,13 @@ executables: []
|
|
142
142
|
extensions: []
|
143
143
|
extra_rdoc_files: []
|
144
144
|
files:
|
145
|
+
- LICENSE
|
146
|
+
- README.md
|
147
|
+
- lib/fastlane/plugin/translation.rb
|
145
148
|
- lib/fastlane/plugin/translation/actions/create_translation_action.rb
|
146
149
|
- lib/fastlane/plugin/translation/actions/translation_action.rb
|
147
150
|
- lib/fastlane/plugin/translation/helper/translation_helper.rb
|
148
151
|
- lib/fastlane/plugin/translation/version.rb
|
149
|
-
- lib/fastlane/plugin/translation.rb
|
150
|
-
- README.md
|
151
|
-
- LICENSE
|
152
152
|
homepage: https://github.com/trifork/fastlane-plugin-translation
|
153
153
|
licenses:
|
154
154
|
- MIT
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
172
|
+
rubygems_version: 2.6.12
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Handling translations from Google sheet.
|