fastlane-plugin-wpmreleasetoolkit 12.3.2 → 12.3.3
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: 041f45f2654eb686e2730d5e33adf6023c10649a12d0a31cdd93795e96660a95
|
4
|
+
data.tar.gz: 9c95db0f646fb9879c908a9234bbb764f334195ad84a3ba274baf53ce967544d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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=#{
|
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(
|
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)
|
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.
|
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-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|