fastlane-plugin-google_sheet_localize 0.1.81 → 0.1.82

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: ce447885950a99cc5a97b445cd4a5751f2b36e9ba97d901e14d3419533e29074
4
- data.tar.gz: 947bfa273295e90913dd7216f5c71d5244157717c832a9216ba8f9e8c5132b76
3
+ metadata.gz: 4dc6285a771c92ad1e0b712d68c5357859bed9fabc9dbc590c1da1c06dca2b86
4
+ data.tar.gz: 29c2089a93ea773cf3aad5296cf958d4899f5727976bb7a58cc9ea4b2fa1d5a3
5
5
  SHA512:
6
- metadata.gz: 210739b976998cb6113fcf87c5eac08488e1815de6e3dc583a64847b572cf9359165262ddd5b337b985eb71cb42776bd2a25640b9671409769e5f34da20419fd
7
- data.tar.gz: 3ea9df3300a4069b2a18e820bd86c4a7ee208d6fa847c221fc6fe7f16efb36fe7c184126e1fa1481618c01f8f3ecab295c686077c72e88e60d82b71bafcfe6ee
6
+ metadata.gz: 926e29ec71ce033efe1ec6e4646ad9b7480bc4317cf0214c8bf34bd037002d1aeeedcfafb38798c76be26b330962a28e0056ad3905eecd6e41ddc264b90108f3
7
+ data.tar.gz: a04a7a94340908e804790eb103b87500ea60bc02c29f67214110318999da4443e6576f2118276c2e223c7bd84236511901febc6bcaf0d9fa56274a2057671d59
@@ -240,13 +240,15 @@ module Fastlane
240
240
 
241
241
  text = text.gsub(/\\?'/, "\\\\'")
242
242
 
243
- if text.include? "|"
243
+ if text.scan(/|/).length >= 2 && text.include?("\n")
244
+
245
+ text = text.gsub("\n", "|")
244
246
 
245
247
  line = line + "\t<plurals name=\"#{identifier}\">\n"
246
248
 
247
249
  plural = ""
248
250
 
249
- text.dup.split("|").each_with_index { |word, wordIndex|
251
+ text.split("|").each_with_index { |word, wordIndex|
250
252
  if wordIndex % 2 == 0
251
253
  plural = "\t\t<item quantity=\"#{word}\">"
252
254
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.1.81"
3
+ VERSION = "0.1.82"
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.81
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn