ronn-ng 0.10.1.pre1 → 0.10.1.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS +11 -7
  3. data/CHANGES +7 -1
  4. data/INSTALLING.md +29 -27
  5. data/LICENSE.txt +1 -1
  6. data/README.md +15 -9
  7. data/Rakefile +1 -1
  8. data/bin/ronn +1 -1
  9. data/lib/ronn/document.rb +4 -1
  10. data/lib/ronn/roff.rb +4 -0
  11. data/lib/ronn/template/default.html +1 -1
  12. data/lib/ronn.rb +4 -6
  13. data/man/index.html +14 -14
  14. data/man/index.txt +9 -9
  15. data/man/ronn-format.7 +2 -2
  16. data/man/ronn.1 +7 -7
  17. data/man/ronn.1.ronn +7 -6
  18. data/ronn-ng.gemspec +6 -69
  19. metadata +19 -80
  20. data/Gemfile +0 -2
  21. data/Gemfile.lock +0 -70
  22. data/test/angle_bracket_syntax.html +0 -27
  23. data/test/angle_bracket_syntax.roff +0 -24
  24. data/test/angle_bracket_syntax.ronn +0 -22
  25. data/test/backticks.html +0 -14
  26. data/test/backticks.ronn +0 -10
  27. data/test/basic_document.html +0 -8
  28. data/test/basic_document.ronn +0 -4
  29. data/test/circumflexes.ronn +0 -1
  30. data/test/code_blocks.html +0 -38
  31. data/test/code_blocks.roff +0 -38
  32. data/test/code_blocks.ronn +0 -41
  33. data/test/code_blocks_regression +0 -19
  34. data/test/code_blocks_regression.html +0 -38
  35. data/test/code_blocks_regression.ronn +0 -40
  36. data/test/contest.rb +0 -70
  37. data/test/custom_title_document.html +0 -6
  38. data/test/custom_title_document.ronn +0 -5
  39. data/test/definition_list_syntax.html +0 -25
  40. data/test/definition_list_syntax.roff +0 -19
  41. data/test/definition_list_syntax.ronn +0 -18
  42. data/test/dots_at_line_start_test.roff +0 -19
  43. data/test/dots_at_line_start_test.ronn +0 -12
  44. data/test/ellipses.roff +0 -7
  45. data/test/ellipses.ronn +0 -7
  46. data/test/entity_encoding_test.html +0 -42
  47. data/test/entity_encoding_test.roff +0 -51
  48. data/test/entity_encoding_test.ronn +0 -34
  49. data/test/index.txt +0 -8
  50. data/test/markdown_syntax.html +0 -954
  51. data/test/markdown_syntax.roff +0 -907
  52. data/test/markdown_syntax.ronn +0 -881
  53. data/test/middle_paragraph.html +0 -14
  54. data/test/middle_paragraph.roff +0 -9
  55. data/test/middle_paragraph.ronn +0 -10
  56. data/test/missing_spaces.roff +0 -7
  57. data/test/missing_spaces.ronn +0 -2
  58. data/test/nested_list.ronn +0 -19
  59. data/test/nested_list_with_code.html +0 -14
  60. data/test/nested_list_with_code.roff +0 -11
  61. data/test/nested_list_with_code.ronn +0 -6
  62. data/test/ordered_list.html +0 -28
  63. data/test/ordered_list.roff +0 -25
  64. data/test/ordered_list.ronn +0 -21
  65. data/test/page.with.periods.in.name.5.ronn +0 -4
  66. data/test/pre_block_with_quotes.roff +0 -8
  67. data/test/pre_block_with_quotes.ronn +0 -6
  68. data/test/section_reference_links.html +0 -16
  69. data/test/section_reference_links.roff +0 -7
  70. data/test/section_reference_links.ronn +0 -12
  71. data/test/single_quotes.html +0 -11
  72. data/test/single_quotes.roff +0 -5
  73. data/test/single_quotes.ronn +0 -9
  74. data/test/tables.ronn +0 -24
  75. data/test/test_ronn.rb +0 -124
  76. data/test/test_ronn_document.rb +0 -186
  77. data/test/test_ronn_index.rb +0 -73
  78. data/test/titleless_document.html +0 -9
  79. data/test/titleless_document.ronn +0 -3
  80. data/test/underline_spacing_test.roff +0 -13
  81. data/test/underline_spacing_test.ronn +0 -11
@@ -1,73 +0,0 @@
1
- require 'contest'
2
- require 'ronn'
3
-
4
- class IndexTest < Test::Unit::TestCase
5
- setup do
6
- @index_path = File.expand_path('index.txt', __dir__)
7
- @missing_path = File.expand_path('missing-index.txt', __dir__)
8
- end
9
-
10
- def expand_path(path, rel = File.dirname(__FILE__))
11
- File.expand_path(path, rel)
12
- end
13
-
14
- test 'creating with a non-existent file' do
15
- index = Ronn::Index.new(@missing_path)
16
- assert_equal @missing_path, index.path
17
- assert_equal 0, index.size
18
- assert index.empty?
19
- end
20
-
21
- test 'creating with an index file and no block' do
22
- index = Ronn::Index.new(@index_path)
23
- assert_equal 3, index.size
24
- assert_equal 2, index.manuals.size
25
-
26
- ref = index.references[0]
27
- assert_equal 'basic_document(7)', ref.name
28
- assert_equal 'basic_document.ronn', ref.location
29
- assert_equal 'basic_document.html', ref.url
30
- assert_equal expand_path('basic_document.ronn'), ref.path
31
- assert ref.manual?
32
- assert ref.ronn?
33
- assert !ref.remote?
34
-
35
- ref = index.references[1]
36
- assert_equal 'definition_list_syntax(5)', ref.name
37
- assert_equal 'definition_list_syntax.ronn', ref.location
38
- assert_equal 'definition_list_syntax.html', ref.url
39
- assert_equal expand_path('definition_list_syntax.ronn'), ref.path
40
-
41
- ref = index.references[2]
42
- assert_equal 'grep(1)', ref.name
43
- assert_equal 'http://man.cx/grep(1)', ref.url
44
- assert ref.manual?
45
- assert ref.remote?
46
- assert !ref.ronn?
47
- end
48
-
49
- test 'creating with a block reader' do
50
- index = Ronn::Index.new(@index_path) { 'hello(1) hello.1.ronn' }
51
- assert_equal @index_path, index.path
52
- assert_equal 1, index.size
53
- ref = index.first
54
- assert_equal 'hello(1)', ref.name
55
- assert_equal 'hello.1.ronn', ref.location
56
- assert_equal 'hello.1.html', ref.url
57
- assert_equal expand_path('hello.1.ronn'), ref.path
58
- end
59
-
60
- test 'adding manual paths' do
61
- index = Ronn::Index.new(@index_path)
62
- index << expand_path('angle_bracket_syntax.ronn')
63
- assert_equal 'angle_bracket_syntax(5)', index.last.name
64
- assert_equal expand_path('angle_bracket_syntax.ronn'), index.last.path
65
- end
66
-
67
- test 'adding manual paths that are already present' do
68
- index = Ronn::Index.new(@index_path)
69
- size = index.size
70
- index << expand_path('basic_document.ronn')
71
- assert_equal size, index.size
72
- end
73
- end
@@ -1,9 +0,0 @@
1
- <div class='mp'>
2
- <h2 id="NAME">NAME</h2>
3
- <p class="man-name">
4
- <code>titleless_document</code>
5
- </p>
6
- <p>This is a document without a level 1 heading. It generates
7
- a <code>NAME</code> section from the filename but does not include an
8
- <code>&lt;h1&gt;</code> element.</p>
9
- </div>
@@ -1,3 +0,0 @@
1
- This is a document without a level 1 heading. It generates
2
- a `NAME` section from the filename but does not include an
3
- `<h1>` element.
@@ -1,13 +0,0 @@
1
- .TH "UNDERLINE_SPACING_TEST" "" "January 1979" ""
2
- .SH "NAME"
3
- \fBunderline_spacing_test\fR
4
- .P
5
- This input
6
- .TP
7
- \fB\-S\fR \fItext\fR, \fBsearch\fR \fItext\fR
8
- Performs a substring search of formula names for \fItext\fR\.
9
- .TP
10
- \fB\-O\fR \fItext\fR, \fBother\fR \fItext\fR
11
- Does something else\.
12
- .P
13
- Should space text properly\.
@@ -1,11 +0,0 @@
1
- This input
2
-
3
- * `-S` _text_, `search` _text_:
4
- Performs a substring search of formula names for _text_.
5
-
6
- * `-O` <text>, `other` <text>:
7
- Does something else.
8
-
9
- Should space text properly.
10
-
11
- <!-- this is a comment -->