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: fe6a0ccccfa972725f15898f4d1894e9ce81a8ee60b27c436d1930cd68b58a59
4
- data.tar.gz: 7c25d05bd642b368cfe8eac93bb7e26db77dd8380f4665a2521b9b7c0191d7d5
3
+ metadata.gz: 73836a5a9899d19389852c8bfd44db12633d1c6c3836f0a9d603c8484237a8f5
4
+ data.tar.gz: d8c802acdf7571eb6083a51aa1a1004ca10c5ff8aa8f0b323c5f20de4c008c45
5
5
  SHA512:
6
- metadata.gz: 7dd36004e4d5f45cb747bd5d005937deb36cf8a638aa556460e059dbbae823fac182bd1f6af849972c053ecef91e2e57c6bbf64d771014f973b07a0502f6897d
7
- data.tar.gz: 9d719a9f9ca3281d6a5d6045040782df58552966f91a3042edaaaf0e98e4fcd9c3a7a2758fdb2af550d5bf3dd8ce0a4c3af92c6b367ca054b1d11971d8cc6275
6
+ metadata.gz: 4b42b103ae3de9219067cb691755fa66576e8f82561fd9a5b13a809d54271fe6389388bdb0fae5a3b9535bc2227c70e98139adbc9356972edc3c55d2432435db
7
+ data.tar.gz: 4ae0ce114dc2419ea4811c148740ec8629849ecf9e431aca6fa89e317f68cd00aba50cc8555a7a003b9332b9a84b6e77fe6271b452e97af9fc3b2ba271fbc359
@@ -36,7 +36,7 @@ module Fastlane
36
36
  [
37
37
  FastlaneCore::ConfigItem.new(
38
38
  key: :buildkite_token,
39
- env_name: 'BUILDKITE_TOKEN',
39
+ env_names: %w[BUILDKITE_TOKEN BUILDKITE_API_TOKEN],
40
40
  description: 'Buildkite Personal Access Token',
41
41
  type: String,
42
42
  sensitive: true
@@ -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.to_s.length - 4 # Don't count JSON delimiters.
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.")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Wpmreleasetoolkit
3
- VERSION = '5.0.0'
3
+ VERSION = '5.1.0'
4
4
  end
5
5
  end
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.0.0
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-18 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport