nronn 0.10.1.pre3 → 0.10.1.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS +1 -0
  3. data/CHANGES +8 -14
  4. data/Gemfile.lock +10 -10
  5. data/README.md +14 -10
  6. data/Rakefile +1 -1
  7. data/lib/ronn/template/default.html +1 -1
  8. data/lib/ronn.rb +4 -6
  9. data/man/index.html +8 -8
  10. data/man/ronn-format.7 +2 -2
  11. data/man/ronn.1 +3 -3
  12. data/man/ronn.1.ronn +1 -1
  13. data/nronn.gemspec +3 -64
  14. metadata +5 -71
  15. data/test/angle_bracket_syntax.html +0 -27
  16. data/test/angle_bracket_syntax.roff +0 -24
  17. data/test/angle_bracket_syntax.ronn +0 -22
  18. data/test/backticks.html +0 -14
  19. data/test/backticks.ronn +0 -10
  20. data/test/basic_document.html +0 -8
  21. data/test/basic_document.ronn +0 -4
  22. data/test/circumflexes.ronn +0 -1
  23. data/test/code_blocks.html +0 -38
  24. data/test/code_blocks.roff +0 -38
  25. data/test/code_blocks.ronn +0 -41
  26. data/test/code_blocks_regression +0 -19
  27. data/test/code_blocks_regression.html +0 -38
  28. data/test/code_blocks_regression.ronn +0 -40
  29. data/test/contest.rb +0 -70
  30. data/test/custom_title_document.html +0 -6
  31. data/test/custom_title_document.ronn +0 -5
  32. data/test/definition_list_syntax.html +0 -25
  33. data/test/definition_list_syntax.roff +0 -19
  34. data/test/definition_list_syntax.ronn +0 -18
  35. data/test/dots_at_line_start_test.roff +0 -19
  36. data/test/dots_at_line_start_test.ronn +0 -12
  37. data/test/ellipses.roff +0 -7
  38. data/test/ellipses.ronn +0 -7
  39. data/test/entity_encoding_test.html +0 -42
  40. data/test/entity_encoding_test.roff +0 -51
  41. data/test/entity_encoding_test.ronn +0 -34
  42. data/test/index.txt +0 -8
  43. data/test/markdown_syntax.html +0 -954
  44. data/test/markdown_syntax.roff +0 -907
  45. data/test/markdown_syntax.ronn +0 -881
  46. data/test/middle_paragraph.html +0 -14
  47. data/test/middle_paragraph.roff +0 -9
  48. data/test/middle_paragraph.ronn +0 -10
  49. data/test/missing_spaces.roff +0 -7
  50. data/test/missing_spaces.ronn +0 -2
  51. data/test/nested_list.ronn +0 -19
  52. data/test/nested_list_with_code.html +0 -14
  53. data/test/nested_list_with_code.roff +0 -11
  54. data/test/nested_list_with_code.ronn +0 -6
  55. data/test/ordered_list.html +0 -28
  56. data/test/ordered_list.roff +0 -25
  57. data/test/ordered_list.ronn +0 -21
  58. data/test/page.with.periods.in.name.5.ronn +0 -4
  59. data/test/pre_block_with_quotes.roff +0 -8
  60. data/test/pre_block_with_quotes.ronn +0 -6
  61. data/test/section_reference_links.html +0 -16
  62. data/test/section_reference_links.roff +0 -7
  63. data/test/section_reference_links.ronn +0 -12
  64. data/test/single_quotes.html +0 -11
  65. data/test/single_quotes.roff +0 -5
  66. data/test/single_quotes.ronn +0 -9
  67. data/test/tables.ronn +0 -24
  68. data/test/test_ronn.rb +0 -124
  69. data/test/test_ronn_document.rb +0 -186
  70. data/test/test_ronn_index.rb +0 -73
  71. data/test/titleless_document.html +0 -9
  72. data/test/titleless_document.ronn +0 -3
  73. data/test/underline_spacing_test.roff +0 -13
  74. 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 -->