ronn-ng 0.10.0.pre.SNAPSHOT → 0.10.1.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS +11 -7
  3. data/CHANGES +12 -1
  4. data/INSTALLING.md +29 -27
  5. data/LICENSE.txt +1 -1
  6. data/README.md +48 -32
  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 +8 -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 +7 -7
  16. data/man/ronn.1 +25 -25
  17. data/man/ronn.1.ronn +7 -6
  18. data/ronn-ng.gemspec +6 -59
  19. metadata +19 -70
  20. data/Gemfile +0 -2
  21. data/test/angle_bracket_syntax.html +0 -27
  22. data/test/angle_bracket_syntax.ronn +0 -22
  23. data/test/backticks.html +0 -14
  24. data/test/backticks.ronn +0 -10
  25. data/test/basic_document.html +0 -8
  26. data/test/basic_document.ronn +0 -4
  27. data/test/circumflexes.ronn +0 -1
  28. data/test/code_blocks.ronn +0 -41
  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/tables.ronn +0 -24
  65. data/test/test_ronn.rb +0 -124
  66. data/test/test_ronn_document.rb +0 -186
  67. data/test/test_ronn_index.rb +0 -73
  68. data/test/titleless_document.html +0 -9
  69. data/test/titleless_document.ronn +0 -3
  70. data/test/underline_spacing_test.roff +0 -13
  71. data/test/underline_spacing_test.ronn +0 -11
data/man/ronn.1 CHANGED
@@ -1,6 +1,6 @@
1
- .\" generated with Ronn-NG/v0.9.1
2
- .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
3
- .TH "RONN" "1" "January 2020" "Ronn-NG 0.9.1" "Ronn Manual"
1
+ .\" generated with Ronn-NG/v0.10.1
2
+ .\" http://github.com/apjanke/ronn-ng/tree/0.10.1.pre2
3
+ .TH "RONN" "1" "January 2023" "Ronn-NG 0.10.1.pre2" "Ronn Manual"
4
4
  .SH "NAME"
5
5
  \fBronn\fR \- convert markdown files to manpages
6
6
  .SH "SYNOPSIS"
@@ -24,29 +24,29 @@ The \fB\-\-server\fR and \fB\-\-man\fR options change the output behavior from f
24
24
  .P
25
25
  With no \fIfile\fR arguments, \fBronn\fR acts as simple filter\. Ronn source text is read from standard input and roff output is written to standard output\. Use the \fB\-\-html\fR, \fB\-\-roff\fR, and/or \fB\-\-fragment\fR options to select the output format\.
26
26
  .SH "FILES"
27
- The \fBronn\fR command expects input to be valid ronn\-format(7) text\. Source files are typically named \fIname\fR\.\fIsection\fR\.ronn (e\.g\., \fBexample\.1\.ronn\fR)\. The \fIname\fR and \fIsection\fR should match the name and section defined in the \fIfile\fR\'s heading\.
27
+ The \fBronn\fR command expects input to be valid ronn\-format(7) text\. Source files are typically named \fIname\fR\.\fIsection\fR\.ronn (e\.g\., \fBexample\.1\.ronn\fR)\. The \fIname\fR and \fIsection\fR should match the name and section defined in the \fIfile\fR's heading\.
28
28
  .P
29
29
  Source files must be in UTF\-8 encoding, or the encoding specified by the \fB\-E\fR/\fB\-\-encoding\fR option, regardless of the locale that \fBronn\fR is running under\.
30
30
  .P
31
31
  When building roff or HTML output files, destination filenames are determined by taking the basename of the input \fIfile\fR and adding the appropriate file extension (or removing the file extension in the case of roff output)\. For example, executing \fBronn example\.1\.ronn\fR generates \fBexample\.1\fR with roff output and \fBexample\.1\.html\fR with HTML output\.
32
32
  .SH "OPTIONS"
33
33
  These options control whether output is written to file(s), standard output, or directly to a man pager\.
34
- .IP "\[ci]" 4
35
- \fB\-m\fR, \fB\-\-man\fR: Don\'t generate files, display \fIfile\fRs as if man(1) were invoked on the roff output file\. This simulates default man behavior by piping the roff output through groff(1) and the paging program specified by the \fBMANPAGER\fR environment variable\.
36
- .IP "\[ci]" 4
37
- \fB\-S\fR, \fB\-\-server\fR: Don\'t generate files, start an HTTP server at \fIhttp://localhost:1207/\fR and serve dynamically generated HTML for the set of input \fIfile\fRs\. A file named \fIexample\.2\.ronn\fR is served as \fI/example\.2\.html\fR\. There\'s also an index page at the root with links to each \fIfile\fR\.
34
+ .IP "\(bu" 4
35
+ \fB\-m\fR, \fB\-\-man\fR: Don't generate files, display \fIfile\fRs as if man(1) were invoked on the roff output file\. This simulates default man behavior by piping the roff output through groff(1) and the paging program specified by the \fBMANPAGER\fR environment variable\.
36
+ .IP "\(bu" 4
37
+ \fB\-S\fR, \fB\-\-server\fR: Don't generate files, start an HTTP server at \fIhttp://localhost:1207/\fR and serve dynamically generated HTML for the set of input \fIfile\fRs\. A file named \fIexample\.2\.ronn\fR is served as \fI/example\.2\.html\fR\. There's also an index page at the root with links to each \fIfile\fR\.
38
38
  .IP
39
39
  The server respects the \fB\-\-style\fR and document attribute options (\fB\-\-manual\fR, \fB\-\-date\fR, etc\.)\. These same options can be varied at request time by giving them as query parameters: \fB?manual=FOO&style=dark,toc\fR
40
40
  .IP
41
41
  \fINOTE: The builtin server is designed to assist in the process of writing and styling manuals\. It is in no way recommended as a general purpose web server\.\fR
42
- .IP "\[ci]" 4
42
+ .IP "\(bu" 4
43
43
  \fB\-\-port\fR=\fIport\fR When used with \fB\-S\fR/\fB\-\-server\fR, runs the server at the specified port instead of the default port 1207\.
44
- .IP "\[ci]" 4
45
- \fB\-\-pipe\fR: Don\'t generate files, write generated output to standard output\. This is the default behavior when ronn source text is piped in on standard input and no \fIfile\fR arguments are provided\.
46
- .IP "\[ci]" 4
44
+ .IP "\(bu" 4
45
+ \fB\-\-pipe\fR: Don't generate files, write generated output to standard output\. This is the default behavior when ronn source text is piped in on standard input and no \fIfile\fR arguments are provided\.
46
+ .IP "\(bu" 4
47
47
  \fB\-o\fR=\fIdirectory\fR, \fB\-\-output\-dir\fR=\fIdirectory\fR: Write generated files to the specified directory instead of the default location\.
48
- .IP "\[ci]" 4
49
- \fB\-E\fR=\fIencoding\fR, \fB\-\-encoding\fR=<encoding: Specify the encoding that input files are in\. Default is UTF\-8, regardless of user\'s locale settings\. Input sent to STDIN is always treated as UTF\-8, regardless of whether \fB\-E\fR is passed\.
48
+ .IP "\(bu" 4
49
+ \fB\-E\fR=\fIencoding\fR, \fB\-\-encoding\fR=<encoding: Specify the encoding that input files are in\. Default is UTF\-8, regardless of user's locale settings\. Input sent to STDIN is always treated as UTF\-8, regardless of whether \fB\-E\fR is passed\.
50
50
  .IP "" 0
51
51
  .P
52
52
  Format options control the files \fBronn\fR generates, or the output format when the \fB\-\-pipe\fR argument is specified\. When no format options are given, both \fB\-\-roff\fR and \fB\-\-html\fR are assumed\.
@@ -69,7 +69,7 @@ The name of the manual this man page belongs to; \fImanual\fR is prominently dis
69
69
  The name of the group, organization, or individual responsible for publishing the document; \fIname\fR is displayed in the bottom\-left footer area\.
70
70
  .TP
71
71
  \fB\-\-date\fR=\fIdate\fR
72
- The document\'s published date; \fIdate\fR must be formatted \fBYYYY\-MM\-DD\fR and is displayed in the bottom\-center footer area\. The \fIfile\fR mtime is used when no \fIdate\fR is given, or the current time when no \fIfile\fR is available\.
72
+ The document's published date; \fIdate\fR must be formatted \fBYYYY\-MM\-DD\fR and is displayed in the bottom\-center footer area\. The \fIfile\fR mtime is used when no \fIdate\fR is given, or the current time when no \fIfile\fR is available\.
73
73
  .P
74
74
  HTML output can be customized through the use of CSS stylesheets:
75
75
  .TP
@@ -85,7 +85,7 @@ Internal styles are \fIman\fR (included by default), \fItoc\fR, and \fI80c\fR\.
85
85
  Miscellaneous options:
86
86
  .TP
87
87
  \fB\-w\fR, \fB\-\-warnings\fR
88
- Show troff warnings on standard error when performing roff conversion\. Warnings are most often the result of a bug in ronn\'s HTML to roff conversion logic\.
88
+ Show troff warnings on standard error when performing roff conversion\. Warnings are most often the result of a bug in ronn's HTML to roff conversion logic\.
89
89
  .TP
90
90
  \fB\-W\fR
91
91
  Disable troff warnings\. Warnings are disabled by default\. This option can be used to revert the effect of a previous \fB\-w\fR argument\.
@@ -93,7 +93,7 @@ Disable troff warnings\. Warnings are disabled by default\. This option can be u
93
93
  \fB\-v\fR, \fB\-\-version\fR
94
94
  Show ronn version and exit\.
95
95
  .SH "LINK INDEXES"
96
- When generating HTML output, \fBronn\fR hyperlinks manual references (like \fBgrep(1)\fR, \fBls(1)\fR, \fBmarkdown(7)\fR) in source text based on reference name to URL mappings defined in an \fBindex\.txt\fR file\. Each line of the index file describes a single reference link, with whitespace separating the reference\'s \fIid\fR from its \fIlocation\fR\. Blank lines are allowed; lines beginning with a \fB#\fR character are ignored:
96
+ When generating HTML output, \fBronn\fR hyperlinks manual references (like \fBgrep(1)\fR, \fBls(1)\fR, \fBmarkdown(7)\fR) in source text based on reference name to URL mappings defined in an \fBindex\.txt\fR file\. Each line of the index file describes a single reference link, with whitespace separating the reference's \fIid\fR from its \fIlocation\fR\. Blank lines are allowed; lines beginning with a \fB#\fR character are ignored:
97
97
  .IP "" 4
98
98
  .nf
99
99
  # manuals included in this project:
@@ -101,17 +101,17 @@ whisky(1) whisky\.1\.ronn
101
101
  tango(5) tango\.5\.ronn
102
102
 
103
103
  # external manuals
104
- grep(1) http://man\.cx/grep(1)
105
- ls(1) http://man\.cx/ls(1)
104
+ grep(1) https://man7\.org/linux/man\-pages/man1/grep\.1\.html
105
+ ls(1) https://man7\.org/linux/man\-pages/man1/ls\.1\.html
106
106
 
107
107
  # other URLs for use with markdown reference links
108
- src http://github\.com/
108
+ src https://github\.com/
109
109
  .fi
110
110
  .IP "" 0
111
111
  .P
112
- The \fIlocation\fR is an absolute or relative URL that usually points at an HTML version of manpage\. It\'s possible to define references for things that aren\'t manpages\.
112
+ The \fIlocation\fR is an absolute or relative URL that usually points at an HTML version of manpage\. It's possible to define references for things that aren't manpages\.
113
113
  .P
114
- All manuals in an individual directory share the references defined in that directory\'s \fBindex\.txt\fR file\. Index references may be used explicitly in Markdown reference style links using the syntax: \fB[\fR\fItext\fR\fB][\fR\fIid\fR\fB]\fR, where \fItext\fR is the link text and \fIid\fR is a reference name defined in the index\.
114
+ All manuals in an individual directory share the references defined in that directory's \fBindex\.txt\fR file\. Index references may be used explicitly in Markdown reference style links using the syntax: \fB[\fR\fItext\fR\fB][\fR\fIid\fR\fB]\fR, where \fItext\fR is the link text and \fIid\fR is a reference name defined in the index\.
115
115
  .SH "STYLES"
116
116
  The \fB\-\-style\fR option selects a list of CSS stylesheets to include in the generated HTML\. Styles are applied in the order defined, so each can use the cascade to override previously defined styles\.
117
117
  .SS "Builtin Stylesheets"
@@ -149,7 +149,7 @@ The heading and footing, respectively\.
149
149
  \fB\.man\-title\fR
150
150
  The main \fB<h1>\fR element\. Hidden by default unless the manual has no \fIname\fR or \fIsection\fR attributes\.
151
151
  .P
152
- See the builtin style sources \fIhttp://github\.com/apjanke/ronn\-ng/tree/master/lib/ronn/template\fR for examples\.
152
+ See the builtin style sources \fIhttps://github\.com/apjanke/ronn\-ng/tree/main/lib/ronn/template\fR for examples\.
153
153
  .SH "EXAMPLES"
154
154
  Build roff and HTML output files and view the roff manpage using man(1):
155
155
  .IP "" 4
@@ -217,11 +217,11 @@ The default manual date in \fBYYYY\-MM\-DD\fR format\. Displayed in the bottom\-
217
217
  A \fBPATH\fR\-style list of directories to check for stylesheets given to the \fB\-\-style\fR option\. Directories are separated by a \fI:\fR; blank entries are ignored\. Use \fI\.\fR to include the current working directory\.
218
218
  .TP
219
219
  \fBMANPAGER\fR
220
- The paging program used for man pages\. This is typically set to something like \'less \-is\'\.
220
+ The paging program used for man pages\. This is typically set to something like 'less \-is'\.
221
221
  .TP
222
222
  \fBPAGER\fR
223
223
  Used instead of \fBMANPAGER\fR when \fBMANPAGER\fR is not defined\.
224
224
  .SH "COPYRIGHT"
225
- Ronn\-NG is Copyright (C) 2009 Ryan Tomayko \fIhttp://tomayko\.com/about\fR and (C) 2018 Andrew Janke \fIhttps://apjanke\.net\fR
225
+ Ronn\-NG is Copyright (C) 2009 Ryan Tomayko \fIhttps://tomayko\.com/about\fR, (C) 2018\-2023 Andrew Janke \fIhttps://apjanke\.net\fR, and other contributors\. See the AUTHORS file in the Ronn\-NG distribution for full details\.
226
226
  .SH "SEE ALSO"
227
227
  groff(1), man(1), pandoc(1), manpages(5), markdown(7), roff(7), ronn\-format(7)
data/man/ronn.1.ronn CHANGED
@@ -164,11 +164,11 @@ ignored:
164
164
  tango(5) tango.5.ronn
165
165
 
166
166
  # external manuals
167
- grep(1) http://man.cx/grep(1)
168
- ls(1) http://man.cx/ls(1)
167
+ grep(1) https://man7.org/linux/man-pages/man1/grep.1.html
168
+ ls(1) https://man7.org/linux/man-pages/man1/ls.1.html
169
169
 
170
170
  # other URLs for use with markdown reference links
171
- src http://github.com/
171
+ src https://github.com/
172
172
 
173
173
  The <location> is an absolute or relative URL that usually points at an HTML
174
174
  version of manpage. It's possible to define references for things that aren't
@@ -237,7 +237,7 @@ allow targeting all generated elements:
237
237
 
238
238
  See the [builtin style sources][builtin] for examples.
239
239
 
240
- [builtin]: http://github.com/apjanke/ronn-ng/tree/master/lib/ronn/template
240
+ [builtin]: https://github.com/apjanke/ronn-ng/tree/main/lib/ronn/template
241
241
  "Builtin Stylesheet .css files"
242
242
 
243
243
  ## EXAMPLES
@@ -309,8 +309,9 @@ under a `man/` directory:
309
309
 
310
310
  ## COPYRIGHT
311
311
 
312
- Ronn-NG is Copyright (C) 2009 Ryan Tomayko <http://tomayko.com/about> and
313
- (C) 2018 Andrew Janke <https://apjanke.net>
312
+ Ronn-NG is Copyright (C) 2009 Ryan Tomayko <https://tomayko.com/about>,
313
+ (C) 2018-2023 Andrew Janke <https://apjanke.net>, and other contributors.
314
+ See the AUTHORS file in the Ronn-NG distribution for full details.
314
315
 
315
316
  ## SEE ALSO
316
317
 
data/ronn-ng.gemspec CHANGED
@@ -1,11 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ronn-ng'
3
- s.version = '0.10.0-SNAPSHOT'
4
- s.date = '2020-10-22'
3
+ s.version = '0.10.1.pre2'
5
4
  s.required_ruby_version = '>= 2.4'
6
5
 
7
6
  s.summary = 'Builds man pages from Markdown'
8
- s.description = 'Ronn-NG builds manuals in HTML and Unix man page format from Markdown.'
7
+ s.description = 'Ronn-NG builds manuals in HTML and Unix man page format from Markdown. Ronn-NG is a modern, maintained fork of the original Ronn.'
9
8
  s.homepage = 'https://github.com/apjanke/ronn-ng'
10
9
  s.license = 'MIT'
11
10
 
@@ -15,14 +14,13 @@ Gem::Specification.new do |s|
15
14
  s.metadata = {
16
15
  'bug_tracker_uri' => 'https://github.com/apjanke/ronn-ng/issues',
17
16
  'source_code_uri' => 'https://github.com/apjanke/ronn-ng',
18
- 'changelog_uri' => 'https://github.com/apjanke/ronn-ng/blob/master/CHANGES'
17
+ 'changelog_uri' => 'https://github.com/apjanke/ronn-ng/blob/main/CHANGES'
19
18
  }
20
19
 
21
20
  # = MANIFEST =
22
21
  s.files = %w[
23
22
  AUTHORS
24
23
  CHANGES
25
- Gemfile
26
24
  INSTALLING.md
27
25
  LICENSE.txt
28
26
  README.md
@@ -53,57 +51,6 @@ Gem::Specification.new do |s|
53
51
  man/ronn.1
54
52
  man/ronn.1.ronn
55
53
  ronn-ng.gemspec
56
- test/angle_bracket_syntax.html
57
- test/angle_bracket_syntax.ronn
58
- test/backticks.html
59
- test/backticks.ronn
60
- test/basic_document.html
61
- test/basic_document.ronn
62
- test/circumflexes.ronn
63
- test/code_blocks.ronn
64
- test/contest.rb
65
- test/custom_title_document.html
66
- test/custom_title_document.ronn
67
- test/definition_list_syntax.html
68
- test/definition_list_syntax.roff
69
- test/definition_list_syntax.ronn
70
- test/dots_at_line_start_test.roff
71
- test/dots_at_line_start_test.ronn
72
- test/ellipses.roff
73
- test/ellipses.ronn
74
- test/entity_encoding_test.html
75
- test/entity_encoding_test.roff
76
- test/entity_encoding_test.ronn
77
- test/index.txt
78
- test/markdown_syntax.html
79
- test/markdown_syntax.roff
80
- test/markdown_syntax.ronn
81
- test/middle_paragraph.html
82
- test/middle_paragraph.roff
83
- test/middle_paragraph.ronn
84
- test/missing_spaces.roff
85
- test/missing_spaces.ronn
86
- test/nested_list.ronn
87
- test/nested_list_with_code.html
88
- test/nested_list_with_code.roff
89
- test/nested_list_with_code.ronn
90
- test/ordered_list.html
91
- test/ordered_list.roff
92
- test/ordered_list.ronn
93
- test/page.with.periods.in.name.5.ronn
94
- test/pre_block_with_quotes.roff
95
- test/pre_block_with_quotes.ronn
96
- test/section_reference_links.html
97
- test/section_reference_links.roff
98
- test/section_reference_links.ronn
99
- test/tables.ronn
100
- test/test_ronn.rb
101
- test/test_ronn_document.rb
102
- test/test_ronn_index.rb
103
- test/titleless_document.html
104
- test/titleless_document.ronn
105
- test/underline_spacing_test.roff
106
- test/underline_spacing_test.ronn
107
54
  ]
108
55
  # = MANIFEST =
109
56
 
@@ -112,12 +59,12 @@ Gem::Specification.new do |s|
112
59
 
113
60
  s.extra_rdoc_files = %w[LICENSE.txt AUTHORS]
114
61
  s.add_dependency 'kramdown', '~> 2.1'
115
- s.add_dependency 'kramdown-parser-gfm', '~> 1.0.1'
62
+ s.add_dependency 'kramdown-parser-gfm', '>= 1.0.1', '< 1.2'
116
63
  s.add_dependency 'mustache', '~> 1.0'
117
- s.add_dependency 'nokogiri', '~> 1.9', '>= 1.9.0'
64
+ s.add_dependency 'nokogiri', '~> 1.10', '>= 1.10.10'
118
65
  s.add_development_dependency 'rack', '~> 2.2', '>= 2.2.3'
119
66
  s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
120
- s.add_development_dependency 'rubocop', '~> 0.88', '>= 0.88.0'
67
+ s.add_development_dependency 'rubocop', '~> 1.12.1'
121
68
  s.add_development_dependency 'sinatra', '~> 2.0', '>= 2.0.8'
122
69
  s.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.6'
123
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronn-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0.pre.SNAPSHOT
4
+ version: 0.10.1.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Janke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: kramdown-parser-gfm
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.1
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '1.2'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: 1.0.1
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.2'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: mustache
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,20 +64,20 @@ dependencies:
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '1.9'
67
+ version: '1.10'
62
68
  - - ">="
63
69
  - !ruby/object:Gem::Version
64
- version: 1.9.0
70
+ version: 1.10.10
65
71
  type: :runtime
66
72
  prerelease: false
67
73
  version_requirements: !ruby/object:Gem::Requirement
68
74
  requirements:
69
75
  - - "~>"
70
76
  - !ruby/object:Gem::Version
71
- version: '1.9'
77
+ version: '1.10'
72
78
  - - ">="
73
79
  - !ruby/object:Gem::Version
74
- version: 1.9.0
80
+ version: 1.10.10
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: rack
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -118,20 +124,14 @@ dependencies:
118
124
  requirements:
119
125
  - - "~>"
120
126
  - !ruby/object:Gem::Version
121
- version: '0.88'
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 0.88.0
127
+ version: 1.12.1
125
128
  type: :development
126
129
  prerelease: false
127
130
  version_requirements: !ruby/object:Gem::Requirement
128
131
  requirements:
129
132
  - - "~>"
130
133
  - !ruby/object:Gem::Version
131
- version: '0.88'
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- version: 0.88.0
134
+ version: 1.12.1
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: sinatra
137
137
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ dependencies:
173
173
  - !ruby/object:Gem::Version
174
174
  version: 3.3.6
175
175
  description: Ronn-NG builds manuals in HTML and Unix man page format from Markdown.
176
+ Ronn-NG is a modern, maintained fork of the original Ronn.
176
177
  email: floss@apjanke.net
177
178
  executables:
178
179
  - ronn
@@ -183,7 +184,6 @@ extra_rdoc_files:
183
184
  files:
184
185
  - AUTHORS
185
186
  - CHANGES
186
- - Gemfile
187
187
  - INSTALLING.md
188
188
  - LICENSE.txt
189
189
  - README.md
@@ -214,64 +214,13 @@ files:
214
214
  - man/ronn.1
215
215
  - man/ronn.1.ronn
216
216
  - ronn-ng.gemspec
217
- - test/angle_bracket_syntax.html
218
- - test/angle_bracket_syntax.ronn
219
- - test/backticks.html
220
- - test/backticks.ronn
221
- - test/basic_document.html
222
- - test/basic_document.ronn
223
- - test/circumflexes.ronn
224
- - test/code_blocks.ronn
225
- - test/contest.rb
226
- - test/custom_title_document.html
227
- - test/custom_title_document.ronn
228
- - test/definition_list_syntax.html
229
- - test/definition_list_syntax.roff
230
- - test/definition_list_syntax.ronn
231
- - test/dots_at_line_start_test.roff
232
- - test/dots_at_line_start_test.ronn
233
- - test/ellipses.roff
234
- - test/ellipses.ronn
235
- - test/entity_encoding_test.html
236
- - test/entity_encoding_test.roff
237
- - test/entity_encoding_test.ronn
238
- - test/index.txt
239
- - test/markdown_syntax.html
240
- - test/markdown_syntax.roff
241
- - test/markdown_syntax.ronn
242
- - test/middle_paragraph.html
243
- - test/middle_paragraph.roff
244
- - test/middle_paragraph.ronn
245
- - test/missing_spaces.roff
246
- - test/missing_spaces.ronn
247
- - test/nested_list.ronn
248
- - test/nested_list_with_code.html
249
- - test/nested_list_with_code.roff
250
- - test/nested_list_with_code.ronn
251
- - test/ordered_list.html
252
- - test/ordered_list.roff
253
- - test/ordered_list.ronn
254
- - test/page.with.periods.in.name.5.ronn
255
- - test/pre_block_with_quotes.roff
256
- - test/pre_block_with_quotes.ronn
257
- - test/section_reference_links.html
258
- - test/section_reference_links.roff
259
- - test/section_reference_links.ronn
260
- - test/tables.ronn
261
- - test/test_ronn.rb
262
- - test/test_ronn_document.rb
263
- - test/test_ronn_index.rb
264
- - test/titleless_document.html
265
- - test/titleless_document.ronn
266
- - test/underline_spacing_test.roff
267
- - test/underline_spacing_test.ronn
268
217
  homepage: https://github.com/apjanke/ronn-ng
269
218
  licenses:
270
219
  - MIT
271
220
  metadata:
272
221
  bug_tracker_uri: https://github.com/apjanke/ronn-ng/issues
273
222
  source_code_uri: https://github.com/apjanke/ronn-ng
274
- changelog_uri: https://github.com/apjanke/ronn-ng/blob/master/CHANGES
223
+ changelog_uri: https://github.com/apjanke/ronn-ng/blob/main/CHANGES
275
224
  post_install_message:
276
225
  rdoc_options:
277
226
  - "--line-numbers"
@@ -291,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
240
  - !ruby/object:Gem::Version
292
241
  version: 1.3.1
293
242
  requirements: []
294
- rubygems_version: 3.1.4
243
+ rubygems_version: 3.4.4
295
244
  signing_key:
296
245
  specification_version: 4
297
246
  summary: Builds man pages from Markdown
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
@@ -1,27 +0,0 @@
1
- <div class='mp'>
2
-
3
- <h2 id="NAME">NAME</h2>
4
- <p class="man-name">
5
- <code>angle_bracket_syntax</code> - <span class="man-whatis">angle bracket syntax test</span>
6
- </p>
7
- <p>A <var>WORD</var> in angle brackets is converted to <var>WORD</var>,</p>
8
-
9
- <pre><code>except when &lt;WORD&gt; is
10
- part of a preformatted
11
- code block,
12
- </code></pre>
13
-
14
- <p>or when <code>&lt;WORD&gt;</code> is enclosed in backticks.</p>
15
-
16
- <p>or when <var>WORD</var> has a <dot.> or <colon>.</colon></dot.></p>
17
-
18
- <h2 id="Escaping-angle-brackets">Escaping angle brackets</h2>
19
-
20
- <p>You can escape &lt;angle&gt; &lt;brackets&gt; with backslashes, since we're using GitHub Flavored Markdown.</p>
21
-
22
- <p>Example:</p>
23
-
24
- <p><code>pxzgrep</code> [<code>-p</code>&lt;n&gt;] [<code>-V</code>] [&lt;xzgrep options&gt;] &lt;pattern&gt; &lt;file1&gt; &lt;file2&gt; [&lt;more files&gt;]</p>
25
-
26
- <p>(Though really you should just put that in a fenced code block.)</p>
27
- </div>
@@ -1,22 +0,0 @@
1
- angle_bracket_syntax(5) -- angle bracket syntax test
2
- ====================================================
3
-
4
- A <WORD> in angle brackets is converted to <var>WORD</var>,
5
-
6
- except when <WORD> is
7
- part of a preformatted
8
- code block,
9
-
10
- or when `<WORD>` is enclosed in backticks.
11
-
12
- or when <WORD> has a <dot.> or <foo:colon>.
13
-
14
- ## Escaping angle brackets
15
-
16
- You can escape \<angle\> \<brackets\> with backslashes, since we're using GitHub Flavored Markdown.
17
-
18
- Example:
19
-
20
- `pxzgrep` [`-p`\<n\>] [`-V`] [\<xzgrep options\>] \<pattern\> \<file1\> \<file2\> [\<more files\>]
21
-
22
- (Though really you should just put that in a fenced code block.)
data/test/backticks.html DELETED
@@ -1,14 +0,0 @@
1
- <div class='mp'>
2
-
3
- <h2 id="NAME">NAME</h2>
4
- <p class="man-name">
5
- <code>backticks</code> - <span class="man-whatis">testing the link index with backticks</span>
6
- </p>
7
- <p><a class="man-ref" href="http://man.cx/grep(1)">grep<span class="s">(1)</span></a></p>
8
-
9
- <p><a class="man-ref" href="http://man.cx/grep(1)"><code>grep</code><span class="s">(1)</span></a></p>
10
-
11
- <p><span class="man-ref">man<span class="s">(1)</span></span></p>
12
-
13
- <p><span class="man-ref"><code>man</code><span class="s">(1)</span></span></p>
14
- </div>
data/test/backticks.ronn DELETED
@@ -1,10 +0,0 @@
1
- backticks(7) -- testing the link index with backticks
2
- =====================================================
3
-
4
- grep(1)
5
-
6
- `grep`(1)
7
-
8
- man(1)
9
-
10
- `man`(1)
@@ -1,8 +0,0 @@
1
- <div class='mp'>
2
-
3
- <h2 id="NAME">NAME</h2>
4
- <p class="man-name">
5
- <code>simple</code> - <span class="man-whatis">a simple ronn example</span>
6
- </p>
7
- <p>This document created by ronn.</p>
8
- </div>
@@ -1,4 +0,0 @@
1
- simple(7) -- a simple ronn example
2
- =================================
3
-
4
- This document created by ronn.
@@ -1 +0,0 @@
1
- y = 2^x
@@ -1,41 +0,0 @@
1
- Example Code Blocks
2
- ===================
3
-
4
- ## Basic code block
5
-
6
- ```
7
- Hello, world!
8
- ```
9
-
10
- ## Language-identified code blocks
11
-
12
- ```html
13
- <html>
14
- <head>
15
- <title>Hello, world!</title>
16
- </head>
17
- <body>
18
- Hello, world!
19
- </body>
20
- </html>
21
- ```
22
-
23
- ## Interspersed code blocks and text
24
-
25
- Some text.
26
-
27
- ```
28
- Some code.
29
- ```
30
-
31
- Here's some &lt;pre> text.
32
-
33
- <pre>
34
- This is pre text.
35
- </pre>
36
-
37
- Some more text.
38
-
39
- ```
40
- Some more code.
41
- ```
data/test/contest.rb DELETED
@@ -1,70 +0,0 @@
1
- require 'test/unit'
2
-
3
- module Test
4
- module Unit
5
- # TestSuite loads a default test if the suite is empty, whose purpose is to
6
- # fail. Since having empty contexts is a common practice, we decided to
7
- # overwrite TestSuite#empty? in order to allow them. Having a failure when no
8
- # tests have been defined seems counter-intuitive.
9
- class TestSuite
10
- def empty?
11
- false
12
- end
13
- end
14
-
15
- # Contest adds +teardown+, +test+ and +context+ as class methods, and the
16
- # instance methods +setup+ and +teardown+ now iterate on the corresponding
17
- # blocks. Note that all setup and teardown blocks must be defined with the
18
- # block syntax. Adding setup or teardown instance methods defeats the purpose
19
- # of this library.
20
- class TestCase
21
- def self.setup(&block)
22
- define_method :setup do
23
- super(&block)
24
- instance_eval(&block)
25
- end
26
- end
27
-
28
- def self.teardown(&block)
29
- define_method :teardown do
30
- instance_eval(&block)
31
- super(&block)
32
- end
33
- end
34
-
35
- def self.context(name, &block)
36
- subclass = Class.new(self)
37
- remove_tests(subclass)
38
- subclass.class_eval(&block) if block_given?
39
- const_set(context_name(name), subclass)
40
- end
41
-
42
- def self.test(name, &block)
43
- define_method(test_name(name), &block)
44
- end
45
-
46
- class << self
47
- alias should test
48
- alias describe context
49
- end
50
-
51
- def self.context_name(name)
52
- "Test#{sanitize_name(name).gsub(/(^| )(\w)/) { $2.upcase }}".to_sym
53
- end
54
-
55
- def self.test_name(name)
56
- "test_#{sanitize_name(name).gsub(/\s+/, '_')}".to_sym
57
- end
58
-
59
- def self.sanitize_name(name)
60
- name.gsub(/\W+/, ' ').strip
61
- end
62
-
63
- def self.remove_tests(subclass)
64
- subclass.public_instance_methods.grep(/^test_/).each do |meth|
65
- subclass.send(:undef_method, meth.to_sym)
66
- end
67
- end
68
- end
69
- end
70
- end
@@ -1,6 +0,0 @@
1
- <div class='mp'>
2
-
3
- <h1 id="This-is-a-custom-title">This is a custom title</h1>
4
- <p>It doesn't define the name or section of this manual page and is
5
- output as a simple <code>&lt;h1&gt;</code> instead of a <code>NAME</code> section.</p>
6
- </div>