asciidoctor-reducer 1.0.3 → 1.0.5

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: 61484f3684d8fdfc67590e300484c52e9a2bdf14cd9e46a7a59c8bd7926836ba
4
- data.tar.gz: 5a7327b41a1c2a33ecbec9288e7eb155d2757e9a94cbd64da3497caaab89e3b8
3
+ metadata.gz: 8618df3cfe6cc9e6ed5d93fd1cc9a29c6026f2fa9b8fd017098c37cebff3eb05
4
+ data.tar.gz: c1bba0fcd19f6c09176c91caf72f46c338d8116b802c1992b10629e0e776f09a
5
5
  SHA512:
6
- metadata.gz: de7ead3ed1f79256653758038bc1b313a01deaeeba2295f042ba21c7af9d8125581a938dbeceebe6caaec952412a1e84dfbe2eb6f1f8aecfbc45d87a38d69de1
7
- data.tar.gz: 979950581b012e1c46c035bcf30941502800e6c921ba0612167d60accec9ba1efd25cce729877d85f1944d1336f4bb6290fa1581096e9a4f73f66250547bac88
6
+ metadata.gz: 52e0007d74c7495f44b89bc12ba4c0ab7e378d9050ce069f28655d580deae8268b162e8e223fc21bf05e9d2583355493abb654a781ae22768b8c3e762fb32d7f
7
+ data.tar.gz: 01125c00be7703eaeefe0e2b160c5df2cda937111444b986a6f86df4f02ec36f431e0cdf22b48aa8ea808c2094ccb482dcb22ff26999899d87ef0f49686bcd5c
data/CHANGELOG.adoc CHANGED
@@ -4,6 +4,26 @@
4
4
  This document provides a curated view of the changes to Asciidoctor Reducer in each 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.5 (2022-10-15) - @mojavelinux
8
+
9
+ === Changed
10
+
11
+ * insert `role=include` into link macro that replaces include directive more carefully
12
+
13
+ === Details
14
+
15
+ {url-repo}/releases/tag/v1.0.5[git tag] | {url-repo}/compare/v1.0.4\...v1.0.5[full diff]
16
+
17
+ == 1.0.4 (2022-10-15) - @mojavelinux
18
+
19
+ === Changed
20
+
21
+ * don't add role to link that replaces include directive if role is already present
22
+
23
+ === Details
24
+
25
+ {url-repo}/releases/tag/v1.0.4[git tag] | {url-repo}/compare/v1.0.3\...v1.0.4[full diff]
26
+
7
27
  == 1.0.3 (2022-09-22) - @mojavelinux
8
28
 
9
29
  === Changed
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = {project-name}
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>
3
- v1.0.3, 2022-09-22
3
+ v1.0.5, 2022-10-15
4
4
  :idprefix:
5
5
  :idseparator: -
6
6
  ifndef::env-github[:icons: font]
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.metadata = {
19
19
  'bug_tracker_uri' => 'https://github.com/asciidoctor/asciidoctor-reducer/issues',
20
20
  'changelog_uri' => 'https://github.com/asciidoctor/asciidoctor-reducer/blob/main/CHANGELOG.adoc',
21
- 'mailing_list_uri' => 'https://asciidoctor.zulipchat.com',
21
+ 'mailing_list_uri' => 'https://chat.asciidoctor.org',
22
22
  'source_code_uri' => 'https://github.com/asciidoctor/asciidoctor-reducer'
23
23
  }
24
24
 
@@ -15,8 +15,8 @@ module Asciidoctor::Reducer
15
15
  result = super
16
16
  unless @x_reducer[:include_pushed]
17
17
  if ((ln = peek_line true)&.end_with? ']') && !(unresolved = ln.start_with? 'Unresolved directive in ') &&
18
- directive_lineno == @lineno && (unresolved = ln.start_with? 'link:')
19
- ln = %(#{ln.slice 0, (ln.length - 1)}role=include])
18
+ directive_lineno == @lineno && (unresolved = ln.start_with? 'link:') && !(ln.include? '[role=')
19
+ ln = ln.sub '[', %([role=include#{ln[-2] == '[' ? '' : ','})
20
20
  end
21
21
  push_include_replacement directive_lineno, (unresolved ? [ln] : []), 0, unresolved
22
22
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module Reducer
5
- VERSION = '1.0.3'
5
+ VERSION = '1.0.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-reducer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-22 00:00:00.000000000 Z
11
+ date: 2022-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -84,7 +84,7 @@ licenses:
84
84
  metadata:
85
85
  bug_tracker_uri: https://github.com/asciidoctor/asciidoctor-reducer/issues
86
86
  changelog_uri: https://github.com/asciidoctor/asciidoctor-reducer/blob/main/CHANGELOG.adoc
87
- mailing_list_uri: https://asciidoctor.zulipchat.com
87
+ mailing_list_uri: https://chat.asciidoctor.org
88
88
  source_code_uri: https://github.com/asciidoctor/asciidoctor-reducer
89
89
  post_install_message:
90
90
  rdoc_options: []