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: bf08a2882755e10d7aa01507c233699b61929031
4
- data.tar.gz: 35ee304ae669aa20bbba062e3ef4b1ef8227609b
3
+ metadata.gz: a54dc9ae017f2210a577ed1f065f62fb012ac6d8
4
+ data.tar.gz: 5e382f6eaf3989f42feb0a8b90f1dcf1d1289d08
5
5
  SHA512:
6
- metadata.gz: 7cb029fea12d309291a2a3f4d13d470acff5f34114e91f3039b00de6720f6d8887ab3433ba9a224b764466004f73e97e5ae6a72ba26b68e18fd48beaeefcc6e4
7
- data.tar.gz: 2aa5fa7e12ba1bd32d1b235d650930a54912d508e1f945f66596e27beecdf73f223ddd660cbb326954f7314728ae268979a97534840bbeb65dc2eafe447a7435
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
- process_reader reader, document.bibliographer
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 process_reader(reader, bibliographer)
25
+ def process_lines(lines, bibliographer)
24
26
  # First we fetch citations and replace them with uuids,
25
- processed_lines = fetch_citations reader.lines, bibliographer
26
- reader = ::Asciidoctor::Reader.new processed_lines
27
+ lines = fetch_citations lines, bibliographer
27
28
  # then we render them
28
- processed_lines = render_citations reader.lines, bibliographer
29
- reader = ::Asciidoctor::Reader.new processed_lines
29
+ lines = render_citations lines, bibliographer
30
30
  # and finally we render indices.
31
- processed_lines = render_indices reader.lines, bibliographer
32
- ::Asciidoctor::Reader.new processed_lines
31
+ render_indices lines, bibliographer
33
32
  end
34
33
 
35
34
  def fetch_citations(lines, bibliographer)
@@ -1,3 +1,3 @@
1
1
  module AsciidoctorBibliography
2
- VERSION = "0.4.2".freeze
2
+ VERSION = "0.4.3".freeze
3
3
  end
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.2
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-29 00:00:00.000000000 Z
11
+ date: 2017-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor