selfml 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +1 -9
- data/lib/selfml.rb +2 -3
- data/lib/selfml/engines.rb +0 -1
- data/lib/selfml/engines/hash.rb +2 -0
- data/lib/selfml/parser.rb +0 -1
- data/lib/selfml/version.rb +1 -1
- data/man/selfml.1 +121 -0
- data/man/selfml.1.html +196 -0
- data/man/selfml.5 +7 -0
- data/man/selfml.5.html +80 -0
- data/self-ml.gemspec +5 -4
- data/spec/basic_spec.rb +0 -3
- data/spec/engines_spec.rb +0 -5
- data/spec/spec_helper.rb +5 -0
- data/spec/string_spec.rb +0 -3
- metadata +8 -6
- data/.rvmrc +0 -1
- data/lib/selfml/engines/json.rb +0 -9
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/lib/selfml.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
Bundler.require(:default)
|
1
|
+
require 'bundler/setup'
|
3
2
|
|
4
3
|
require_relative 'selfml/engines'
|
5
4
|
require_relative 'selfml/parser'
|
6
5
|
require_relative 'selfml/ast'
|
7
6
|
|
8
7
|
module SelfML
|
9
|
-
|
8
|
+
|
10
9
|
def self.parse(s, engine=nil)
|
11
10
|
transformer = engine.new if engine.instance_of? Class
|
12
11
|
|
data/lib/selfml/engines.rb
CHANGED
data/lib/selfml/engines/hash.rb
CHANGED
data/lib/selfml/parser.rb
CHANGED
data/lib/selfml/version.rb
CHANGED
data/man/selfml.1
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "SELF\-ML" "1" "May 2012" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBself\-ml\fR \- read self\-ml files
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBronn\fR [\fIformat\fR\.\.\.] \fIfile\fR\.\.\.
|
11
|
+
.
|
12
|
+
.br
|
13
|
+
\fBronn\fR \fB\-m\fR|\fB\-\-man\fR \fIfile\fR\.\.\.
|
14
|
+
.
|
15
|
+
.br
|
16
|
+
\fBronn\fR \fB\-S\fR|\fB\-\-server\fR \fIfile\fR\.\.\.
|
17
|
+
.
|
18
|
+
.br
|
19
|
+
\fBronn\fR \fB\-\-pipe\fR \fIfile\fR
|
20
|
+
.
|
21
|
+
.br
|
22
|
+
\fBronn\fR < \fIfile\fR
|
23
|
+
.
|
24
|
+
.P
|
25
|
+
\fBself\-ml\fR filename
|
26
|
+
.
|
27
|
+
.SH "DESCRIPTION"
|
28
|
+
\fBSelf\-ML\fR parses files written in the self\-ml format\.
|
29
|
+
.
|
30
|
+
.P
|
31
|
+
Something something
|
32
|
+
.
|
33
|
+
.SH "FILES"
|
34
|
+
The \fBself\-ml\fR command expects input to be valid self\-ml(7) text\. Source files are typically named \fIname\fR\.selfml (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\.
|
35
|
+
.
|
36
|
+
.P
|
37
|
+
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\.
|
38
|
+
.
|
39
|
+
.SH "OPTIONS"
|
40
|
+
These options control whether output is written to file(s), standard output, or directly to a man pager\.
|
41
|
+
.
|
42
|
+
.TP
|
43
|
+
\fB\-o\fR=\fIoutput\fR
|
44
|
+
Generate file \fIoutput\fR\.
|
45
|
+
.
|
46
|
+
.TP
|
47
|
+
\fB\-\-pipe\fR
|
48
|
+
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\.
|
49
|
+
.
|
50
|
+
.P
|
51
|
+
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\.
|
52
|
+
.
|
53
|
+
.TP
|
54
|
+
\fB\-r\fR, \fB\-\-roff\fR
|
55
|
+
Generate roff output\. This is the default behavior when no \fIfile\fRs are given and ronn source text is read from standard input\.
|
56
|
+
.
|
57
|
+
.TP
|
58
|
+
\fB\-5\fR, \fB\-\-html\fR
|
59
|
+
Generate output in HTML format\.
|
60
|
+
.
|
61
|
+
.TP
|
62
|
+
\fB\-f\fR, \fB\-\-fragment\fR
|
63
|
+
Generate output in HTML format but only the document fragment, not the header, title, or footer\.
|
64
|
+
.
|
65
|
+
.P
|
66
|
+
Document attributes displayed in the header and footer areas of generated content are specified with these options\. (These values may also be set via the \fIENVIRONMENT\fR\.)
|
67
|
+
.
|
68
|
+
.TP
|
69
|
+
\fB\-\-manual\fR=\fImanual\fR
|
70
|
+
The name of the manual this man page belongs to; \fImanual\fR is prominently displayed top\-center in the header area\.
|
71
|
+
.
|
72
|
+
.TP
|
73
|
+
\fB\-\-organization\fR=\fIname\fR
|
74
|
+
The name of the group, organization, or individual responsible for publishing the document; \fIname\fR is displayed in the bottom\-left footer area\.
|
75
|
+
.
|
76
|
+
.TP
|
77
|
+
\fB\-\-date\fR=\fIdate\fR
|
78
|
+
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\.
|
79
|
+
.
|
80
|
+
.P
|
81
|
+
Miscellaneous options:
|
82
|
+
.
|
83
|
+
.TP
|
84
|
+
\fB\-v\fR, \fB\-\-version\fR
|
85
|
+
Show ronn version and exit\.
|
86
|
+
.
|
87
|
+
.TP
|
88
|
+
\fB\-h\fR, \fB\-\-help\fR
|
89
|
+
Show selfml help and exit\.
|
90
|
+
.
|
91
|
+
.SH "EXAMPLES"
|
92
|
+
.
|
93
|
+
.SH "ENVIRONMENT"
|
94
|
+
.
|
95
|
+
.TP
|
96
|
+
\fBRONN_MANUAL\fR
|
97
|
+
A default manual name to be displayed in the top\-center header area\. The \fB\-\-manual\fR option takes precedence over this value\.
|
98
|
+
.
|
99
|
+
.TP
|
100
|
+
\fBRONN_ORGANIZATION\fR
|
101
|
+
The default manual publishing group, organization, or individual to be displayed in the bottom\-left footer area\. The \fB\-\-organization\fR option takes precedence over this value\.
|
102
|
+
.
|
103
|
+
.TP
|
104
|
+
\fBRONN_DATE\fR
|
105
|
+
The default manual date in \fBYYYY\-MM\-DD\fR format\. Displayed in the bottom\-center footer area\. The \fB\-\-date\fR option takes precedence over this value\.
|
106
|
+
.
|
107
|
+
.TP
|
108
|
+
\fBRONN_STYLE\fR
|
109
|
+
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\.
|
110
|
+
.
|
111
|
+
.TP
|
112
|
+
\fBMANPAGER\fR
|
113
|
+
The paging program used for man pages\. This is typically set to something like \'less \-is\'\.
|
114
|
+
.
|
115
|
+
.SH "BUGS"
|
116
|
+
.
|
117
|
+
.SH "COPYRIGHT"
|
118
|
+
Self\-ML is Copyright (C) 2012 Ricardo Mendes \fIhttp://ricardomend\.es\fR
|
119
|
+
.
|
120
|
+
.SH "SEE ALSO"
|
121
|
+
selfml(7)
|
data/man/selfml.1.html
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>self-ml(1) - read self-ml files</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
|
+
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
|
+
<a href="#FILES">FILES</a>
|
60
|
+
<a href="#OPTIONS">OPTIONS</a>
|
61
|
+
<a href="#EXAMPLES">EXAMPLES</a>
|
62
|
+
<a href="#ENVIRONMENT">ENVIRONMENT</a>
|
63
|
+
<a href="#BUGS">BUGS</a>
|
64
|
+
<a href="#COPYRIGHT">COPYRIGHT</a>
|
65
|
+
<a href="#SEE-ALSO">SEE ALSO</a>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
<ol class='man-decor man-head man head'>
|
69
|
+
<li class='tl'>self-ml(1)</li>
|
70
|
+
<li class='tc'></li>
|
71
|
+
<li class='tr'>self-ml(1)</li>
|
72
|
+
</ol>
|
73
|
+
|
74
|
+
<h2 id="NAME">NAME</h2>
|
75
|
+
<p class="man-name">
|
76
|
+
<code>self-ml</code> - <span class="man-whatis">read self-ml files</span>
|
77
|
+
</p>
|
78
|
+
|
79
|
+
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
80
|
+
|
81
|
+
<p><code>ronn</code> [<var>format</var>...] <var>file</var>...<br />
|
82
|
+
<code>ronn</code> <code>-m</code>|<code>--man</code> <var>file</var>...<br />
|
83
|
+
<code>ronn</code> <code>-S</code>|<code>--server</code> <var>file</var>...<br />
|
84
|
+
<code>ronn</code> <code>--pipe</code> <var>file</var><br />
|
85
|
+
<code>ronn</code> < <var>file</var></p>
|
86
|
+
|
87
|
+
<p><code>self-ml</code> filename</p>
|
88
|
+
|
89
|
+
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
90
|
+
|
91
|
+
<p><strong>Self-ML</strong> parses files written in the self-ml format.</p>
|
92
|
+
|
93
|
+
<p>Something something</p>
|
94
|
+
|
95
|
+
<h2 id="FILES">FILES</h2>
|
96
|
+
|
97
|
+
<p>The <code>self-ml</code> command expects input to be valid <span class="man-ref">self-ml<span class="s">(7)</span></span> text. Source files
|
98
|
+
are typically named <var>name</var>.selfml (e.g., <code>example.1.ronn</code>). The <var>name</var>
|
99
|
+
and <var>section</var> should match the name and section defined in the <var>file</var>'s heading.</p>
|
100
|
+
|
101
|
+
<p>When building roff or HTML output files, destination filenames are determined by
|
102
|
+
taking the basename of the input <var>file</var> and adding the appropriate file
|
103
|
+
extension (or removing the file extension in the case of roff output). For
|
104
|
+
example, executing <code>ronn example.1.ronn</code> generates <code>example.1</code> with roff output
|
105
|
+
and <code>example.1.html</code> with HTML output.</p>
|
106
|
+
|
107
|
+
<h2 id="OPTIONS">OPTIONS</h2>
|
108
|
+
|
109
|
+
<p>These options control whether output is written to file(s), standard output, or
|
110
|
+
directly to a man pager.</p>
|
111
|
+
|
112
|
+
<dl>
|
113
|
+
<dt><code>-o</code>=<var>output</var></dt><dd><p>Generate file <var>output</var>.</p></dd>
|
114
|
+
<dt class="flush"><code>--pipe</code></dt><dd><p>Don't generate files, write generated output to standard output. This is the
|
115
|
+
default behavior when ronn source text is piped in on standard input and no
|
116
|
+
<var>file</var> arguments are provided.</p></dd>
|
117
|
+
</dl>
|
118
|
+
|
119
|
+
|
120
|
+
<p>Format options control the files <code>ronn</code> generates, or the output format when the
|
121
|
+
<code>--pipe</code> argument is specified. When no format options are given, both <code>--roff</code>
|
122
|
+
and <code>--html</code> are assumed.</p>
|
123
|
+
|
124
|
+
<dl>
|
125
|
+
<dt><code>-r</code>, <code>--roff</code></dt><dd><p>Generate roff output. This is the default behavior when no <var>file</var>s are given
|
126
|
+
and ronn source text is read from standard input.</p></dd>
|
127
|
+
<dt><code>-5</code>, <code>--html</code></dt><dd><p>Generate output in HTML format.</p></dd>
|
128
|
+
<dt><code>-f</code>, <code>--fragment</code></dt><dd><p>Generate output in HTML format but only the document fragment, not the
|
129
|
+
header, title, or footer.</p></dd>
|
130
|
+
</dl>
|
131
|
+
|
132
|
+
|
133
|
+
<p>Document attributes displayed in the header and footer areas of generated
|
134
|
+
content are specified with these options. (These values may also be set via
|
135
|
+
the <a href="#ENVIRONMENT" title="ENVIRONMENT" data-bare-link="true">ENVIRONMENT</a>.)</p>
|
136
|
+
|
137
|
+
<dl>
|
138
|
+
<dt><code>--manual</code>=<var>manual</var></dt><dd><p>The name of the manual this man page belongs to; <var>manual</var> is prominently
|
139
|
+
displayed top-center in the header area.</p></dd>
|
140
|
+
<dt><code>--organization</code>=<var>name</var></dt><dd><p>The name of the group, organization, or individual responsible for
|
141
|
+
publishing the document; <var>name</var> is displayed in the bottom-left footer area.</p></dd>
|
142
|
+
<dt><code>--date</code>=<var>date</var></dt><dd><p>The document's published date; <var>date</var> must be formatted <code>YYYY-MM-DD</code> and is
|
143
|
+
displayed in the bottom-center footer area. The <var>file</var> mtime is used when no
|
144
|
+
<var>date</var> is given, or the current time when no <var>file</var> is available.</p></dd>
|
145
|
+
</dl>
|
146
|
+
|
147
|
+
|
148
|
+
<p>Miscellaneous options:</p>
|
149
|
+
|
150
|
+
<dl>
|
151
|
+
<dt><code>-v</code>, <code>--version</code></dt><dd><p>Show ronn version and exit.</p></dd>
|
152
|
+
<dt><code>-h</code>, <code>--help</code></dt><dd><p>Show selfml help and exit.</p></dd>
|
153
|
+
</dl>
|
154
|
+
|
155
|
+
|
156
|
+
<h2 id="EXAMPLES">EXAMPLES</h2>
|
157
|
+
|
158
|
+
<h2 id="ENVIRONMENT">ENVIRONMENT</h2>
|
159
|
+
|
160
|
+
<dl>
|
161
|
+
<dt><code>RONN_MANUAL</code></dt><dd><p>A default manual name to be displayed in the top-center header area.
|
162
|
+
The <code>--manual</code> option takes precedence over this value.</p></dd>
|
163
|
+
<dt><code>RONN_ORGANIZATION</code></dt><dd><p>The default manual publishing group, organization, or individual to be
|
164
|
+
displayed in the bottom-left footer area. The <code>--organization</code> option takes
|
165
|
+
precedence over this value.</p></dd>
|
166
|
+
<dt><code>RONN_DATE</code></dt><dd><p>The default manual date in <code>YYYY-MM-DD</code> format. Displayed in the
|
167
|
+
bottom-center footer area. The <code>--date</code> option takes precedence over this
|
168
|
+
value.</p></dd>
|
169
|
+
<dt><code>RONN_STYLE</code></dt><dd><p>A <code>PATH</code>-style list of directories to check for stylesheets given to the
|
170
|
+
<code>--style</code> option. Directories are separated by a <em>:</em>; blank entries are
|
171
|
+
ignored. Use <em>.</em> to include the current working directory.</p></dd>
|
172
|
+
<dt><code>MANPAGER</code></dt><dd><p>The paging program used for man pages. This is typically set to
|
173
|
+
something like 'less -is'.</p></dd>
|
174
|
+
</dl>
|
175
|
+
|
176
|
+
|
177
|
+
<h2 id="BUGS">BUGS</h2>
|
178
|
+
|
179
|
+
<h2 id="COPYRIGHT">COPYRIGHT</h2>
|
180
|
+
|
181
|
+
<p>Self-ML is Copyright (C) 2012 Ricardo Mendes <a href="http://ricardomend.es" data-bare-link="true">http://ricardomend.es</a></p>
|
182
|
+
|
183
|
+
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
184
|
+
|
185
|
+
<p><span class="man-ref">selfml<span class="s">(7)</span></span></p>
|
186
|
+
|
187
|
+
|
188
|
+
<ol class='man-decor man-foot man foot'>
|
189
|
+
<li class='tl'></li>
|
190
|
+
<li class='tc'>May 2012</li>
|
191
|
+
<li class='tr'>self-ml(1)</li>
|
192
|
+
</ol>
|
193
|
+
|
194
|
+
</div>
|
195
|
+
</body>
|
196
|
+
</html>
|
data/man/selfml.5
ADDED
data/man/selfml.5.html
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>selfml(5)</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<ol class='man-decor man-head man head'>
|
60
|
+
<li class='tl'>selfml(5)</li>
|
61
|
+
<li class='tc'></li>
|
62
|
+
<li class='tr'>selfml(5)</li>
|
63
|
+
</ol>
|
64
|
+
|
65
|
+
<h2 id="NAME">NAME</h2>
|
66
|
+
<p class="man-name">
|
67
|
+
<code>selfml</code>
|
68
|
+
</p>
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
<ol class='man-decor man-foot man foot'>
|
73
|
+
<li class='tl'></li>
|
74
|
+
<li class='tc'>May 2012</li>
|
75
|
+
<li class='tr'>selfml(5)</li>
|
76
|
+
</ol>
|
77
|
+
|
78
|
+
</div>
|
79
|
+
</body>
|
80
|
+
</html>
|
data/self-ml.gemspec
CHANGED
@@ -19,11 +19,12 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables << 'selfml'
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_development_dependency "parslet"
|
23
22
|
s.add_development_dependency "minitest"
|
23
|
+
s.add_development_dependency "pry"
|
24
24
|
s.add_development_dependency "ronn"
|
25
|
-
s.add_development_dependency "
|
25
|
+
s.add_development_dependency "parslet"
|
26
26
|
|
27
|
-
s.
|
28
|
-
s.
|
27
|
+
s.add_dependency "parslet"
|
28
|
+
s.add_dependency "gem-man"
|
29
|
+
s.add_dependency "require_relative" unless RUBY_VERSION > '1.8'
|
29
30
|
end
|
data/spec/basic_spec.rb
CHANGED
data/spec/engines_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/string_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selfml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ cert_chain: []
|
|
12
12
|
date: 2012-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: minitest
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: pry
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: parslet
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
@@ -117,7 +117,6 @@ extensions: []
|
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
119
|
- .gitignore
|
120
|
-
- .rvmrc
|
121
120
|
- .travis.yml
|
122
121
|
- Gemfile
|
123
122
|
- LICENSE
|
@@ -134,10 +133,13 @@ files:
|
|
134
133
|
- lib/selfml/engines/array.rb
|
135
134
|
- lib/selfml/engines/document.rb
|
136
135
|
- lib/selfml/engines/hash.rb
|
137
|
-
- lib/selfml/engines/json.rb
|
138
136
|
- lib/selfml/parser.rb
|
139
137
|
- lib/selfml/version.rb
|
138
|
+
- man/selfml.1
|
139
|
+
- man/selfml.1.html
|
140
140
|
- man/selfml.1.ronn
|
141
|
+
- man/selfml.5
|
142
|
+
- man/selfml.5.html
|
141
143
|
- man/selfml.5.ronn
|
142
144
|
- self-ml.gemspec
|
143
145
|
- spec/basic_spec.rb
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use default@selfml --create
|