fastlane-plugin-wpmreleasetoolkit 5.0.0 → 5.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73836a5a9899d19389852c8bfd44db12633d1c6c3836f0a9d603c8484237a8f5
|
4
|
+
data.tar.gz: d8c802acdf7571eb6083a51aa1a1004ca10c5ff8aa8f0b323c5f20de4c008c45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b42b103ae3de9219067cb691755fa66576e8f82561fd9a5b13a809d54271fe6389388bdb0fae5a3b9535bc2227c70e98139adbc9356972edc3c55d2432435db
|
7
|
+
data.tar.gz: 4ae0ce114dc2419ea4811c148740ec8629849ecf9e431aca6fa89e317f68cd00aba50cc8555a7a003b9332b9a84b6e77fe6271b452e97af9fc3b2ba271fbc359
|
@@ -40,7 +40,7 @@ module Fastlane
|
|
40
40
|
target_files.each do |file|
|
41
41
|
if file[0].to_s == key
|
42
42
|
data = file[1]
|
43
|
-
msg = is_source ? source : d[1]
|
43
|
+
msg = is_source ? source : d[1].first || '' # In the JSON, each Hash value is an array, with zero or one entry
|
44
44
|
update_key(target_locale, key, file, data, msg)
|
45
45
|
end
|
46
46
|
end
|
@@ -58,7 +58,7 @@ module Fastlane
|
|
58
58
|
if file[0].to_s == key
|
59
59
|
puts "Alternate: #{key}"
|
60
60
|
data = file[1]
|
61
|
-
msg = is_source ? source : d[1]
|
61
|
+
msg = is_source ? source : d[1].first || '' # In the JSON, each Hash value is an array, with zero or one entry
|
62
62
|
update_key(target_locale, key, file, data, msg)
|
63
63
|
end
|
64
64
|
end
|
@@ -66,7 +66,7 @@ module Fastlane
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def update_key(target_locale, key, file, data, msg)
|
69
|
-
message_len = msg.
|
69
|
+
message_len = msg.length
|
70
70
|
if (data.key?(:max_size)) && (data[:max_size] != 0) && ((message_len) > data[:max_size])
|
71
71
|
if data.key?(:alternate_key)
|
72
72
|
UI.message("#{target_locale} translation for #{key} exceeds maximum length (#{message_len}). Switching to the alternate translation.")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-wpmreleasetoolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Automattic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|