fastlane-plugin-wpmreleasetoolkit 12.3.2 → 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: 5d1ae017f2f4ff6698ebb16ece9e728b7d374753e7e83ba9b4a895ad7fb3672f
4
- data.tar.gz: 8b7520329b13a56256f7201cbffc1223650d27bbf08647445ede487e7041b956
3
+ metadata.gz: 041f45f2654eb686e2730d5e33adf6023c10649a12d0a31cdd93795e96660a95
4
+ data.tar.gz: 9c95db0f646fb9879c908a9234bbb764f334195ad84a3ba274baf53ce967544d
5
5
  SHA512:
6
- metadata.gz: ce09a3110689bc2808c7bc9df9f523b098d6aa8f424a5fd9702b2cff7e35d07127fba7794c3ee41c27813ac416da737795958c0545b7e2639baab25bf29c030d
7
- data.tar.gz: 3db61d5ac271629ee125f96b1ff426e346906d2074330ba6d27fda2048438fb1aa2984085867e849e95a8ec69bff5a83e8c37c1df66b0604a32029894ef6441e
6
+ metadata.gz: 3ed5eb05f72b84b22e60c85acbb7787623ffc3d76efa077d1197934e01191afca394d2ec5ae92974e603dd2955f22ae2a36866a2ca751ae0e300f01bb01453b2
7
+ data.tar.gz: aa314297334366742f676bdd2d0cc96ff609e975bb0a75ab4fc5ce62b676de89dd6065fc0e6e9383bdb519f381255b261f1f0555539568148f03f842c42cc660
@@ -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.2'
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.2
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-14 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