asciidoctor-pdf 2.3.5 → 2.3.6
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 +4 -4
- data/CHANGELOG.adoc +10 -0
- data/README.adoc +1 -1
- data/lib/asciidoctor/pdf/converter.rb +2 -2
- data/lib/asciidoctor/pdf/ext/core/file.rb +6 -6
- data/lib/asciidoctor/pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffe3647066c0eb782783dc3c76aa5b179637088729e48cbf49659c6a755ee92b
|
|
4
|
+
data.tar.gz: 945e6675e7d2e4073bbb3779824f6e65d75d237da22416c39212f3e501175606
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69dfbad655ec87a98630d269654b007a9590b5107ce68e9c9b0c66fcead3d8735afa865d7bb8260af81c7f36cf9848a974655f950b0ae8538448adc994e84f2d
|
|
7
|
+
data.tar.gz: 469e1fe5e4d2d3f4e9dcf2b46f2fefb85fc45011710c751d52d4c09f86d4e212098e7a386af17ce6fe4ebe452efe613f57148373b667b1872e2a8a76d4eff53f
|
data/CHANGELOG.adoc
CHANGED
|
@@ -5,6 +5,16 @@
|
|
|
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.6 (2023-04-09) - @mojavelinux
|
|
9
|
+
|
|
10
|
+
Bug Fixes::
|
|
11
|
+
|
|
12
|
+
* rework `File.absolute_path?` patch so it returns correct response when running on JRuby
|
|
13
|
+
|
|
14
|
+
=== Details
|
|
15
|
+
|
|
16
|
+
{url-repo}/releases/tag/v2.3.6[git tag] | {url-repo}/compare/v2.3.5\...v2.3.6[full diff]
|
|
17
|
+
|
|
8
18
|
== 2.3.5 (2023-03-31) - @mojavelinux
|
|
9
19
|
|
|
10
20
|
Enhancements::
|
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.
|
|
3
|
+
v2.3.6, 2023-04-09
|
|
4
4
|
// Settings:
|
|
5
5
|
:experimental:
|
|
6
6
|
:idprefix:
|
|
@@ -3709,7 +3709,7 @@ module Asciidoctor
|
|
|
3709
3709
|
if logo_image_from_theme
|
|
3710
3710
|
relative_to_imagesdir = false
|
|
3711
3711
|
logo_image_path = apply_subs_discretely doc, $1, subs: [:attributes], imagesdir: @themesdir
|
|
3712
|
-
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless doc.is_uri? logo_image_path
|
|
3712
|
+
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless (::File.absolute_path? logo_image_path) || (doc.is_uri? logo_image_path)
|
|
3713
3713
|
else
|
|
3714
3714
|
relative_to_imagesdir = true
|
|
3715
3715
|
logo_image_path = $1
|
|
@@ -3719,7 +3719,7 @@ module Asciidoctor
|
|
|
3719
3719
|
relative_to_imagesdir = false
|
|
3720
3720
|
if logo_image_from_theme
|
|
3721
3721
|
logo_image_path = apply_subs_discretely doc, logo_image_path, subs: [:attributes], imagesdir: @themesdir
|
|
3722
|
-
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless doc.is_uri? logo_image_path
|
|
3722
|
+
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless (::File.absolute_path? logo_image_path) || (doc.is_uri? logo_image_path)
|
|
3723
3723
|
end
|
|
3724
3724
|
end
|
|
3725
3725
|
if (::Asciidoctor::Image.target_and_format logo_image_path)[1] == 'pdf'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
# NOTE:
|
|
5
|
-
def
|
|
6
|
-
(::Pathname.new path).absolute?
|
|
7
|
-
end
|
|
8
|
-
end
|
|
3
|
+
File.singleton_class.prepend (Module.new do
|
|
4
|
+
# NOTE: JRuby < 9.4 doesn't implement this method; JRuby 9.4 implements it incorrectly
|
|
5
|
+
def absolute_path? path
|
|
6
|
+
(::Pathname.new path).absolute? && !(%r/\A[[:alpha:]][[:alnum:]\-+]*:\/\/\S/.match? path)
|
|
7
|
+
end
|
|
8
|
+
end) if RUBY_ENGINE == 'jruby'
|
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.
|
|
4
|
+
version: 2.3.6
|
|
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: 2023-
|
|
12
|
+
date: 2023-04-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: asciidoctor
|