fastlane-plugin-google_sheet_localize 0.3.13 → 0.4.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15c037771e905ef04ad956696cde554c6fde266c3d43c4018e798b4cd2633749
|
|
4
|
+
data.tar.gz: 1492ff3d8dc8564f847fcd512a5494a28be79d4bb8f255562a3445be77f0e77a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5807b14f1949f33f7137414086a49e0722b02e381baf0718581b4a0147c3514a7c8d6c89d3086565bc71d1810fd182d722d7d0f389f15a5eeeb9270b14e08c5
|
|
7
|
+
data.tar.gz: c47ed3818bdfe98c4add9aa6c6c4ee99e09f003b4ad81651941e06ffc6fd15a9ec84e1f9aaf362e8eaa522ec7690bf795a58b406b086e8c7e7b3803faabea3fa
|
|
@@ -302,11 +302,7 @@ module Fastlane
|
|
|
302
302
|
|
|
303
303
|
if !text.include?("one|")
|
|
304
304
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
matches.each { |match|
|
|
308
|
-
text = text.gsub(match, "%#{match[1]}$#{match[2].gsub("s","@")}")
|
|
309
|
-
}
|
|
305
|
+
text = text.gsub("$s","$@").gsub("%s","%@")
|
|
310
306
|
|
|
311
307
|
line = "\"#{identifier}\" = \"#{text}\";"
|
|
312
308
|
if !comment.to_s.empty?
|
|
@@ -519,10 +515,10 @@ module Fastlane
|
|
|
519
515
|
result = Array.new
|
|
520
516
|
filtered = self.mapInvalidPlaceholder(text)
|
|
521
517
|
|
|
522
|
-
stringIndexes = self.scan_str(filtered, /%[0-9]
|
|
523
|
-
intIndexes = self.scan_str(filtered, /%[0-9]
|
|
524
|
-
floatIndexes = self.scan_str(filtered, /%[0-9]?
|
|
525
|
-
doubleIndexes = self.scan_str(filtered, /%[0-9]?ld/)
|
|
518
|
+
stringIndexes = self.scan_str(filtered, /%([0-9]+)?\$?[s@]/)
|
|
519
|
+
intIndexes = self.scan_str(filtered, /%([0-9]+)?\$?d/)
|
|
520
|
+
floatIndexes = self.scan_str(filtered, /%([0-9]+)?\$?([0-9]+)?.?([0-9]+)?f/)
|
|
521
|
+
doubleIndexes = self.scan_str(filtered, /%([0-9]+)?\$?([0-9]+)?.?([0-9]+)?ld/)
|
|
526
522
|
|
|
527
523
|
if stringIndexes.count > 0
|
|
528
524
|
result = result + stringIndexes.map { |e| { "index": e[0], "offset": e[1], "type": "String" }}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-google_sheet_localize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mario Hahn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google_drive
|