jekyll-asciidoc 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.adoc +27 -8
  3. data/Gemfile +13 -3
  4. data/LICENSE.adoc +1 -1
  5. data/README.adoc +409 -103
  6. data/jekyll-asciidoc.gemspec +6 -7
  7. data/lib/jekyll-asciidoc/compat.rb +4 -3
  8. data/lib/jekyll-asciidoc/converter.rb +50 -30
  9. data/lib/jekyll-asciidoc/filters.rb +21 -1
  10. data/lib/jekyll-asciidoc/integrator.rb +42 -34
  11. data/lib/jekyll-asciidoc/mixins.rb +6 -0
  12. data/lib/jekyll-asciidoc/version.rb +1 -1
  13. data/spec/fixtures/basic_site/docid.adoc +4 -0
  14. data/spec/fixtures/basic_site/section-with-id-and-role.adoc +6 -0
  15. data/spec/fixtures/imagesdir_relative_to_root/_config.yml +1 -1
  16. data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/_config.yml +0 -0
  17. data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/_layouts/default.html +0 -0
  18. data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/about/_people.adoc +0 -0
  19. data/spec/fixtures/{include_relative_to_doc → include_relative_to_docdir}/about/index.adoc +0 -0
  20. data/spec/fixtures/include_relative_to_root/source/_config.yml +2 -0
  21. data/spec/fixtures/include_relative_to_root/source/_layouts/default.html +11 -0
  22. data/spec/fixtures/include_relative_to_root/source/about/_people.adoc +2 -0
  23. data/spec/fixtures/include_relative_to_root/source/about/index.adoc +13 -0
  24. data/spec/fixtures/tocify_filter/_config.yml +2 -0
  25. data/spec/fixtures/tocify_filter/_layouts/default.html +15 -0
  26. data/spec/fixtures/tocify_filter/index.adoc +25 -0
  27. data/spec/fixtures/with_posts/_config.yml +4 -0
  28. data/spec/fixtures/with_posts/_layouts/post.html +8 -0
  29. data/spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc +7 -0
  30. data/spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc +4 -0
  31. data/spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc +4 -0
  32. data/spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc +6 -0
  33. data/spec/fixtures/xhtml_syntax/images/sunset.jpg +0 -0
  34. data/spec/jekyll-asciidoc_spec.rb +320 -127
  35. data/spec/spec_helper.rb +4 -0
  36. metadata +41 -15
@@ -57,4 +57,8 @@ RSpec.configure do |config|
57
57
  path = %(_#{collection_name}/#{path}) unless path.start_with? %(_#{collection_name}/)
58
58
  site.collections[collection_name].docs.find {|p| p.relative_path == path }
59
59
  end
60
+
61
+ def windows?
62
+ ::RbConfig::CONFIG['host_os'] =~ /win|ming/
63
+ end
60
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-asciidoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-06 00:00:00.000000000 Z
12
+ date: 2017-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: asciidoctor
@@ -67,8 +67,8 @@ dependencies:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: 3.5.0
70
- description: A Jekyll plugin that converts AsciiDoc source files in your site to HTML
71
- pages using Asciidoctor.
70
+ description: A Jekyll plugin that converts the AsciiDoc source files in your site
71
+ to HTML pages using Asciidoctor.
72
72
  email:
73
73
  - dan.j.allen@gmail.com
74
74
  executables: []
@@ -100,6 +100,7 @@ files:
100
100
  - spec/fixtures/basic_site/auto-layout.adoc
101
101
  - spec/fixtures/basic_site/bare-header.adoc
102
102
  - spec/fixtures/basic_site/custom-layout.adoc
103
+ - spec/fixtures/basic_site/docid.adoc
103
104
  - spec/fixtures/basic_site/empty-layout.adoc
104
105
  - spec/fixtures/basic_site/empty-page-attribute.adoc
105
106
  - spec/fixtures/basic_site/liquid-enabled.adoc
@@ -107,6 +108,7 @@ files:
107
108
  - spec/fixtures/basic_site/no-doctitle.adoc
108
109
  - spec/fixtures/basic_site/no-liquid.adoc
109
110
  - spec/fixtures/basic_site/not-published.adoc
111
+ - spec/fixtures/basic_site/section-with-id-and-role.adoc
110
112
  - spec/fixtures/basic_site/standalone-a.adoc
111
113
  - spec/fixtures/basic_site/standalone-b.adoc
112
114
  - spec/fixtures/basic_site/subdir/page-in-subdir.adoc
@@ -126,10 +128,14 @@ files:
126
128
  - spec/fixtures/fallback_to_default_layout/home.adoc
127
129
  - spec/fixtures/hybrid_config/_config.yml
128
130
  - spec/fixtures/imagesdir_relative_to_root/_config.yml
129
- - spec/fixtures/include_relative_to_doc/_config.yml
130
- - spec/fixtures/include_relative_to_doc/_layouts/default.html
131
- - spec/fixtures/include_relative_to_doc/about/_people.adoc
132
- - spec/fixtures/include_relative_to_doc/about/index.adoc
131
+ - spec/fixtures/include_relative_to_docdir/_config.yml
132
+ - spec/fixtures/include_relative_to_docdir/_layouts/default.html
133
+ - spec/fixtures/include_relative_to_docdir/about/_people.adoc
134
+ - spec/fixtures/include_relative_to_docdir/about/index.adoc
135
+ - spec/fixtures/include_relative_to_root/source/_config.yml
136
+ - spec/fixtures/include_relative_to_root/source/_layouts/default.html
137
+ - spec/fixtures/include_relative_to_root/source/about/_people.adoc
138
+ - spec/fixtures/include_relative_to_root/source/about/index.adoc
133
139
  - spec/fixtures/include_relative_to_source/_config.yml
134
140
  - spec/fixtures/include_relative_to_source/_layouts/default.html
135
141
  - spec/fixtures/include_relative_to_source/about/_people.adoc
@@ -147,6 +153,9 @@ files:
147
153
  - spec/fixtures/safe_mode/_config.yml
148
154
  - spec/fixtures/safe_mode/_layouts/home.html
149
155
  - spec/fixtures/safe_mode/home.adoc
156
+ - spec/fixtures/tocify_filter/_config.yml
157
+ - spec/fixtures/tocify_filter/_layouts/default.html
158
+ - spec/fixtures/tocify_filter/index.adoc
150
159
  - spec/fixtures/with_custom_collection/_blueprints/blueprint-a.adoc
151
160
  - spec/fixtures/with_custom_collection/_blueprints/blueprint-b.adoc
152
161
  - spec/fixtures/with_custom_collection/_config.yml
@@ -162,9 +171,13 @@ files:
162
171
  - spec/fixtures/with_posts/_posts/2016-01-04-custom-layout.adoc
163
172
  - spec/fixtures/with_posts/_posts/2016-01-05-nil-layout.adoc
164
173
  - spec/fixtures/with_posts/_posts/2016-02-01-post-with-categories.adoc
174
+ - spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc
165
175
  - spec/fixtures/with_posts/_posts/2016-03-01-post-with-excerpt.adoc
166
176
  - spec/fixtures/with_posts/_posts/2016-04-01-show-me-the-title.adoc
167
177
  - spec/fixtures/with_posts/_posts/2016-05-31-automatic-title.adoc
178
+ - spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc
179
+ - spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc
180
+ - spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc
168
181
  - spec/fixtures/with_posts/index.html
169
182
  - spec/fixtures/xhtml_syntax/_config.yml
170
183
  - spec/fixtures/xhtml_syntax/home.adoc
@@ -183,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
196
  requirements:
184
197
  - - ">="
185
198
  - !ruby/object:Gem::Version
186
- version: '0'
199
+ version: 1.9.3
187
200
  required_rubygems_version: !ruby/object:Gem::Requirement
188
201
  requirements:
189
202
  - - ">="
@@ -191,10 +204,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
204
  version: '0'
192
205
  requirements: []
193
206
  rubyforge_project:
194
- rubygems_version: 2.5.1
207
+ rubygems_version: 2.4.5
195
208
  signing_key:
196
209
  specification_version: 4
197
- summary: A Jekyll plugin that converts AsciiDoc source files in your site to HTML
210
+ summary: A Jekyll plugin that converts the AsciiDoc source files in your site to HTML
198
211
  pages using Asciidoctor.
199
212
  test_files:
200
213
  - spec/fixtures/alternate_page_attribute_prefix/_config.yml
@@ -208,6 +221,7 @@ test_files:
208
221
  - spec/fixtures/basic_site/auto-layout.adoc
209
222
  - spec/fixtures/basic_site/bare-header.adoc
210
223
  - spec/fixtures/basic_site/custom-layout.adoc
224
+ - spec/fixtures/basic_site/docid.adoc
211
225
  - spec/fixtures/basic_site/empty-layout.adoc
212
226
  - spec/fixtures/basic_site/empty-page-attribute.adoc
213
227
  - spec/fixtures/basic_site/liquid-enabled.adoc
@@ -215,6 +229,7 @@ test_files:
215
229
  - spec/fixtures/basic_site/no-doctitle.adoc
216
230
  - spec/fixtures/basic_site/no-liquid.adoc
217
231
  - spec/fixtures/basic_site/not-published.adoc
232
+ - spec/fixtures/basic_site/section-with-id-and-role.adoc
218
233
  - spec/fixtures/basic_site/standalone-a.adoc
219
234
  - spec/fixtures/basic_site/standalone-b.adoc
220
235
  - spec/fixtures/basic_site/subdir/page-in-subdir.adoc
@@ -234,10 +249,14 @@ test_files:
234
249
  - spec/fixtures/fallback_to_default_layout/home.adoc
235
250
  - spec/fixtures/hybrid_config/_config.yml
236
251
  - spec/fixtures/imagesdir_relative_to_root/_config.yml
237
- - spec/fixtures/include_relative_to_doc/_config.yml
238
- - spec/fixtures/include_relative_to_doc/_layouts/default.html
239
- - spec/fixtures/include_relative_to_doc/about/_people.adoc
240
- - spec/fixtures/include_relative_to_doc/about/index.adoc
252
+ - spec/fixtures/include_relative_to_docdir/_config.yml
253
+ - spec/fixtures/include_relative_to_docdir/_layouts/default.html
254
+ - spec/fixtures/include_relative_to_docdir/about/_people.adoc
255
+ - spec/fixtures/include_relative_to_docdir/about/index.adoc
256
+ - spec/fixtures/include_relative_to_root/source/_config.yml
257
+ - spec/fixtures/include_relative_to_root/source/_layouts/default.html
258
+ - spec/fixtures/include_relative_to_root/source/about/_people.adoc
259
+ - spec/fixtures/include_relative_to_root/source/about/index.adoc
241
260
  - spec/fixtures/include_relative_to_source/_config.yml
242
261
  - spec/fixtures/include_relative_to_source/_layouts/default.html
243
262
  - spec/fixtures/include_relative_to_source/about/_people.adoc
@@ -255,6 +274,9 @@ test_files:
255
274
  - spec/fixtures/safe_mode/_config.yml
256
275
  - spec/fixtures/safe_mode/_layouts/home.html
257
276
  - spec/fixtures/safe_mode/home.adoc
277
+ - spec/fixtures/tocify_filter/_config.yml
278
+ - spec/fixtures/tocify_filter/_layouts/default.html
279
+ - spec/fixtures/tocify_filter/index.adoc
258
280
  - spec/fixtures/with_custom_collection/_blueprints/blueprint-a.adoc
259
281
  - spec/fixtures/with_custom_collection/_blueprints/blueprint-b.adoc
260
282
  - spec/fixtures/with_custom_collection/_config.yml
@@ -270,9 +292,13 @@ test_files:
270
292
  - spec/fixtures/with_posts/_posts/2016-01-04-custom-layout.adoc
271
293
  - spec/fixtures/with_posts/_posts/2016-01-05-nil-layout.adoc
272
294
  - spec/fixtures/with_posts/_posts/2016-02-01-post-with-categories.adoc
295
+ - spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc
273
296
  - spec/fixtures/with_posts/_posts/2016-03-01-post-with-excerpt.adoc
274
297
  - spec/fixtures/with_posts/_posts/2016-04-01-show-me-the-title.adoc
275
298
  - spec/fixtures/with_posts/_posts/2016-05-31-automatic-title.adoc
299
+ - spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc
300
+ - spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc
301
+ - spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc
276
302
  - spec/fixtures/with_posts/index.html
277
303
  - spec/fixtures/xhtml_syntax/_config.yml
278
304
  - spec/fixtures/xhtml_syntax/home.adoc