jekyll-asciidoc 1.1.1 → 1.1.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
  SHA1:
3
- metadata.gz: a32abdc7e23fb224459ef345205b70365abfa35e
4
- data.tar.gz: 396e273827b48132964fce3a118a155d53417baf
3
+ metadata.gz: 70e3a563b71258539aec7af2a1b3f54f23ee28e2
4
+ data.tar.gz: 92794e6be1f68a919b7f668c38420c37cba94194
5
5
  SHA512:
6
- metadata.gz: 5ea1217c030007a8ec10bfb3d8d8ddfcaff910da7918ee9b7f2a30082d8463ae5ef2cd4ba2741d924a9c131f1623382eaf532ee8eb8dedf25c0bc50202dfb28e
7
- data.tar.gz: fc37dfdb7ed1bbd2c4af2302fae3b6837757cb2bf901b56f8ce8279e1e3cea98388a6b856041c50570e848567403aeef2f875221fda7128dbb82a0f37312df2e
6
+ metadata.gz: 51b0b989d383316e56321c136da7a39fd7ff6356b5c22751a21803427d43b10f120395fd4660fd1e858eb0f2b01006fff0be13d552f3fb6d0577e480ba2ea0ab
7
+ data.tar.gz: 9cc3b1abf6401faa525fa5073274b5d7de840608cf894d4c5703eb53913afac970aac15c25bc3ea26f4f05920732523ea41317a811555d5542b3486bc93a99ba
@@ -103,11 +103,10 @@ module Jekyll
103
103
  page.data['title'] = doc.doctitle if doc.header?
104
104
  page.data['author'] = doc.author if doc.author
105
105
 
106
- unless (additional_page_data = SafeYAML.load(doc.attributes
106
+ unless (adoc_front_matter = doc.attributes
107
107
  .select {|name| name.start_with?(page_attr_prefix) }
108
- .map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }
109
- .join("\n"))).empty?
110
- page.data.update(additional_page_data)
108
+ .map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }).empty?
109
+ page.data.update(SafeYAML.load(adoc_front_matter * "\n"))
111
110
  end
112
111
 
113
112
  page.data['layout'] = 'default' unless page.data.key? 'layout'
@@ -122,11 +121,10 @@ module Jekyll
122
121
  post.data['author'] = doc.author if doc.author
123
122
  post.data['date'] = DateTime.parse(doc.revdate).to_time if doc.attr? 'revdate'
124
123
 
125
- unless (additional_page_data = SafeYAML.load(doc.attributes
124
+ unless (adoc_front_matter = doc.attributes
126
125
  .select {|name| name.start_with?(page_attr_prefix) }
127
- .map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }
128
- .join("\n"))).empty?
129
- post.data.update(additional_page_data)
126
+ .map {|name, val| %(#{name[page_attr_prefix_l..-1]}: #{val}) }).empty?
127
+ post.data.update(SafeYAML.load(adoc_front_matter * "\n"))
130
128
  end
131
129
 
132
130
  post.data['layout'] = 'post' unless post.data.key? 'layout'
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AsciiDoc
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-asciidoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-07 00:00:00.000000000 Z
11
+ date: 2016-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor