asciidoctor-include-ext 0.1.0 → 0.1.1

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
- SHA1:
3
- metadata.gz: 3fd8f2f25f1005feb22f42516ca6333891f4cf0a
4
- data.tar.gz: fb3082daf8722e5f568ae832b4e7390c495c71da
2
+ SHA256:
3
+ metadata.gz: 4f8ae8d634d1a5e01cbbe36f072c22334d1d803b6d15c973e5d4e6aa71e75af5
4
+ data.tar.gz: 9761e2aa0a94de0ce830c5b614cb4b7af0d4f480cfbb4234f3ef4728efa8d280
5
5
  SHA512:
6
- metadata.gz: 659a51ad942bdbc85faaf3f8db18ef80772afaea9461902450998cf391085a2de3747ad5fb399031444b3a2efcf47430990e5bb9298bb21b345eeb2d804ebb2c
7
- data.tar.gz: 939b343e54c1a1e0150090d1428402a8ee4c98b792a68ec0e1dd2484b8c30c638fca08f39c894dcd112406010d78b1c88e46f18d19f775f19068af9751813b0a
6
+ metadata.gz: 8c8b96a7c05f84a71aeecd5b94beaab016cb3983303db4e29df50b2b3f1e4a86511dcb5a505fe5b39a6356f244b80f66ad0a068f53f85d77aa7a63ac20b1e033
7
+ data.tar.gz: cf27dab806f49cfe97758128e8c339576b99aec18ac373f92ec86fe103b14743c2da7b9ba7454bcf8ce22e41555dd3a2413affc9d7d422570a5191abd2238afe
@@ -34,7 +34,7 @@ module Asciidoctor::IncludeExt
34
34
  # `include::[]` directive.
35
35
  def process(_, reader, target, attributes)
36
36
  unless include_allowed? target, reader
37
- reader.replace_next_line("link:#{target}[]")
37
+ reader.unshift_line("link:#{target}[]")
38
38
  return
39
39
  end
40
40
 
@@ -134,7 +134,7 @@ module Asciidoctor::IncludeExt
134
134
  # @param target (see #process)
135
135
  # @param reader (see #process)
136
136
  def unresolved_include!(target, reader)
137
- reader.replace_next_line("Unresolved directive in #{reader.path} - include::#{target}[]")
137
+ reader.unshift_line("Unresolved directive in #{reader.path} - include::#{target}[]")
138
138
  end
139
139
 
140
140
  private
@@ -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.0'.freeze
6
+ VERSION = '0.1.1'.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.0
4
+ version: 0.1.1
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-12 00:00:00.000000000 Z
11
+ date: 2017-12-13 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.6.11
166
+ rubygems_version: 2.7.3
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Asciidoctor's standard include::[] processor reimplemented as an extension