asciidoctor-pdf 2.3.17 → 2.3.18

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: 493c0b612bcd07229becd5c1c53decdeaec3aeff63851556901c942257b091a9
4
- data.tar.gz: 609bd614ebf487afc8b078b63a6b7e2e34d9f4377fecd0bffc718b673d63c6e1
3
+ metadata.gz: 87e6612af4d8eeff07ca0444050488e1aef241133e695c9bd817be2aa6d59352
4
+ data.tar.gz: 988bcc07fd515953fb2a8370288ed51224ed3e69f3220c5c7683d87e30d9f436
5
5
  SHA512:
6
- metadata.gz: 6bb6846fa124db582fe86992eace65b4d1263403971198f8d78cf8f2f33556dfdb3104ccff0f15dd27c316d94d65c3b3dd554f7b6e9527cfaf5ccffca8f642b5
7
- data.tar.gz: 4fba487e7098185b900a2a6dbcafdf7e29ab345945562f832841ef4d06acfca76dc3d11f1c8b0fd80cc636f8102ae2239656049dee0ddd7861adff020ae1edde
6
+ metadata.gz: fa91581c98fd7d96dcfe91c18b16811bee9443640d94e645ce3c6a02be5b3ac5860d3510f5709eb0d8a86a16eea255c06355f3a54258ee20a8d3020741b579e4
7
+ data.tar.gz: fd46bb12d35dd00126955c3654e10471a3063bba3b9ab9ccec31e90e8d6310e62c36709d90ba627b1b7e55b875bafb4917060300cae29a0fdc2c7f410a89074f
data/CHANGELOG.adoc CHANGED
@@ -5,6 +5,20 @@
5
5
  This document provides a high-level view of the changes to the {project-name} by release.
6
6
  For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
7
7
 
8
+ == 2.3.18 (2024-07-27) - @mojavelinux
9
+
10
+ Bug Fixes::
11
+
12
+ * position foreground image correctly when page layout changes (#2528)
13
+
14
+ Compliance::
15
+
16
+ * release lock on version of rexml (pulled in by asciidoctor-diagram and prawn-svg) now that incompatibility is resolved
17
+
18
+ === Details
19
+
20
+ {url-repo}/releases/tag/v2.3.18[git tag] | {url-repo}/compare/v2.3.17\...v2.3.18[full diff]
21
+
8
22
  == 2.3.17 (2024-06-01) - @mojavelinux
9
23
 
10
24
  Improvements::
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor PDF: A native PDF converter for AsciiDoc
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.3.17, 2024-06-01
3
+ v2.3.18, 2024-07-27
4
4
  // Settings:
5
5
  :experimental:
6
6
  :idprefix:
@@ -42,7 +42,6 @@ Gem::Specification.new do |s|
42
42
  s.add_runtime_dependency 'prawn-svg', '~> 0.34.0'
43
43
  s.add_runtime_dependency 'prawn-icon', '~> 3.0.0'
44
44
  s.add_runtime_dependency 'concurrent-ruby', '~> 1.1'
45
- s.add_runtime_dependency 'rexml', '3.2.6' # lock rexml to 3.2.6 since 3.2.7 and up breaks Ruby
46
45
  s.add_runtime_dependency 'treetop', '~> 1.6.0'
47
46
 
48
47
  s.add_development_dependency 'rake', '~> 13.0.0'
@@ -4397,14 +4397,17 @@ module Asciidoctor
4397
4397
  if (first_page = (has_front_cover ? (pages.slice 1, pages.size) : pages).find {|it| !it.imported_page? }) &&
4398
4398
  (first_page_num = (pages.index first_page) + 1) &&
4399
4399
  (fg_image = resolve_background_image doc, @theme, 'page-foreground-image') && fg_image[0]
4400
- go_to_page first_page_num
4401
- create_stamp 'foreground-image' do
4402
- canvas { image fg_image[0], ({ position: :center, vposition: :center }.merge fg_image[1]) }
4403
- end
4404
- stamp 'foreground-image'
4405
- (first_page_num.next..page_count).each do |num|
4400
+ stamps = ::Set.new
4401
+ (first_page_num..page_count).each do |num|
4406
4402
  go_to_page num
4407
- stamp 'foreground-image' unless page.imported_page?
4403
+ next if page.imported_page?
4404
+ unless stamps.include? (stamp_name = %(foreground-image-#{page.layout}))
4405
+ create_stamp stamp_name do
4406
+ canvas { image fg_image[0], ({ position: :center, vposition: :center }.merge fg_image[1]) }
4407
+ end
4408
+ stamps << stamp_name
4409
+ end
4410
+ stamp stamp_name
4408
4411
  end
4409
4412
  end
4410
4413
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module PDF
5
- VERSION = '2.3.17'
5
+ VERSION = '2.3.18'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.17
4
+ version: 2.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-01 00:00:00.000000000 Z
12
+ date: 2024-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: asciidoctor
@@ -137,20 +137,6 @@ dependencies:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: '1.1'
140
- - !ruby/object:Gem::Dependency
141
- name: rexml
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - '='
145
- - !ruby/object:Gem::Version
146
- version: 3.2.6
147
- type: :runtime
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - '='
152
- - !ruby/object:Gem::Version
153
- version: 3.2.6
154
140
  - !ruby/object:Gem::Dependency
155
141
  name: treetop
156
142
  requirement: !ruby/object:Gem::Requirement
@@ -364,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
364
350
  - !ruby/object:Gem::Version
365
351
  version: '0'
366
352
  requirements: []
367
- rubygems_version: 3.5.9
353
+ rubygems_version: 3.5.11
368
354
  signing_key:
369
355
  specification_version: 4
370
356
  summary: Converts AsciiDoc documents to PDF using Asciidoctor and Prawn