asciidoctor-pdf 2.3.16 → 2.3.17

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: ef03e65243bd010af78e16303283d08498c81752a6509c02022250179383b2cb
4
- data.tar.gz: 200b495ef4176f018a4869b6663ec767e906ad1559b2788e5e9da09d0f8e7b89
3
+ metadata.gz: 493c0b612bcd07229becd5c1c53decdeaec3aeff63851556901c942257b091a9
4
+ data.tar.gz: 609bd614ebf487afc8b078b63a6b7e2e34d9f4377fecd0bffc718b673d63c6e1
5
5
  SHA512:
6
- metadata.gz: acee2946bb7c7cb633446820ddc3462874fe8b1ac52d38cb938cdd949155a28b18f95e480c507fe99ff14f14737394a8286238c92fd7f7dbf0d42f5d5f751f19
7
- data.tar.gz: f5f73ab782a0bd6f69653b22eed054b0442e1f42c11ce1c2e0f0921290639b545abc4beb7179e00333e6a298c9bb69e91cc87c97342b92beb8ae39d714d71523
6
+ metadata.gz: 6bb6846fa124db582fe86992eace65b4d1263403971198f8d78cf8f2f33556dfdb3104ccff0f15dd27c316d94d65c3b3dd554f7b6e9527cfaf5ccffca8f642b5
7
+ data.tar.gz: 4fba487e7098185b900a2a6dbcafdf7e29ab345945562f832841ef4d06acfca76dc3d11f1c8b0fd80cc636f8102ae2239656049dee0ddd7861adff020ae1edde
data/CHANGELOG.adoc CHANGED
@@ -5,6 +5,18 @@
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.17 (2024-06-01) - @mojavelinux
9
+
10
+ Improvements::
11
+
12
+ * always use /Producer field in document info to credit Asciidoctor PDF and Prawn, even when author is set (#2510)
13
+ * map `producer` attribute to /Producer field in document info to override or default value (#2510)
14
+ * map `publisher` attribute to /Creator field instead of /Producer field in document info; use author as fallback (#2510)
15
+
16
+ === Details
17
+
18
+ {url-repo}/releases/tag/v2.3.17[git tag] | {url-repo}/compare/v2.3.16\...v2.3.17[full diff]
19
+
8
20
  == 2.3.16 (2024-05-31) - @mojavelinux
9
21
 
10
22
  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.16, 2024-05-31
3
+ v2.3.17, 2024-06-01
4
4
  // Settings:
5
5
  :experimental:
6
6
  :idprefix:
@@ -525,13 +525,12 @@ module Asciidoctor
525
525
  end
526
526
  info[:Subject] = (sanitize doc.attr 'subject').as_pdf if doc.attr? 'subject'
527
527
  info[:Keywords] = (sanitize doc.attr 'keywords').as_pdf if doc.attr? 'keywords'
528
- info[:Producer] = (sanitize doc.attr 'publisher').as_pdf if doc.attr? 'publisher'
528
+ info[:Creator] = (doc.attr? 'publisher') ? (sanitize doc.attr 'publisher').as_pdf : (info[:Author] || '')
529
+ info[:Producer] = (sanitize doc.attr 'producer').as_pdf if doc.attr? 'producer'
529
530
  if doc.attr? 'reproducible'
530
- info[:Creator] = 'Asciidoctor PDF, based on Prawn'.as_pdf
531
- info[:Producer] ||= (info[:Author] || info[:Creator])
531
+ info[:Producer] ||= 'Asciidoctor PDF, based on Prawn'.as_pdf
532
532
  else
533
- info[:Creator] = %(Asciidoctor PDF #{::Asciidoctor::PDF::VERSION}, based on Prawn #{::Prawn::VERSION}).as_pdf
534
- info[:Producer] ||= (info[:Author] || info[:Creator])
533
+ info[:Producer] ||= %(Asciidoctor PDF #{::Asciidoctor::PDF::VERSION}, based on Prawn #{::Prawn::VERSION}).as_pdf
535
534
  # NOTE: since we don't track the creation date of the input file, we map the ModDate header to the last modified
536
535
  # date of the input document and the CreationDate header to the date the PDF was produced by the converter.
537
536
  info[:ModDate] = (::Time.parse doc.attr 'docdatetime') rescue (now ||= ::Time.now)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module PDF
5
- VERSION = '2.3.16'
5
+ VERSION = '2.3.17'
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.16
4
+ version: 2.3.17
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-05-31 00:00:00.000000000 Z
12
+ date: 2024-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: asciidoctor