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.
- checksums.yaml +4 -4
- data/AUTHORS +11 -7
- data/CHANGES +7 -1
- data/INSTALLING.md +29 -27
- data/LICENSE.txt +1 -1
- data/README.md +15 -9
- data/Rakefile +1 -1
- data/bin/ronn +1 -1
- data/lib/ronn/document.rb +4 -1
- data/lib/ronn/roff.rb +4 -0
- data/lib/ronn/template/default.html +1 -1
- data/lib/ronn.rb +4 -6
- data/man/index.html +14 -14
- data/man/index.txt +9 -9
- data/man/ronn-format.7 +2 -2
- data/man/ronn.1 +7 -7
- data/man/ronn.1.ronn +7 -6
- data/ronn-ng.gemspec +6 -69
- metadata +19 -80
- data/Gemfile +0 -2
- data/Gemfile.lock +0 -70
- data/test/angle_bracket_syntax.html +0 -27
- data/test/angle_bracket_syntax.roff +0 -24
- data/test/angle_bracket_syntax.ronn +0 -22
- data/test/backticks.html +0 -14
- data/test/backticks.ronn +0 -10
- data/test/basic_document.html +0 -8
- data/test/basic_document.ronn +0 -4
- data/test/circumflexes.ronn +0 -1
- data/test/code_blocks.html +0 -38
- data/test/code_blocks.roff +0 -38
- data/test/code_blocks.ronn +0 -41
- data/test/code_blocks_regression +0 -19
- data/test/code_blocks_regression.html +0 -38
- data/test/code_blocks_regression.ronn +0 -40
- data/test/contest.rb +0 -70
- data/test/custom_title_document.html +0 -6
- data/test/custom_title_document.ronn +0 -5
- data/test/definition_list_syntax.html +0 -25
- data/test/definition_list_syntax.roff +0 -19
- data/test/definition_list_syntax.ronn +0 -18
- data/test/dots_at_line_start_test.roff +0 -19
- data/test/dots_at_line_start_test.ronn +0 -12
- data/test/ellipses.roff +0 -7
- data/test/ellipses.ronn +0 -7
- data/test/entity_encoding_test.html +0 -42
- data/test/entity_encoding_test.roff +0 -51
- data/test/entity_encoding_test.ronn +0 -34
- data/test/index.txt +0 -8
- data/test/markdown_syntax.html +0 -954
- data/test/markdown_syntax.roff +0 -907
- data/test/markdown_syntax.ronn +0 -881
- data/test/middle_paragraph.html +0 -14
- data/test/middle_paragraph.roff +0 -9
- data/test/middle_paragraph.ronn +0 -10
- data/test/missing_spaces.roff +0 -7
- data/test/missing_spaces.ronn +0 -2
- data/test/nested_list.ronn +0 -19
- data/test/nested_list_with_code.html +0 -14
- data/test/nested_list_with_code.roff +0 -11
- data/test/nested_list_with_code.ronn +0 -6
- data/test/ordered_list.html +0 -28
- data/test/ordered_list.roff +0 -25
- data/test/ordered_list.ronn +0 -21
- data/test/page.with.periods.in.name.5.ronn +0 -4
- data/test/pre_block_with_quotes.roff +0 -8
- data/test/pre_block_with_quotes.ronn +0 -6
- data/test/section_reference_links.html +0 -16
- data/test/section_reference_links.roff +0 -7
- data/test/section_reference_links.ronn +0 -12
- data/test/single_quotes.html +0 -11
- data/test/single_quotes.roff +0 -5
- data/test/single_quotes.ronn +0 -9
- data/test/tables.ronn +0 -24
- data/test/test_ronn.rb +0 -124
- data/test/test_ronn_document.rb +0 -186
- data/test/test_ronn_index.rb +0 -73
- data/test/titleless_document.html +0 -9
- data/test/titleless_document.ronn +0 -3
- data/test/underline_spacing_test.roff +0 -13
- data/test/underline_spacing_test.ronn +0 -11
data/test/test_ronn_index.rb
DELETED
@@ -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><h1></code> element.</p>
|
9
|
-
</div>
|
@@ -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\.
|