asciidoctor-interdoc-reftext 0.4.1 → 0.4.2

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: fdd26f82c4b3b095c44b5bb3dfe4802debadd362e849d06945a8eb2e3c0addda
4
- data.tar.gz: a744c0ee0dd2b562108f1116f68863268c90728f5d856d9652787d24c4734ed7
3
+ metadata.gz: 31ad0fc7a826af64223d5b4838ef5fa70bd22411a5dfc28a955572d7f61d1687
4
+ data.tar.gz: c08f1b24327a0d5eabfe419e7805744f8d67d86d816bac27bc5791d6d11d1413
5
5
  SHA512:
6
- metadata.gz: da02301545a81762d6f9a554b18d7bd4034e01c602cb50930586a394733439224b31f1f69233d90fd7a436e4e415a5d2e69f313d0e80c1f3d0621ed8c50b29ff
7
- data.tar.gz: a97bfb9325c3a5c8c47ffac19029fcddeed989f224c00b553dca1ba1f671594dd401960566a2b49f4c34911c52a212ba081279e336adf5a8a931d87cb951a703
6
+ metadata.gz: 267b44379a5daa498c0a49ad1e8515c48284fb6b82e67167901bc8f631219a24123a1d191a295458884dcb3bd40534b9128113cef902f2cff06361b2328bebbe
7
+ data.tar.gz: e6430f170d83f4538794b2df4b6bc6cb169e857783d8b78a74e83c9450e8bb1d06a0c11bb3b8e7f2a8b386a335b93e2fdf73b3441380504efda2731e7fd6942b
data/README.adoc CHANGED
@@ -24,7 +24,7 @@ This project is an http://asciidoctor.org/[Asciidoctor] extension providing impl
24
24
  When you define a cross reference to another document “other.adoc” _without_ a label, e.g.:
25
25
 
26
26
  ----
27
- xref:other#[]
27
+ xref:other.adoc#[]
28
28
  ----
29
29
 
30
30
  Asciidoctor converts it into a plain link with the target document’s path as a text:
@@ -47,7 +47,7 @@ where “Other Document” is a *title* of the _other.adoc_.
47
47
  Similarly with cross reference to a section in another document, e.g.:
48
48
 
49
49
  ----
50
- xref:other#sec1[]
50
+ xref:other.adoc#sec1[]
51
51
  ----
52
52
 
53
53
  Asciidoctor converts it in the same way as above, but this extensions converts it into:
@@ -16,7 +16,7 @@ text (label) for inter-document cross references"
16
16
 
17
17
  s.required_ruby_version = '>= 2.1'
18
18
 
19
- s.add_runtime_dependency 'asciidoctor', '~> 1.5.6'
19
+ s.add_runtime_dependency 'asciidoctor', '>= 1.5.6', '< 3.0'
20
20
 
21
21
  s.add_development_dependency 'corefines', '~> 1.11'
22
22
  s.add_development_dependency 'kramdown', '~> 1.16'
@@ -135,14 +135,7 @@ module Asciidoctor::InterdocReftext
135
135
  # @param input [Enumerable<String>, String] lines of the AsciiDoc document to load.
136
136
  # @return [Asciidoctor::Document] a parsed document.
137
137
  def asciidoc_load(input)
138
- # Asciidoctor is dumb. It doesn't know enumerators and when we give it
139
- # an Array, it calls #dup on it. At least it knows #readlines, so we just
140
- # define it as an alias for #to_a.
141
- if input.is_a?(::Enumerable) && !input.respond_to?(:readlines)
142
- input.singleton_class.send(:alias_method, :readlines, :to_a)
143
- end
144
-
145
- ::Asciidoctor.load(input, @document.options)
138
+ ::Asciidoctor.load(input.to_a, @document.options)
146
139
  end
147
140
  end
148
141
  end
@@ -3,6 +3,6 @@
3
3
  module Asciidoctor
4
4
  module InterdocReftext
5
5
  # Version of the asciidoctor-interdoc-reftext gem.
6
- VERSION = '0.4.1'
6
+ VERSION = '0.4.2'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-interdoc-reftext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Jirutka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-26 00:00:00.000000000 Z
11
+ date: 2019-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.5.6
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 1.5.6
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: corefines
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -170,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
176
  - !ruby/object:Gem::Version
171
177
  version: '0'
172
178
  requirements: []
173
- rubyforge_project:
174
- rubygems_version: 2.7.7
179
+ rubygems_version: 3.0.3
175
180
  signing_key:
176
181
  specification_version: 4
177
182
  summary: Asciidoctor extension providing implicit (automatic) reference text (label)