ronn-ng 0.8.1 → 0.10.1.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES +32 -3
  3. data/Gemfile.lock +70 -0
  4. data/INSTALLING.md +2 -2
  5. data/README.md +40 -30
  6. data/Rakefile +4 -4
  7. data/bin/ronn +23 -11
  8. data/lib/ronn.rb +3 -8
  9. data/lib/ronn/document.rb +23 -12
  10. data/lib/ronn/index.rb +2 -4
  11. data/lib/ronn/roff.rb +18 -8
  12. data/lib/ronn/template.rb +1 -0
  13. data/man/ronn-format.7 +8 -8
  14. data/man/ronn.1 +24 -20
  15. data/man/ronn.1.ronn +10 -7
  16. data/ronn-ng.gemspec +23 -13
  17. data/test/angle_bracket_syntax.html +11 -1
  18. data/test/angle_bracket_syntax.roff +24 -0
  19. data/test/angle_bracket_syntax.ronn +10 -0
  20. data/test/code_blocks.html +38 -0
  21. data/test/code_blocks.roff +38 -0
  22. data/test/{code_blocks.7.ronn → code_blocks.ronn} +0 -0
  23. data/test/code_blocks_regression +19 -0
  24. data/test/code_blocks_regression.html +38 -0
  25. data/test/code_blocks_regression.ronn +40 -0
  26. data/test/definition_list_syntax.html +2 -2
  27. data/test/definition_list_syntax.roff +1 -1
  28. data/test/dots_at_line_start_test.roff +3 -3
  29. data/test/ellipses.roff +2 -2
  30. data/test/entity_encoding_test.html +20 -12
  31. data/test/entity_encoding_test.roff +26 -15
  32. data/test/entity_encoding_test.ronn +9 -0
  33. data/test/markdown_syntax.html +8 -10
  34. data/test/markdown_syntax.roff +49 -49
  35. data/test/middle_paragraph.roff +1 -1
  36. data/test/missing_spaces.roff +1 -1
  37. data/test/nested_list_with_code.html +6 -7
  38. data/test/nested_list_with_code.roff +4 -4
  39. data/test/ordered_list.html +8 -10
  40. data/test/ordered_list.roff +1 -1
  41. data/test/pre_block_with_quotes.roff +1 -1
  42. data/test/section_reference_links.roff +2 -2
  43. data/test/single_quotes.html +11 -0
  44. data/test/single_quotes.roff +5 -0
  45. data/test/single_quotes.ronn +9 -0
  46. data/test/test_ronn.rb +9 -9
  47. data/test/underline_spacing_test.roff +1 -1
  48. metadata +72 -61
  49. data/test/url_formatting.ronn +0 -3
@@ -1,4 +1,4 @@
1
- .TH "TEST" "1" "January 1979" "" ""
1
+ .TH "TEST" "1" "January 1979" ""
2
2
  .SH "NAME"
3
3
  \fBtest\fR \- just a ronn test
4
4
  .SH "TEST"
@@ -1,4 +1,4 @@
1
- .TH "MISSING_SPACES" "" "January 1979" "" ""
1
+ .TH "MISSING_SPACES" "" "January 1979" ""
2
2
  .SH "NAME"
3
3
  \fBmissing_spaces\fR
4
4
  .TP
@@ -2,14 +2,13 @@
2
2
 
3
3
  <h1 id="a-1-">a(1)</h1>
4
4
  <ul>
5
- <li>
5
+ <li>
6
6
  <code>toggle_status</code>
7
-
8
- <ul>
9
- <li>Toggle the display of the status bar.</li>
10
- </ul>
11
- </li>
12
- <li>
7
+ <ul>
8
+ <li>Toggle the display of the status bar.</li>
9
+ </ul>
10
+ </li>
11
+ <li>
13
12
  <code>spawn &lt;executable&gt; &lt;additional args&gt;</code> TODO explain path-alike expansion</li>
14
13
  </ul>
15
14
  </div>
@@ -1,11 +1,11 @@
1
- .TH "NESTED_LIST_WITH_CODE" "" "January 1979" "" ""
2
- .IP "\[ci]" 4
1
+ .TH "NESTED_LIST_WITH_CODE" "" "January 1979" ""
2
+ .IP "\(bu" 4
3
3
  \fBtoggle_status\fR
4
- .IP "\[ci]" 4
4
+ .IP "\(bu" 4
5
5
  Toggle the display of the status bar\.
6
6
  .IP "" 0
7
7
 
8
- .IP "\[ci]" 4
8
+ .IP "\(bu" 4
9
9
  \fBspawn <executable> <additional args>\fR TODO explain path\-alike expansion
10
10
  .IP "" 0
11
11
 
@@ -6,25 +6,23 @@
6
6
  <h3 id="One-item-list">One-item list</h3>
7
7
 
8
8
  <ol>
9
- <li>Hello, world!</li>
9
+ <li>Hello, world!</li>
10
10
  </ol>
11
11
 
12
-
13
12
  <h3 id="Three-item-list">Three-item list</h3>
14
13
 
15
14
  <ol>
16
- <li>Hello, world!</li>
17
- <li>Item 2</li>
18
- <li>Item 3</li>
15
+ <li>Hello, world!</li>
16
+ <li>Item 2</li>
17
+ <li>Item 3</li>
19
18
  </ol>
20
19
 
21
-
22
20
  <h3 id="Four-item-list-with-all-1s">Four-item list with all 1s</h3>
23
21
 
24
22
  <ol>
25
- <li>Item 1</li>
26
- <li>Item 2</li>
27
- <li>Item 3</li>
28
- <li>Item 4</li>
23
+ <li>Item 1</li>
24
+ <li>Item 2</li>
25
+ <li>Item 3</li>
26
+ <li>Item 4</li>
29
27
  </ol>
30
28
  </div>
@@ -1,4 +1,4 @@
1
- .TH "ORDERED_LIST" "" "January 1979" "" ""
1
+ .TH "ORDERED_LIST" "" "January 1979" ""
2
2
  .SH "Simple ordered lists"
3
3
  .SS "One\-item list"
4
4
  .IP "1." 4
@@ -1,4 +1,4 @@
1
- .TH "T" "1" "January 1979" "" ""
1
+ .TH "T" "1" "January 1979" ""
2
2
  .SH "NAME"
3
3
  \fBt\fR \- test
4
4
  .SH "test"
@@ -1,7 +1,7 @@
1
- .TH "SECTION_REFERENCE_LINKS" "1" "January 1979" "" ""
1
+ .TH "SECTION_REFERENCE_LINKS" "1" "January 1979" ""
2
2
  .SH "NAME"
3
3
  \fBsection_reference_links\fR \- linking to sections
4
4
  .SH "SECTION 1"
5
5
  See the following section\.
6
6
  .SH "SECTION 2"
7
- See \fI\%#SECTION\-1\fR or \fI\%#SECTION\-1\fR or even \fI\%#SECTION\-1\fR
7
+ See \fISECTION 1\fR or \fIto put it another way\fR or even \fIlike this\fR
@@ -0,0 +1,11 @@
1
+ <div class='mp'>
2
+
3
+ <h1 id="Single-quotes">Single quotes</h1>
4
+ <h2 id="Single-quote-at-beginning-of-line">Single quote at beginning of line</h2>
5
+
6
+ <p>'This phrase should appear as normal, starting with a single quote.'</p>
7
+
8
+ <h2 id="Quotes-in-middle-of-line">Quotes in middle of line</h2>
9
+
10
+ <p>When you've got single quotes (') in a line, they're regular quotes.</p>
11
+ </div>
@@ -0,0 +1,5 @@
1
+ .TH "SINGLE_QUOTES" "" "January 1979" ""
2
+ .SH "Single quote at beginning of line"
3
+ \&'This phrase should appear as normal, starting with a single quote\.'
4
+ .SH "Quotes in middle of line"
5
+ When you've got single quotes (') in a line, they're regular quotes\.
@@ -0,0 +1,9 @@
1
+ # Single quotes
2
+
3
+ ## Single quote at beginning of line
4
+
5
+ 'This phrase should appear as normal, starting with a single quote.'
6
+
7
+ ## Quotes in middle of line
8
+
9
+ When you've got single quotes (') in a line, they're regular quotes.
@@ -20,7 +20,7 @@ class RonnTest < Test::Unit::TestCase
20
20
  assert_equal 5, lines.size
21
21
  assert_equal %(.\\" generated with Ronn-NG/v#{Ronn.version}), lines.shift
22
22
  assert_equal %(.\\" http://github.com/apjanke/ronn-ng/tree/#{Ronn.revision}), lines.shift
23
- assert_equal %(.TH "HELLO" "1" "November 2009" "" ""), lines.shift
23
+ assert_equal %(.TH "HELLO" "1" "November 2009" ""), lines.shift
24
24
  assert_equal %(.SH "NAME"), lines.shift
25
25
  assert_equal %(\\fBhello\\fR \\- hello world), lines.shift
26
26
  assert_equal 0, lines.size
@@ -88,10 +88,10 @@ class RonnTest < Test::Unit::TestCase
88
88
  test File.basename(source, '.ronn') + ' HTML' do
89
89
  output = `ronn --pipe --html --fragment #{source}`
90
90
  expected = begin
91
- File.read(dest)
92
- rescue IOError
93
- ''
94
- end
91
+ File.read(dest)
92
+ rescue IOError
93
+ ''
94
+ end
95
95
  if expected != output
96
96
  flunk_with_diff(dest, wrong, output)
97
97
  elsif File.exist?(wrong)
@@ -110,10 +110,10 @@ class RonnTest < Test::Unit::TestCase
110
110
  output = `ronn --pipe --roff --date=1979-01-01 #{source}`
111
111
  .split("\n", 3).last # remove ronn version comments
112
112
  expected = begin
113
- File.read(dest)
114
- rescue IOError
115
- ''
116
- end
113
+ File.read(dest)
114
+ rescue IOError
115
+ ''
116
+ end
117
117
  if expected != output
118
118
  flunk_with_diff(dest, wrong, output)
119
119
  elsif File.exist?(wrong)
@@ -1,4 +1,4 @@
1
- .TH "UNDERLINE_SPACING_TEST" "" "January 1979" "" ""
1
+ .TH "UNDERLINE_SPACING_TEST" "" "January 1979" ""
2
2
  .SH "NAME"
3
3
  \fBunderline_spacing_test\fR
4
4
  .P
metadata CHANGED
@@ -1,175 +1,177 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronn-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.10.1.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Janke
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-05 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: mustache
14
+ name: kramdown
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.7.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '0.7'
19
+ version: '2.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.7.0
30
24
  - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '0.7'
26
+ version: '2.1'
33
27
  - !ruby/object:Gem::Dependency
34
- name: nokogiri
28
+ name: kramdown-parser-gfm
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 1.9.0
40
31
  - - "~>"
41
32
  - !ruby/object:Gem::Version
42
- version: '1.9'
33
+ version: 1.0.1
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - ">="
38
+ - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: 1.9.0
40
+ version: 1.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: mustache
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
50
45
  - - "~>"
51
46
  - !ruby/object:Gem::Version
52
- version: '1.9'
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
53
55
  - !ruby/object:Gem::Dependency
54
- name: rdiscount
56
+ name: nokogiri
55
57
  requirement: !ruby/object:Gem::Requirement
56
58
  requirements:
57
59
  - - "~>"
58
60
  - !ruby/object:Gem::Version
59
- version: '2.0'
61
+ version: '1.9'
60
62
  - - ">="
61
63
  - !ruby/object:Gem::Version
62
- version: 2.0.7
64
+ version: 1.9.0
63
65
  type: :runtime
64
66
  prerelease: false
65
67
  version_requirements: !ruby/object:Gem::Requirement
66
68
  requirements:
67
69
  - - "~>"
68
70
  - !ruby/object:Gem::Version
69
- version: '2.0'
71
+ version: '1.9'
70
72
  - - ">="
71
73
  - !ruby/object:Gem::Version
72
- version: 2.0.7
74
+ version: 1.9.0
73
75
  - !ruby/object:Gem::Dependency
74
76
  name: rack
75
77
  requirement: !ruby/object:Gem::Requirement
76
78
  requirements:
77
79
  - - "~>"
78
80
  - !ruby/object:Gem::Version
79
- version: '2.0'
81
+ version: '2.2'
80
82
  - - ">="
81
83
  - !ruby/object:Gem::Version
82
- version: 2.0.6
84
+ version: 2.2.3
83
85
  type: :development
84
86
  prerelease: false
85
87
  version_requirements: !ruby/object:Gem::Requirement
86
88
  requirements:
87
89
  - - "~>"
88
90
  - !ruby/object:Gem::Version
89
- version: '2.0'
91
+ version: '2.2'
90
92
  - - ">="
91
93
  - !ruby/object:Gem::Version
92
- version: 2.0.6
94
+ version: 2.2.3
93
95
  - !ruby/object:Gem::Dependency
94
96
  name: rake
95
97
  requirement: !ruby/object:Gem::Requirement
96
98
  requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: 12.3.0
100
99
  - - "~>"
101
100
  - !ruby/object:Gem::Version
102
101
  version: '12.3'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 12.3.3
103
105
  type: :development
104
106
  prerelease: false
105
107
  version_requirements: !ruby/object:Gem::Requirement
106
108
  requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 12.3.0
110
109
  - - "~>"
111
110
  - !ruby/object:Gem::Version
112
111
  version: '12.3'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 12.3.3
113
115
  - !ruby/object:Gem::Dependency
114
116
  name: rubocop
115
117
  requirement: !ruby/object:Gem::Requirement
116
118
  requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: 0.57.1
120
119
  - - "~>"
121
120
  - !ruby/object:Gem::Version
122
- version: '0.60'
121
+ version: '0.88'
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 0.88.0
123
125
  type: :development
124
126
  prerelease: false
125
127
  version_requirements: !ruby/object:Gem::Requirement
126
128
  requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: 0.57.1
130
129
  - - "~>"
131
130
  - !ruby/object:Gem::Version
132
- version: '0.60'
131
+ version: '0.88'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 0.88.0
133
135
  - !ruby/object:Gem::Dependency
134
136
  name: sinatra
135
137
  requirement: !ruby/object:Gem::Requirement
136
138
  requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- version: 2.0.0
140
139
  - - "~>"
141
140
  - !ruby/object:Gem::Version
142
141
  version: '2.0'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 2.0.8
143
145
  type: :development
144
146
  prerelease: false
145
147
  version_requirements: !ruby/object:Gem::Requirement
146
148
  requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- version: 2.0.0
150
149
  - - "~>"
151
150
  - !ruby/object:Gem::Version
152
151
  version: '2.0'
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 2.0.8
153
155
  - !ruby/object:Gem::Dependency
154
156
  name: test-unit
155
157
  requirement: !ruby/object:Gem::Requirement
156
158
  requirements:
157
159
  - - "~>"
158
160
  - !ruby/object:Gem::Version
159
- version: '3.2'
161
+ version: '3.3'
160
162
  - - ">="
161
163
  - !ruby/object:Gem::Version
162
- version: 3.2.7
164
+ version: 3.3.6
163
165
  type: :development
164
166
  prerelease: false
165
167
  version_requirements: !ruby/object:Gem::Requirement
166
168
  requirements:
167
169
  - - "~>"
168
170
  - !ruby/object:Gem::Version
169
- version: '3.2'
171
+ version: '3.3'
170
172
  - - ">="
171
173
  - !ruby/object:Gem::Version
172
- version: 3.2.7
174
+ version: 3.3.6
173
175
  description: Ronn-NG builds manuals in HTML and Unix man page format from Markdown.
174
176
  email: floss@apjanke.net
175
177
  executables:
@@ -182,6 +184,7 @@ files:
182
184
  - AUTHORS
183
185
  - CHANGES
184
186
  - Gemfile
187
+ - Gemfile.lock
185
188
  - INSTALLING.md
186
189
  - LICENSE.txt
187
190
  - README.md
@@ -213,13 +216,19 @@ files:
213
216
  - man/ronn.1.ronn
214
217
  - ronn-ng.gemspec
215
218
  - test/angle_bracket_syntax.html
219
+ - test/angle_bracket_syntax.roff
216
220
  - test/angle_bracket_syntax.ronn
217
221
  - test/backticks.html
218
222
  - test/backticks.ronn
219
223
  - test/basic_document.html
220
224
  - test/basic_document.ronn
221
225
  - test/circumflexes.ronn
222
- - test/code_blocks.7.ronn
226
+ - test/code_blocks.html
227
+ - test/code_blocks.roff
228
+ - test/code_blocks.ronn
229
+ - test/code_blocks_regression
230
+ - test/code_blocks_regression.html
231
+ - test/code_blocks_regression.ronn
223
232
  - test/contest.rb
224
233
  - test/custom_title_document.html
225
234
  - test/custom_title_document.ronn
@@ -255,6 +264,9 @@ files:
255
264
  - test/section_reference_links.html
256
265
  - test/section_reference_links.roff
257
266
  - test/section_reference_links.ronn
267
+ - test/single_quotes.html
268
+ - test/single_quotes.roff
269
+ - test/single_quotes.ronn
258
270
  - test/tables.ronn
259
271
  - test/test_ronn.rb
260
272
  - test/test_ronn_document.rb
@@ -263,7 +275,6 @@ files:
263
275
  - test/titleless_document.ronn
264
276
  - test/underline_spacing_test.roff
265
277
  - test/underline_spacing_test.ronn
266
- - test/url_formatting.ronn
267
278
  homepage: https://github.com/apjanke/ronn-ng
268
279
  licenses:
269
280
  - MIT
@@ -271,7 +282,7 @@ metadata:
271
282
  bug_tracker_uri: https://github.com/apjanke/ronn-ng/issues
272
283
  source_code_uri: https://github.com/apjanke/ronn-ng
273
284
  changelog_uri: https://github.com/apjanke/ronn-ng/blob/master/CHANGES
274
- post_install_message:
285
+ post_install_message:
275
286
  rdoc_options:
276
287
  - "--line-numbers"
277
288
  - "--inline-source"
@@ -283,15 +294,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
283
294
  requirements:
284
295
  - - ">="
285
296
  - !ruby/object:Gem::Version
286
- version: '0'
297
+ version: '2.4'
287
298
  required_rubygems_version: !ruby/object:Gem::Requirement
288
299
  requirements:
289
- - - ">="
300
+ - - ">"
290
301
  - !ruby/object:Gem::Version
291
- version: '0'
302
+ version: 1.3.1
292
303
  requirements: []
293
- rubygems_version: 3.0.2
294
- signing_key:
304
+ rubygems_version: 3.1.4
305
+ signing_key:
295
306
  specification_version: 4
296
307
  summary: Builds man pages from Markdown
297
308
  test_files: []