fastlane-plugin-wpmreleasetoolkit 12.3.1 → 12.3.3

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: 29b49bd4df79d18988c3e1b1b87fa0abaea61430ca6a8a0167d298d39812e52c
4
- data.tar.gz: b926ccff2acbb0bfd97e334ea3734247320910253dc55de9711fa0bfc6c1d80c
3
+ metadata.gz: 041f45f2654eb686e2730d5e33adf6023c10649a12d0a31cdd93795e96660a95
4
+ data.tar.gz: 9c95db0f646fb9879c908a9234bbb764f334195ad84a3ba274baf53ce967544d
5
5
  SHA512:
6
- metadata.gz: 4ed448099a4ed93e613cd076178c406c2f7f20dcb85d5c8e6a4df76e9aa5a12527e88a31ea4c5293e7db21d02f950c27cab72925ca70c7578854c76e2b6127ae
7
- data.tar.gz: 293e5690ff3f8cd488d8128b45f2d96f1ebda0ac02a67b9fceee2779c098ee75913e6b96287498183d311f0a585d93b7447cf9f356e11db7783edd51aedc9ee4
6
+ metadata.gz: 3ed5eb05f72b84b22e60c85acbb7787623ffc3d76efa077d1197934e01191afca394d2ec5ae92974e603dd2955f22ae2a36866a2ca751ae0e300f01bb01453b2
7
+ data.tar.gz: aa314297334366742f676bdd2d0cc96ff609e975bb0a75ab4fc5ce62b676de89dd6065fc0e6e9383bdb519f381255b261f1f0555539568148f03f842c42cc660
@@ -10,11 +10,10 @@ module Fastlane
10
10
  module Actions
11
11
  class ConfigureApplyAction < Action
12
12
  def self.run(params = {})
13
- # Preflight
14
- UI.user_error!('Decryption key could not be found') if Fastlane::Helper::ConfigureHelper.encryption_key.nil?
15
-
16
13
  # Checkout the right commit hash etc. before applying the configuration
17
14
  prepare_repository do
15
+ UI.user_error!('Decryption key could not be found') if Fastlane::Helper::ConfigureHelper.encryption_key.nil?
16
+
18
17
  # Copy/decrypt the files
19
18
  files_to_copy.each do |file_reference|
20
19
  apply_file(file_reference, params[:force])
@@ -63,7 +63,8 @@ module Fastlane
63
63
  # Parse the first font in each `font-family` attribute found in all found CSS files.
64
64
  # Only the first in each `font-family` font list matters, as others are fallbacks we don't want to use anyway.
65
65
  font_families = all_stylesheets.flat_map do |s|
66
- File.readlines(s).flat_map do |line|
66
+ stylesheet_path = resolve_path(s)
67
+ File.readlines(stylesheet_path).flat_map do |line|
67
68
  attr = line.match(/font-family: (.*);/)&.captures&.first
68
69
  attr.split(',').first.strip.gsub(/'(.*)'/, '\1').gsub(/"(.*)"/, '\1') unless attr.nil?
69
70
  end
@@ -282,9 +283,9 @@ module Fastlane
282
283
  begin
283
284
  temp_text_file = Tempfile.new
284
285
 
285
- Action.sh('drawText', "html=#{text}", "maxWidth=#{width}", "maxHeight=#{height}", "output=#{tempTextFile.path}", "fontSize=#{font_size}", "stylesheet=#{stylesheet_path}", "alignment=#{position}")
286
+ Action.sh('drawText', "html=#{text}", "maxWidth=#{width}", "maxHeight=#{height}", "output=#{temp_text_file.path}", "fontSize=#{font_size}", "stylesheet=#{stylesheet_path}", "alignment=#{position}")
286
287
 
287
- text_content = open_image(tempTextFile.path).trim
288
+ text_content = open_image(temp_text_file.path).trim
288
289
  text_frame = create_image(width, height)
289
290
  text_frame = case position
290
291
  when 'left' then composite_image_left(text_frame, text_content, 0, 0)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '12.3.1'
5
+ VERSION = '12.3.3'
6
6
  end
7
7
  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: 12.3.1
4
+ version: 12.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport