fastlane-plugin-google_sheet_localize 0.1.93 → 0.1.94

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
  SHA256:
3
- metadata.gz: e2ad00bedfe9238091de213b45a6d0768fe73726617706eab01431158d8c17fb
4
- data.tar.gz: 6992b264d322fcf3a109d58874a79c445beb8764555cb5ba68e2caf6935dfe31
3
+ metadata.gz: 57acbef4e8273cd7c6047404c83551df9a1a5c12bb855e7dd498e19ca925b46e
4
+ data.tar.gz: 85cbe306ab06afe1a0caed1feff42eaa987a78e6f16907097b6aa0f0440de9f2
5
5
  SHA512:
6
- metadata.gz: e57723968d2eb62bf0a3d640d35d812ed85c8688dc178e5dc05469473c4651809aabfc5a756e38257ff4c82eb3d27589ab35a959f0f620010608f4f3b3219dcc
7
- data.tar.gz: a5beedb586901a8406f5c8f9e46da209c4cfc866dbf23f86adbe3fc386998154e375673057596a3256e12d539599cbe35a3929335da4ee295aba415f05456e99
6
+ metadata.gz: 7ec5baa353980a2e5ddcf1b1a78cc6205c6b9e3773994366a921648cc9008567ddd8c0c053b167e41e20e961b0afd43cdd7515bdd972a3be44c54c6a1b94b988
7
+ data.tar.gz: f728d0255c78a6b4f0e38d3babc7c8df2295e0c2c3e9da37cac32388f80db4b7f00049202232c10ce94b48122d4988f178111d2dbe9fca73e8e8dafdaedf51a1
@@ -209,8 +209,7 @@ module Fastlane
209
209
  f.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
210
210
  f.write("<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n")
211
211
  f.write("<plist version=\"1.0\">\n")
212
-
213
- line = ""
212
+ f.write("<dict>\n")
214
213
 
215
214
  filteredItems.each_with_index { |item, index|
216
215
 
@@ -229,34 +228,29 @@ module Fastlane
229
228
 
230
229
  text = text.gsub("\n", "|")
231
230
 
232
- line = line + "\t\t<key>#{identifier}</key>\n"
233
- line = line + "\t\t<dict>\n"
234
- line = line + "\t\t\t<key>NSStringLocalizedFormatKey</key>\n"
235
- line = line + "\t\t\t<string>%#@#{identifier}@</string>\n"
236
- line = line + "\t\t\t<key>#{identifier}</key>\n"
237
- line = line + "\t\t\t<dict>\n"
238
- line = line + "\t\t\t\t<key>NSStringFormatSpecTypeKey</key>\n"
239
- line = line + "\t\t\t\t<string>NSStringPluralRuleType</string>\n"
240
- line = line + "\t\t\t\t<key>NSStringFormatValueTypeKey</key>\n"
241
- line = line + "\t\t\t\t<string>d</string>\n"
231
+ f.write("\t\t<key>#{identifier}</key>\n")
232
+ f.write("\t\t<dict>\n")
233
+ f.write("\t\t\t<key>NSStringLocalizedFormatKey</key>\n")
234
+ f.write("\t\t\t<string>%#@#{identifier}@</string>\n")
235
+ f.write("\t\t\t<key>#{identifier}</key>\n")
236
+ f.write("\t\t\t<dict>\n")
237
+ f.write("\t\t\t\t<key>NSStringFormatSpecTypeKey</key>\n")
238
+ f.write("\t\t\t\t<string>NSStringPluralRuleType</string>\n")
239
+ f.write("\t\t\t\t<key>NSStringFormatValueTypeKey</key>\n")
240
+ f.write("\t\t\t\t<string>d</string>\n")
242
241
 
243
242
  text.split("|").each_with_index { |word, wordIndex|
244
243
  if wordIndex % 2 == 0
245
- line = line + "\t\t\t\t<key>#{word}</key>\n"
244
+ f.write("\t\t\t\t<key>#{word}</key>\n")
246
245
  else
247
- line = line + "\t\t\t\t<string>#{word}</string>\n"
246
+ f.write("\t\t\t\t<string>#{word}</string>\n")
248
247
  end
249
248
  }
250
- line = line + "\t\t\t</dict>\n"
251
- line = line + "\t\t</dict>\n"
249
+ f.write("\t\t\t</dict>\n")
250
+ f.write("\t\t</dict>\n")
252
251
  end
253
252
  }
254
-
255
- if line.length > 0
256
- f.write("<dict>\n")
257
- f.write(line)
258
- f.write("</dict>\n")
259
- end
253
+ f.write("</dict>\n")
260
254
  f.write("</plist>\n")
261
255
  end
262
256
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.1.93"
3
+ VERSION = "0.1.94"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-google_sheet_localize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.93
4
+ version: 0.1.94
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn