asciidoctor-include-ext 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of asciidoctor-include-ext might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 426f9fc65b85c68d988632d3b123f9e21ed8f539bed5cb8dfb389b9bf9bcc066
|
4
|
+
data.tar.gz: bb40b284130e5c1bc0f6774471da10e0405b1240dbbec51ff05d9be568cd8c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5418ef883794df0cf2df411516592c58a058e5a7a8b13bf1d9130aba246a62630752748b1056413d82c48d2196454dbf25c75fabda3001132d02d99feb9ce5d6
|
7
|
+
data.tar.gz: 1aa743cb0820f82f3d670ae44649ce4e20f385a68a08110fb213ac63aa9b0cd21d1d8f4835c315be728463a85e2d2f9b969eaf17cef558969424b2b4f403107c
|
@@ -6,6 +6,7 @@ require 'asciidoctor/include_ext/version'
|
|
6
6
|
require 'asciidoctor/include_ext/reader_ext'
|
7
7
|
require 'asciidoctor/include_ext/lineno_lines_selector'
|
8
8
|
require 'asciidoctor/include_ext/tag_lines_selector'
|
9
|
+
require 'asciidoctor'
|
9
10
|
require 'asciidoctor/extensions'
|
10
11
|
|
11
12
|
module Asciidoctor::IncludeExt
|
@@ -55,18 +55,12 @@ module Asciidoctor::IncludeExt
|
|
55
55
|
default_state = !tag_flags.value?(true)
|
56
56
|
end
|
57
57
|
|
58
|
-
if (circ_cmt = ::Asciidoctor::CIRCUMFIX_COMMENTS[File.extname(target)])
|
59
|
-
# Note: "\s" instead of more practical "\s+" is here for compatibility
|
60
|
-
# with Asciidoctor.
|
61
|
-
suffix_rx = "(?:\s#{::Regexp.escape(circ_cmt[:suffix])})?"
|
62
|
-
end
|
63
|
-
|
64
58
|
# "immutable"
|
65
59
|
@target = target
|
66
60
|
@logger = logger
|
67
61
|
@tag_flags = tag_flags.freeze
|
68
62
|
@wildcard = wildcard
|
69
|
-
@tag_directive_rx = /\b(?:tag|(end))::(\S+)\[\]
|
63
|
+
@tag_directive_rx = /\b(?:tag|(end))::(\S+)\[\](?=$| )/.freeze
|
70
64
|
|
71
65
|
# mutable (state variables)
|
72
66
|
@stack = [[nil, default_state]]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-include-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Jirutka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.7.
|
166
|
+
rubygems_version: 2.7.6
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: Asciidoctor's standard include::[] processor reimplemented as an extension
|