nronn 0.10.1.pre3 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS +1 -0
  3. data/CHANGES +8 -14
  4. data/README.md +14 -10
  5. data/Rakefile +1 -1
  6. data/lib/ronn/template/default.html +1 -1
  7. data/lib/ronn.rb +4 -6
  8. data/man/index.html +8 -8
  9. data/man/ronn-format.7 +3 -3
  10. data/man/ronn.1 +4 -4
  11. data/man/ronn.1.ronn +1 -1
  12. data/nronn.gemspec +5 -68
  13. metadata +13 -78
  14. data/Gemfile +0 -2
  15. data/Gemfile.lock +0 -72
  16. data/test/angle_bracket_syntax.html +0 -27
  17. data/test/angle_bracket_syntax.roff +0 -24
  18. data/test/angle_bracket_syntax.ronn +0 -22
  19. data/test/backticks.html +0 -14
  20. data/test/backticks.ronn +0 -10
  21. data/test/basic_document.html +0 -8
  22. data/test/basic_document.ronn +0 -4
  23. data/test/circumflexes.ronn +0 -1
  24. data/test/code_blocks.html +0 -38
  25. data/test/code_blocks.roff +0 -38
  26. data/test/code_blocks.ronn +0 -41
  27. data/test/code_blocks_regression +0 -19
  28. data/test/code_blocks_regression.html +0 -38
  29. data/test/code_blocks_regression.ronn +0 -40
  30. data/test/contest.rb +0 -70
  31. data/test/custom_title_document.html +0 -6
  32. data/test/custom_title_document.ronn +0 -5
  33. data/test/definition_list_syntax.html +0 -25
  34. data/test/definition_list_syntax.roff +0 -19
  35. data/test/definition_list_syntax.ronn +0 -18
  36. data/test/dots_at_line_start_test.roff +0 -19
  37. data/test/dots_at_line_start_test.ronn +0 -12
  38. data/test/ellipses.roff +0 -7
  39. data/test/ellipses.ronn +0 -7
  40. data/test/entity_encoding_test.html +0 -42
  41. data/test/entity_encoding_test.roff +0 -51
  42. data/test/entity_encoding_test.ronn +0 -34
  43. data/test/index.txt +0 -8
  44. data/test/markdown_syntax.html +0 -954
  45. data/test/markdown_syntax.roff +0 -907
  46. data/test/markdown_syntax.ronn +0 -881
  47. data/test/middle_paragraph.html +0 -14
  48. data/test/middle_paragraph.roff +0 -9
  49. data/test/middle_paragraph.ronn +0 -10
  50. data/test/missing_spaces.roff +0 -7
  51. data/test/missing_spaces.ronn +0 -2
  52. data/test/nested_list.ronn +0 -19
  53. data/test/nested_list_with_code.html +0 -14
  54. data/test/nested_list_with_code.roff +0 -11
  55. data/test/nested_list_with_code.ronn +0 -6
  56. data/test/ordered_list.html +0 -28
  57. data/test/ordered_list.roff +0 -25
  58. data/test/ordered_list.ronn +0 -21
  59. data/test/page.with.periods.in.name.5.ronn +0 -4
  60. data/test/pre_block_with_quotes.roff +0 -8
  61. data/test/pre_block_with_quotes.ronn +0 -6
  62. data/test/section_reference_links.html +0 -16
  63. data/test/section_reference_links.roff +0 -7
  64. data/test/section_reference_links.ronn +0 -12
  65. data/test/single_quotes.html +0 -11
  66. data/test/single_quotes.roff +0 -5
  67. data/test/single_quotes.ronn +0 -9
  68. data/test/tables.ronn +0 -24
  69. data/test/test_ronn.rb +0 -124
  70. data/test/test_ronn_document.rb +0 -186
  71. data/test/test_ronn_index.rb +0 -73
  72. data/test/titleless_document.html +0 -9
  73. data/test/titleless_document.ronn +0 -3
  74. data/test/underline_spacing_test.roff +0 -13
  75. 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 -->