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: 4f8ae8d634d1a5e01cbbe36f072c22334d1d803b6d15c973e5d4e6aa71e75af5
4
- data.tar.gz: 9761e2aa0a94de0ce830c5b614cb4b7af0d4f480cfbb4234f3ef4728efa8d280
3
+ metadata.gz: 426f9fc65b85c68d988632d3b123f9e21ed8f539bed5cb8dfb389b9bf9bcc066
4
+ data.tar.gz: bb40b284130e5c1bc0f6774471da10e0405b1240dbbec51ff05d9be568cd8c70
5
5
  SHA512:
6
- metadata.gz: 8c8b96a7c05f84a71aeecd5b94beaab016cb3983303db4e29df50b2b3f1e4a86511dcb5a505fe5b39a6356f244b80f66ad0a068f53f85d77aa7a63ac20b1e033
7
- data.tar.gz: cf27dab806f49cfe97758128e8c339576b99aec18ac373f92ec86fe103b14743c2da7b9ba7454bcf8ce22e41555dd3a2413affc9d7d422570a5191abd2238afe
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'asciidoctor/reader'
2
+ require 'asciidoctor'
3
3
 
4
4
  # Monkey-patch Reader to add #document.
5
5
  class Asciidoctor::Reader
@@ -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+)\[\]#{suffix_rx}$/.freeze
63
+ @tag_directive_rx = /\b(?:tag|(end))::(\S+)\[\](?=$| )/.freeze
70
64
 
71
65
  # mutable (state variables)
72
66
  @stack = [[nil, default_state]]
@@ -3,6 +3,6 @@
3
3
  module Asciidoctor
4
4
  module IncludeExt
5
5
  # Version of the asciidoctor-include-ext gem.
6
- VERSION = '0.1.1'.freeze
6
+ VERSION = '0.2.0'.freeze
7
7
  end
8
8
  end
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.1.1
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: 2017-12-13 00:00:00.000000000 Z
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.3
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