asciidoctor-reducer 1.0.0.alpha.10 → 1.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +17 -7
- data/README.adoc +1 -1
- data/lib/asciidoctor/reducer/include_mapper/extension.rb +3 -2
- data/lib/asciidoctor/reducer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba34a52b145d4aec9db42e4149f7bbdf29897657f99d6b446d05510e0d193835
|
4
|
+
data.tar.gz: 71c60fcd5c4a1b1dc403885c3b47816b23917c755a9c4c3e6d40d0305fdae35a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31c60803245045f362a162771cba785a2b11e2d65e504b0a06a220c9b22b9376a6c0f2e1b26ad580af9db2bff2c94d99502b7c4a065032a006dc0f409bb737c2
|
7
|
+
data.tar.gz: c1e960d7705de5cbb26fdb4cadd54fdbefaaf77617f9f4ac9f43ffbefb5089a2ae96af2d34be3333d43b404bba158e029e678d889c8410b7548e7eebbf343e4b
|
data/CHANGELOG.adoc
CHANGED
@@ -4,6 +4,16 @@
|
|
4
4
|
This document provides a high-level view of the changes to the Asciidoctor Reducer by release.
|
5
5
|
For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
|
6
6
|
|
7
|
+
== 1.0.0-beta.1 (2022-04-21) - @mojavelinux
|
8
|
+
|
9
|
+
=== Changed
|
10
|
+
|
11
|
+
* Add names of include files which have been included partially in include mapping comment and prefix names with ~
|
12
|
+
|
13
|
+
=== Details
|
14
|
+
|
15
|
+
{url-repo}/releases/tag/v1.0.0-beta.1[git tag] | {url-repo}/compare/v1.0.0.alpha.10\...v1.0.0-beta.1[full diff]
|
16
|
+
|
7
17
|
== 1.0.0.alpha.10 (2022-04-21) - @mojavelinux
|
8
18
|
|
9
19
|
=== Changed
|
@@ -59,7 +69,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
59
69
|
|
60
70
|
=== Details
|
61
71
|
|
62
|
-
{url-repo}/releases/tag/v1.0.0.alpha.8[git tag]
|
72
|
+
{url-repo}/releases/tag/v1.0.0.alpha.8[git tag] | {url-repo}/compare/v1.0.0.alpha.7\...v1.0.0.alpha.8[full diff]
|
63
73
|
|
64
74
|
== 1.0.0.alpha.7 (2022-02-14) - @mojavelinux
|
65
75
|
|
@@ -82,7 +92,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
82
92
|
|
83
93
|
=== Details
|
84
94
|
|
85
|
-
{url-repo}/releases/tag/v1.0.0.alpha.7[git tag]
|
95
|
+
{url-repo}/releases/tag/v1.0.0.alpha.7[git tag] | {url-repo}/compare/v1.0.0.alpha.6\...v1.0.0.alpha.7[full diff]
|
86
96
|
|
87
97
|
== 1.0.0.alpha.6 (2022-02-10) - @mojavelinux
|
88
98
|
|
@@ -106,7 +116,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
106
116
|
|
107
117
|
=== Details
|
108
118
|
|
109
|
-
{url-repo}/releases/tag/v1.0.0.alpha.6[git tag]
|
119
|
+
{url-repo}/releases/tag/v1.0.0.alpha.6[git tag] | {url-repo}/compare/v1.0.0.alpha.5\...v1.0.0.alpha.6[full diff]
|
110
120
|
|
111
121
|
== 1.0.0.alpha.5 (2022-02-06) - @mojavelinux
|
112
122
|
|
@@ -123,7 +133,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
123
133
|
|
124
134
|
=== Details
|
125
135
|
|
126
|
-
{url-repo}/releases/tag/v1.0.0.alpha.5[git tag]
|
136
|
+
{url-repo}/releases/tag/v1.0.0.alpha.5[git tag] | {url-repo}/compare/v1.0.0.alpha.4\...v1.0.0.alpha.5[full diff]
|
127
137
|
|
128
138
|
== 1.0.0.alpha.4 (2022-02-03) - @mojavelinux
|
129
139
|
|
@@ -133,7 +143,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
133
143
|
|
134
144
|
=== Details
|
135
145
|
|
136
|
-
{url-repo}/releases/tag/v1.0.0.alpha.4[git tag]
|
146
|
+
{url-repo}/releases/tag/v1.0.0.alpha.4[git tag] | {url-repo}/compare/v1.0.0.alpha.3\...v1.0.0.alpha.4[full diff]
|
137
147
|
|
138
148
|
== 1.0.0.alpha.3 (2022-02-02) - @mojavelinux
|
139
149
|
|
@@ -146,7 +156,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
146
156
|
|
147
157
|
=== Details
|
148
158
|
|
149
|
-
{url-repo}/releases/tag/v1.0.0.alpha.3[git tag]
|
159
|
+
{url-repo}/releases/tag/v1.0.0.alpha.3[git tag] | {url-repo}/compare/v1.0.0.alpha.2\...v1.0.0.alpha.3[full diff]
|
150
160
|
|
151
161
|
== 1.0.0.alpha.2 (2022-01-27) - @mojavelinux
|
152
162
|
|
@@ -169,7 +179,7 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co
|
|
169
179
|
|
170
180
|
=== Details
|
171
181
|
|
172
|
-
{url-repo}/releases/tag/v1.0.0.alpha.2[git tag]
|
182
|
+
{url-repo}/releases/tag/v1.0.0.alpha.2[git tag] | {url-repo}/compare/v1.0.0.alpha.1\...v1.0.0.alpha.2[full diff]
|
173
183
|
|
174
184
|
== 1.0.0.alpha.1 (2022-01-12) - @mojavelinux
|
175
185
|
|
data/README.adoc
CHANGED
@@ -4,11 +4,12 @@ module Asciidoctor::Reducer
|
|
4
4
|
class IncludeMapper < ::Asciidoctor::Extensions::TreeProcessor
|
5
5
|
def process doc
|
6
6
|
if doc.extensions.groups[:reducer]
|
7
|
-
unless (includes = doc.catalog[:includes].
|
7
|
+
unless (includes = doc.catalog[:includes].map {|name, val| val ? name : %(~#{name}) }).empty?
|
8
8
|
doc.source_lines.concat ['', %(//# includes=#{includes.join ','})]
|
9
9
|
end
|
10
10
|
elsif (last_line = doc.source_lines[-1])&.start_with? '//# includes='
|
11
|
-
doc.catalog[:includes].update ((last_line.slice 13, last_line.length).split ',')
|
11
|
+
doc.catalog[:includes].update ((last_line.slice 13, last_line.length).split ',')
|
12
|
+
.map {|it| [(fragment = it.chr == '~') ? (it.slice 1, it.length) : it, !fragment] }.to_h
|
12
13
|
end
|
13
14
|
doc
|
14
15
|
end
|