asciidoctor-bibliography 0.4.2 → 0.4.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a54dc9ae017f2210a577ed1f065f62fb012ac6d8
|
4
|
+
data.tar.gz: 5e382f6eaf3989f42feb0a8b90f1dcf1d1289d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcaaba5e5312d238298156007f7d73180f63c45903eba25079e491779265bcf84f4c95ad23bbc00e4808c97e72e3b0a92c15efec44590b0b2b3b41cd4ee4634f
|
7
|
+
data.tar.gz: '0089c34a2ffd99fdf2838a87cd58b99fd85c279932960f0f7ec3e46b7fa6e97e819803cbd3499aab666cb1bac77d73224d3ad7e14ab50d122b51aef74901e04d'
|
@@ -15,21 +15,20 @@ module AsciidoctorBibliography
|
|
15
15
|
document.bibliographer.database =
|
16
16
|
::AsciidoctorBibliography::Database.new document.bibliographer.options.database
|
17
17
|
|
18
|
-
|
18
|
+
processed_lines = process_lines reader.read_lines, document.bibliographer
|
19
|
+
reader.unshift_lines processed_lines
|
20
|
+
reader
|
19
21
|
end
|
20
22
|
|
21
23
|
private
|
22
24
|
|
23
|
-
def
|
25
|
+
def process_lines(lines, bibliographer)
|
24
26
|
# First we fetch citations and replace them with uuids,
|
25
|
-
|
26
|
-
reader = ::Asciidoctor::Reader.new processed_lines
|
27
|
+
lines = fetch_citations lines, bibliographer
|
27
28
|
# then we render them
|
28
|
-
|
29
|
-
reader = ::Asciidoctor::Reader.new processed_lines
|
29
|
+
lines = render_citations lines, bibliographer
|
30
30
|
# and finally we render indices.
|
31
|
-
|
32
|
-
::Asciidoctor::Reader.new processed_lines
|
31
|
+
render_indices lines, bibliographer
|
33
32
|
end
|
34
33
|
|
35
34
|
def fetch_citations(lines, bibliographer)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-bibliography
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|