fastlane-plugin-google_sheet_localize 0.1.91 → 0.1.92

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
  SHA256:
3
- metadata.gz: 67574e73bac090d01480c43340ac22a06741e8e8b199590616fea232eed4dea3
4
- data.tar.gz: 018cd63b0fe0ae8fb2dc6a7b9b43e6d8e27e3e6d5970949e14cc25aae9d27b88
3
+ metadata.gz: 7c5d55a28b123eed47eaf0607c597661d0de0c8f0c11453a58bce1f443a23c35
4
+ data.tar.gz: d791549491b632842b33c9d3c06954fd3a20e44a9b56d0595d9deef457c9cb87
5
5
  SHA512:
6
- metadata.gz: 186583bc537756aee0ad50bd2db70b016c860f6bf507a1e98103ed1af610a3fbdb1438cf547b20d8a184600f20f7b415233e82fc497acf29d74d01d7f7c4bcf1
7
- data.tar.gz: 7eb2eb964a099f7882f06f6d5a9af90a5f37f81cadf5788f1084b4292ca10bbb974f57f27a42739b30fc27f5910925437ce12dfe9dab0b1595f3a095c6176bb5
6
+ metadata.gz: 44c1ab6536b3a8bd94652f273c5530f8be5f2751a09182c4ad1b2613349ed32fbfbd10e5bdc7e6c452848c2c77765789d0e90a7c3c243e398ffb8a1cb3618a65
7
+ data.tar.gz: 99a6ad65149db07568570489c15976a852068355b174bc62a35811e1b72a36284ea87d082c5bdea281b36a8ad76c11835ab75ae2c0e3b1031c013a90f37d9664
@@ -210,14 +210,14 @@ module Fastlane
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("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
212
212
  f.write("<plist version=\"1.0\">\n")
213
- f.write("<dict>\n")
213
+
214
+ line = ""
214
215
 
215
216
  filteredItems.each_with_index { |item, index|
216
217
 
217
218
  text = self.mapInvalidPlaceholder(item['text'])
218
219
  identifier = item['identifierIos']
219
220
 
220
- line = ""
221
221
  if !identifier.include?('//') && text.include?("one|")
222
222
  if text == "" || text == "TBD"
223
223
  default_language_object = languages.select { |languageItem| languageItem['language'] == defaultLanguage }.first["items"]
@@ -230,29 +230,34 @@ module Fastlane
230
230
 
231
231
  text = text.gsub("\n", "|")
232
232
 
233
- f.write("\t\t<key>#{identifier}</key>\n")
234
- f.write("\t\t<dict>\n")
235
- f.write("\t\t\t<key>NSStringLocalizedFormatKey</key>\n")
236
- f.write("\t\t\t<string>%#@#{identifier}@</string>\n")
237
- f.write("\t\t\t<key>#{identifier}</key>\n")
238
- f.write("\t\t\t<dict>\n")
239
- f.write("\t\t\t\t<key>NSStringFormatSpecTypeKey</key>\n")
240
- f.write("\t\t\t\t<string>NSStringPluralRuleType</string>\n")
241
- f.write("\t\t\t\t<key>NSStringFormatValueTypeKey</key>\n")
242
- f.write("\t\t\t\t<string>d</string>\n")
233
+ line = line + "\t\t<key>#{identifier}</key>\n"
234
+ line = line + "\t\t<dict>\n"
235
+ line = line + "\t\t\t<key>NSStringLocalizedFormatKey</key>\n"
236
+ line = line + "\t\t\t<string>%#@#{identifier}@</string>\n"
237
+ line = line + "\t\t\t<key>#{identifier}</key>\n"
238
+ line = line + "\t\t\t<dict>\n"
239
+ line = line + "\t\t\t\t<key>NSStringFormatSpecTypeKey</key>\n"
240
+ line = line + "\t\t\t\t<string>NSStringPluralRuleType</string>\n"
241
+ line = line + "\t\t\t\t<key>NSStringFormatValueTypeKey</key>\n"
242
+ line = line + "\t\t\t\t<string>d</string>\n"
243
243
 
244
244
  text.split("|").each_with_index { |word, wordIndex|
245
245
  if wordIndex % 2 == 0
246
- f.write("\t\t\t\t<key>#{word}</key>\n")
246
+ line = line + "\t\t\t\t<key>#{word}</key>\n"
247
247
  else
248
- f.write("\t\t\t\t<string>#{word}</string>\n")
248
+ line = line + "\t\t\t\t<string>#{word}</string>\n"
249
249
  end
250
250
  }
251
- f.write("\t\t\t</dict>\n")
252
- f.write("\t\t</dict>\n")
251
+ line = line + "\t\t\t</dict>\n"
252
+ line = line + "\t\t</dict>\n"
253
253
  end
254
254
  }
255
- f.write("</dict>\n")
255
+
256
+ if line.length > 0
257
+ f.write("<dict>\n")
258
+ f.write(line)
259
+ f.write("</dict>\n")
260
+ end
256
261
  f.write("</plist>\n")
257
262
  end
258
263
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.1.91"
3
+ VERSION = "0.1.92"
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.91
4
+ version: 0.1.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn