asciidoctor-doctest 2.0.0.beta.2 → 2.0.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +37 -37
- data/data/examples/asciidoc/{block_admonition.adoc → admonition.adoc} +15 -15
- data/data/examples/asciidoc/{block_audio.adoc → audio.adoc} +3 -3
- data/data/examples/asciidoc/{block_colist.adoc → colist.adoc} +2 -2
- data/data/examples/asciidoc/{block_dlist.adoc → dlist.adoc} +11 -11
- data/data/examples/asciidoc/document.adoc +9 -9
- data/data/examples/asciidoc/{block_example.adoc → example.adoc} +2 -2
- data/data/examples/asciidoc/{block_floating_title.adoc → floating_title.adoc} +2 -2
- data/data/examples/asciidoc/{block_image.adoc → image.adoc} +8 -8
- data/data/examples/asciidoc/inline_anchor.adoc +9 -9
- data/data/examples/asciidoc/inline_break.adoc +1 -1
- data/data/examples/asciidoc/inline_footnote.adoc +1 -1
- data/data/examples/asciidoc/inline_image.adoc +11 -11
- data/data/examples/asciidoc/inline_quoted.adoc +9 -9
- data/data/examples/asciidoc/{block_listing.adoc → listing.adoc} +6 -6
- data/data/examples/asciidoc/{block_literal.adoc → literal.adoc} +2 -2
- data/data/examples/asciidoc/{block_olist.adoc → olist.adoc} +7 -7
- data/data/examples/asciidoc/{block_open.adoc → open.adoc} +4 -4
- data/data/examples/asciidoc/{block_outline.adoc → outline.adoc} +0 -0
- data/data/examples/asciidoc/{block_page_break.adoc → page_break.adoc} +0 -0
- data/data/examples/asciidoc/{block_paragraph.adoc → paragraph.adoc} +2 -2
- data/data/examples/asciidoc/{block_pass.adoc → pass.adoc} +0 -0
- data/data/examples/asciidoc/{block_preamble.adoc → preamble.adoc} +1 -1
- data/data/examples/asciidoc/{block_quote.adoc → quote.adoc} +4 -4
- data/data/examples/asciidoc/section.adoc +5 -5
- data/data/examples/asciidoc/{block_sidebar.adoc → sidebar.adoc} +2 -2
- data/data/examples/asciidoc/{block_stem.adoc → stem.adoc} +2 -2
- data/data/examples/asciidoc/{block_table.adoc → table.adoc} +17 -17
- data/data/examples/asciidoc/{block_thematic_break.adoc → thematic_break.adoc} +0 -0
- data/data/examples/asciidoc/{block_toc.adoc → toc.adoc} +6 -6
- data/data/examples/asciidoc/{block_ulist.adoc → ulist.adoc} +4 -4
- data/data/examples/asciidoc/{block_verse.adoc → verse.adoc} +4 -4
- data/data/examples/asciidoc/{block_video.adoc → video.adoc} +7 -7
- data/features/fixtures/html-slim/examples/asciidoc/document.adoc +1 -1
- data/features/fixtures/html-slim/examples/asciidoc/{block_quote.adoc → quote.adoc} +3 -3
- data/features/fixtures/html-slim/examples/html/document.html +1 -1
- data/features/fixtures/html-slim/examples/html/{block_quote.html → quote.html} +2 -2
- data/features/fixtures/html-slim/templates/{block_paragraph.html.slim → paragraph.html.slim} +0 -0
- data/features/fixtures/html-slim/templates/{block_quote.html.slim → quote.html.slim} +0 -0
- data/features/generator_html.feature +24 -24
- data/features/test_html.feature +13 -13
- data/lib/asciidoctor/doctest/example.rb +1 -1
- data/lib/asciidoctor/doctest/rake_tasks.rb +2 -2
- data/lib/asciidoctor/doctest/version.rb +1 -1
- metadata +35 -35
data/features/test_html.feature
CHANGED
@@ -9,11 +9,11 @@ Feature: Testing a custom HTML backend
|
|
9
9
|
"""
|
10
10
|
Running DocTest for the templates: templates.
|
11
11
|
|
12
|
-
.
|
12
|
+
FS.SF
|
13
13
|
"""
|
14
14
|
Then the output should contain:
|
15
15
|
"""
|
16
|
-
✗ Failure:
|
16
|
+
✗ Failure: quote:with-attribution
|
17
17
|
Failing example..
|
18
18
|
|
19
19
|
<div class="quoteblock">
|
@@ -24,7 +24,7 @@ Feature: Testing a custom HTML backend
|
|
24
24
|
"""
|
25
25
|
And the output should contain:
|
26
26
|
"""
|
27
|
-
✗ Failure: document:
|
27
|
+
✗ Failure: document:title-with-author
|
28
28
|
This example should fail..
|
29
29
|
|
30
30
|
<div id="header">
|
@@ -47,16 +47,16 @@ Feature: Testing a custom HTML backend
|
|
47
47
|
"""
|
48
48
|
Running DocTest for the templates: templates.
|
49
49
|
|
50
|
-
|
51
|
-
∅ block_quote:with_title
|
52
|
-
✗ block_quote:with_attribution
|
53
|
-
✗ document:title_with_author
|
50
|
+
✗ document:title-with-author
|
54
51
|
∅ inline_quoted:emphasis
|
52
|
+
✓ quote:with-id-and-role
|
53
|
+
∅ quote:with-title
|
54
|
+
✗ quote:with-attribution
|
55
55
|
|
56
56
|
"""
|
57
57
|
And the output should contain:
|
58
58
|
"""
|
59
|
-
∅ Skipped:
|
59
|
+
∅ Skipped: quote:with-title
|
60
60
|
No expected output found
|
61
61
|
"""
|
62
62
|
And the output should contain:
|
@@ -66,14 +66,14 @@ Feature: Testing a custom HTML backend
|
|
66
66
|
"""
|
67
67
|
|
68
68
|
Scenario: Test only examples matching the pattern
|
69
|
-
When I run `bundle exec rake doctest:test PATTERN=
|
69
|
+
When I run `bundle exec rake doctest:test PATTERN=quot*:* VERBOSE=yes`
|
70
70
|
Then the output should contain:
|
71
71
|
"""
|
72
72
|
Running DocTest for the templates: templates.
|
73
73
|
|
74
|
-
✓
|
75
|
-
∅
|
76
|
-
✗
|
74
|
+
✓ quote:with-id-and-role
|
75
|
+
∅ quote:with-title
|
76
|
+
✗ quote:with-attribution
|
77
77
|
|
78
78
|
"""
|
79
79
|
|
@@ -86,7 +86,7 @@ Feature: Testing a custom HTML backend
|
|
86
86
|
"""
|
87
87
|
And the output should contain:
|
88
88
|
"""
|
89
|
-
✗ Failure:
|
89
|
+
✗ Failure: quote:with-attribution
|
90
90
|
Failing example..
|
91
91
|
|
92
92
|
<div class="quoteblock">
|
@@ -54,7 +54,7 @@ module Asciidoctor
|
|
54
54
|
end
|
55
55
|
|
56
56
|
##
|
57
|
-
# @param pattern [String] the glob pattern (e.g. +
|
57
|
+
# @param pattern [String] the glob pattern (e.g. +inline_*:with*+).
|
58
58
|
# @return [Boolean] +true+ if the name matches against the +pattern+,
|
59
59
|
# +false+ otherwise.
|
60
60
|
def name_match?(pattern)
|
@@ -22,7 +22,7 @@ module Asciidoctor
|
|
22
22
|
|
23
23
|
Options (env. variables):
|
24
24
|
PATTERN glob pattern to select examples to test. [default: #{task.pattern}]
|
25
|
-
E.g. *:*,
|
25
|
+
E.g. *:*, toc:basic, inline*:*, *list:with*, ...
|
26
26
|
VERBOSE prints out more details [default: #{task.verbose? ? 'yes' : 'no'}]
|
27
27
|
EOS
|
28
28
|
end
|
@@ -35,7 +35,7 @@ module Asciidoctor
|
|
35
35
|
|
36
36
|
Options (env. variables):
|
37
37
|
PATTERN glob pattern to select examples to (re)generate. [default: #{task.pattern}]
|
38
|
-
E.g. *:*,
|
38
|
+
E.g. *:*, toc:basic, inline*:*, *list:with*, ...
|
39
39
|
FORCE overwrite existing examples (yes/no)? [default: #{task.force? ? 'yes' : 'no'}]
|
40
40
|
EOS
|
41
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-doctest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.beta.
|
4
|
+
version: 2.0.0.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Jirutka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -275,33 +275,15 @@ files:
|
|
275
275
|
- LICENSE
|
276
276
|
- README.adoc
|
277
277
|
- Rakefile
|
278
|
-
- data/examples/asciidoc/
|
279
|
-
- data/examples/asciidoc/
|
280
|
-
- data/examples/asciidoc/
|
281
|
-
- data/examples/asciidoc/
|
282
|
-
- data/examples/asciidoc/block_example.adoc
|
283
|
-
- data/examples/asciidoc/block_floating_title.adoc
|
284
|
-
- data/examples/asciidoc/block_image.adoc
|
285
|
-
- data/examples/asciidoc/block_listing.adoc
|
286
|
-
- data/examples/asciidoc/block_literal.adoc
|
287
|
-
- data/examples/asciidoc/block_olist.adoc
|
288
|
-
- data/examples/asciidoc/block_open.adoc
|
289
|
-
- data/examples/asciidoc/block_outline.adoc
|
290
|
-
- data/examples/asciidoc/block_page_break.adoc
|
291
|
-
- data/examples/asciidoc/block_paragraph.adoc
|
292
|
-
- data/examples/asciidoc/block_pass.adoc
|
293
|
-
- data/examples/asciidoc/block_preamble.adoc
|
294
|
-
- data/examples/asciidoc/block_quote.adoc
|
295
|
-
- data/examples/asciidoc/block_sidebar.adoc
|
296
|
-
- data/examples/asciidoc/block_stem.adoc
|
297
|
-
- data/examples/asciidoc/block_table.adoc
|
298
|
-
- data/examples/asciidoc/block_thematic_break.adoc
|
299
|
-
- data/examples/asciidoc/block_toc.adoc
|
300
|
-
- data/examples/asciidoc/block_ulist.adoc
|
301
|
-
- data/examples/asciidoc/block_verse.adoc
|
302
|
-
- data/examples/asciidoc/block_video.adoc
|
278
|
+
- data/examples/asciidoc/admonition.adoc
|
279
|
+
- data/examples/asciidoc/audio.adoc
|
280
|
+
- data/examples/asciidoc/colist.adoc
|
281
|
+
- data/examples/asciidoc/dlist.adoc
|
303
282
|
- data/examples/asciidoc/document.adoc
|
304
283
|
- data/examples/asciidoc/embedded.adoc
|
284
|
+
- data/examples/asciidoc/example.adoc
|
285
|
+
- data/examples/asciidoc/floating_title.adoc
|
286
|
+
- data/examples/asciidoc/image.adoc
|
305
287
|
- data/examples/asciidoc/inline_anchor.adoc
|
306
288
|
- data/examples/asciidoc/inline_break.adoc
|
307
289
|
- data/examples/asciidoc/inline_button.adoc
|
@@ -311,22 +293,40 @@ files:
|
|
311
293
|
- data/examples/asciidoc/inline_kbd.adoc
|
312
294
|
- data/examples/asciidoc/inline_menu.adoc
|
313
295
|
- data/examples/asciidoc/inline_quoted.adoc
|
296
|
+
- data/examples/asciidoc/listing.adoc
|
297
|
+
- data/examples/asciidoc/literal.adoc
|
298
|
+
- data/examples/asciidoc/olist.adoc
|
299
|
+
- data/examples/asciidoc/open.adoc
|
300
|
+
- data/examples/asciidoc/outline.adoc
|
301
|
+
- data/examples/asciidoc/page_break.adoc
|
302
|
+
- data/examples/asciidoc/paragraph.adoc
|
303
|
+
- data/examples/asciidoc/pass.adoc
|
304
|
+
- data/examples/asciidoc/preamble.adoc
|
305
|
+
- data/examples/asciidoc/quote.adoc
|
314
306
|
- data/examples/asciidoc/section.adoc
|
307
|
+
- data/examples/asciidoc/sidebar.adoc
|
308
|
+
- data/examples/asciidoc/stem.adoc
|
309
|
+
- data/examples/asciidoc/table.adoc
|
310
|
+
- data/examples/asciidoc/thematic_break.adoc
|
311
|
+
- data/examples/asciidoc/toc.adoc
|
312
|
+
- data/examples/asciidoc/ulist.adoc
|
313
|
+
- data/examples/asciidoc/verse.adoc
|
314
|
+
- data/examples/asciidoc/video.adoc
|
315
315
|
- doc/img/doctest-diag.odf
|
316
316
|
- doc/img/doctest-diag.svg
|
317
317
|
- doc/img/failing-test-term.gif
|
318
318
|
- features/README
|
319
319
|
- features/fixtures/html-slim/Rakefile
|
320
|
-
- features/fixtures/html-slim/examples/asciidoc/block_quote.adoc
|
321
320
|
- features/fixtures/html-slim/examples/asciidoc/document.adoc
|
322
321
|
- features/fixtures/html-slim/examples/asciidoc/inline_quoted.adoc
|
323
|
-
- features/fixtures/html-slim/examples/
|
322
|
+
- features/fixtures/html-slim/examples/asciidoc/quote.adoc
|
324
323
|
- features/fixtures/html-slim/examples/html/document.html
|
325
|
-
- features/fixtures/html-slim/
|
326
|
-
- features/fixtures/html-slim/templates/block_quote.html.slim
|
324
|
+
- features/fixtures/html-slim/examples/html/quote.html
|
327
325
|
- features/fixtures/html-slim/templates/document.html.slim
|
328
326
|
- features/fixtures/html-slim/templates/embedded.html.slim
|
329
327
|
- features/fixtures/html-slim/templates/inline_quoted.html.slim
|
328
|
+
- features/fixtures/html-slim/templates/paragraph.html.slim
|
329
|
+
- features/fixtures/html-slim/templates/quote.html.slim
|
330
330
|
- features/generator_html.feature
|
331
331
|
- features/step_definitions/doctest_steps.rb
|
332
332
|
- features/support/env.rb
|
@@ -389,16 +389,16 @@ summary: Test suite for Asciidoctor backends
|
|
389
389
|
test_files:
|
390
390
|
- features/README
|
391
391
|
- features/fixtures/html-slim/Rakefile
|
392
|
-
- features/fixtures/html-slim/examples/asciidoc/block_quote.adoc
|
393
392
|
- features/fixtures/html-slim/examples/asciidoc/document.adoc
|
394
393
|
- features/fixtures/html-slim/examples/asciidoc/inline_quoted.adoc
|
395
|
-
- features/fixtures/html-slim/examples/
|
394
|
+
- features/fixtures/html-slim/examples/asciidoc/quote.adoc
|
396
395
|
- features/fixtures/html-slim/examples/html/document.html
|
397
|
-
- features/fixtures/html-slim/
|
398
|
-
- features/fixtures/html-slim/templates/block_quote.html.slim
|
396
|
+
- features/fixtures/html-slim/examples/html/quote.html
|
399
397
|
- features/fixtures/html-slim/templates/document.html.slim
|
400
398
|
- features/fixtures/html-slim/templates/embedded.html.slim
|
401
399
|
- features/fixtures/html-slim/templates/inline_quoted.html.slim
|
400
|
+
- features/fixtures/html-slim/templates/paragraph.html.slim
|
401
|
+
- features/fixtures/html-slim/templates/quote.html.slim
|
402
402
|
- features/generator_html.feature
|
403
403
|
- features/step_definitions/doctest_steps.rb
|
404
404
|
- features/support/env.rb
|