como 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/doc/Como/ArgsParseState.html +53 -53
- data/doc/Como/ComoCommon.html +4 -4
- data/doc/Como/MainOpt.html +51 -51
- data/doc/Como/Opt/ErrorWithData.html +4 -4
- data/doc/Como/Opt/InvalidOption.html +4 -4
- data/doc/Como/Opt/MissingArgument.html +4 -4
- data/doc/Como/Opt.html +913 -511
- data/doc/Como/RuleCheck.html +89 -89
- data/doc/Como/RuleDisplay.html +84 -84
- data/doc/Como/Spec.html +16 -16
- data/doc/Como.html +129 -123
- data/doc/_index.html +5 -5
- data/doc/class_list.html +6 -1
- data/doc/css/style.css +2 -1
- data/doc/file.CHANGELOG.html +27 -23
- data/doc/file.README.html +10 -10
- data/doc/file_list.html +6 -1
- data/doc/frames.html +5 -7
- data/doc/index.html +10 -10
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +9 -6
- data/doc/method_list.html +167 -132
- data/doc/top-level-namespace.html +4 -4
- data/lib/como.rb +41 -11
- data/lib/version.rb +1 -1
- metadata +2 -2
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.6
|
7
|
+
Documentation by YARD 0.8.7.6
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8">
|
16
16
|
hasFrames = window.top.frames.main ? true : false;
|
17
17
|
relpath = '';
|
18
|
-
framesUrl = "frames.html#!"
|
18
|
+
framesUrl = "frames.html#!_index.html";
|
19
19
|
</script>
|
20
20
|
|
21
21
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.6
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.6</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -233,9 +233,9 @@
|
|
233
233
|
</div>
|
234
234
|
|
235
235
|
<div id="footer">
|
236
|
-
Generated on
|
236
|
+
Generated on Mon Apr 20 18:44:03 2015 by
|
237
237
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
238
|
-
0.8.6
|
238
|
+
0.8.7.6 (ruby-2.1.2).
|
239
239
|
</div>
|
240
240
|
|
241
241
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -15,11 +15,16 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
16
|
|
17
17
|
|
18
|
+
<title>Class List</title>
|
18
19
|
<base id="base_target" target="_parent" />
|
19
20
|
</head>
|
20
21
|
<body>
|
21
22
|
<script type="text/javascript" charset="utf-8">
|
22
|
-
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
23
28
|
document.getElementById('base_target').target = 'main';
|
24
29
|
document.body.className = 'frames';
|
25
30
|
}
|
data/doc/css/style.css
CHANGED
@@ -291,6 +291,7 @@ li.r2 { background: #fafafa; }
|
|
291
291
|
-moz-box-shadow: -2px 2px 6px #bbb;
|
292
292
|
z-index: 5000;
|
293
293
|
position: relative;
|
294
|
+
overflow-x: auto;
|
294
295
|
}
|
295
296
|
#toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
296
297
|
#toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
|
@@ -324,9 +325,9 @@ pre.code .dot + pre.code .id,
|
|
324
325
|
pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
|
325
326
|
pre.code .comment { color: #0066FF; }
|
326
327
|
pre.code .const, pre.code .constant { color: #585CF6; }
|
328
|
+
pre.code .label,
|
327
329
|
pre.code .symbol { color: #C5060B; }
|
328
330
|
pre.code .kw,
|
329
|
-
pre.code .label,
|
330
331
|
pre.code .rubyid_require,
|
331
332
|
pre.code .rubyid_extend,
|
332
333
|
pre.code .rubyid_include { color: #0000FF; }
|
data/doc/file.CHANGELOG.html
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
6
|
<title>
|
7
7
|
File: CHANGELOG
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.6
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.CHANGELOG.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -62,8 +62,12 @@
|
|
62
62
|
<iframe id="search_frame"></iframe>
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
|
-
<h1>Version history</h1>
|
66
|
-
<dl class="rdoc-list"><dt>0.1.
|
65
|
+
<h1 id="label-Version+history">Version history</h1>
|
66
|
+
<dl class="rdoc-list label-list"><dt>0.1.5
|
67
|
+
<dd>
|
68
|
+
<p>Moved evalCheck from private methods to public methods.
|
69
|
+
Opt.error/fatal/warn API methods.</p>
|
70
|
+
</dd><dt>0.1.4
|
67
71
|
<dd>
|
68
72
|
<p>Documentation improvements (links to methods). Fix to Opt#apply return
|
69
73
|
value when type is :switch. Opt#fatal added for user error reporting
|
@@ -73,44 +77,44 @@ values defaults</p>
|
|
73
77
|
<pre class="code ruby"><code class="ruby">to an empty array.</code></pre>
|
74
78
|
|
75
79
|
<p>Possibility to separate option definition and execution.</p>
|
76
|
-
</dd><dt>0.1.3
|
80
|
+
</dd><dt>0.1.3
|
77
81
|
<dd>
|
78
82
|
<p>Customization through COMO env variable and hooks. Version information
|
79
|
-
returned programmatically with Como.version.
|
80
|
-
|
81
|
-
|
82
|
-
</dd><dt>0.1.2
|
83
|
+
returned programmatically with Como.version. “command” is aliased to
|
84
|
+
“subcmd” to enable highlighting of the main command. Aliases for
|
85
|
+
“Spec.checkRule” and “Spec#checkRule”.</p>
|
86
|
+
</dd><dt>0.1.2
|
83
87
|
<dd>
|
84
|
-
<p
|
85
|
-
include all newlines explicitly.
|
88
|
+
<p>“:check_invalid” applied correctly. Header and footer configs has to
|
89
|
+
include all newlines explicitly. “:error_exit” config removed (always exit
|
86
90
|
with error). Exclusive option type can have zero to many arguments.
|
87
|
-
Switch-options have no values only
|
91
|
+
Switch-options have no values only “given” should be checked. Small changes
|
88
92
|
in generated usage info display. Errors are output to stderr (not stdout).</p>
|
89
|
-
</dd><dt>0.1.1
|
93
|
+
</dd><dt>0.1.1
|
90
94
|
<dd>
|
91
95
|
<p>Testcases use relative require to local dir. Rulecheck fixes: incr and
|
92
96
|
follow.</p>
|
93
|
-
</dd><dt>0.1.0
|
97
|
+
</dd><dt>0.1.0
|
94
98
|
<dd>
|
95
|
-
<p>Subcommand feature added along with major refactoring in class
|
96
|
-
Many small changes to usage model, but backwards compatible.</p>
|
97
|
-
</dd><dt>0.0.3
|
99
|
+
<p>Subcommand feature added along with major refactoring in class'
|
100
|
+
content. Many small changes to usage model, but backwards compatible.</p>
|
101
|
+
</dd><dt>0.0.3
|
98
102
|
<dd>
|
99
|
-
<p>Self-value operator
|
103
|
+
<p>Self-value operator “~” added. Parser for options including parameter
|
100
104
|
settings, i.e. the Opt#params method added.</p>
|
101
|
-
</dd><dt>0.0.2
|
105
|
+
</dd><dt>0.0.2
|
102
106
|
<dd>
|
103
107
|
<p>Opt#given is allowed an optinal block argument.</p>
|
104
|
-
</dd><dt>0.0.1
|
108
|
+
</dd><dt>0.0.1
|
105
109
|
<dd>
|
106
110
|
<p>Initial version.</p>
|
107
111
|
</dd></dl>
|
108
112
|
</div></div>
|
109
113
|
|
110
114
|
<div id="footer">
|
111
|
-
Generated on
|
115
|
+
Generated on Mon Apr 20 18:44:03 2015 by
|
112
116
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.8.6
|
117
|
+
0.8.7.6 (ruby-2.1.2).
|
114
118
|
</div>
|
115
119
|
|
116
120
|
</body>
|
data/doc/file.README.html
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.6
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -62,9 +62,9 @@
|
|
62
62
|
<iframe id="search_frame"></iframe>
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
|
-
<h1>Como</h1>
|
65
|
+
<h1 id="label-Como">Como</h1>
|
66
66
|
|
67
|
-
<h2>Description</h2>
|
67
|
+
<h2 id="label-Description">Description</h2>
|
68
68
|
|
69
69
|
<p>Como provides low manifest command line option parsing and deployment. The
|
70
70
|
command line options are described in compact table format and option
|
@@ -73,21 +73,21 @@ usage information based on the option table (+ generic program info) and
|
|
73
73
|
displays it automatically if necessary. Como supports also subcommands and
|
74
74
|
checking for option combinations using a simple DSL.</p>
|
75
75
|
|
76
|
-
<h2>Documentation</h2>
|
76
|
+
<h2 id="label-Documentation">Documentation</h2>
|
77
77
|
|
78
78
|
<p>Main documentation is generated from Como source (See: doc/Como.html). Test
|
79
|
-
files (in
|
79
|
+
files (in “test” directory) can be used as examples on how the features are
|
80
80
|
used.</p>
|
81
81
|
|
82
|
-
<h2>Changes</h2>
|
82
|
+
<h2 id="label-Changes">Changes</h2>
|
83
83
|
|
84
84
|
<p>See CHANGELOG.rdoc.</p>
|
85
85
|
</div></div>
|
86
86
|
|
87
87
|
<div id="footer">
|
88
|
-
Generated on
|
88
|
+
Generated on Mon Apr 20 18:44:03 2015 by
|
89
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
90
|
-
0.8.6
|
90
|
+
0.8.7.6 (ruby-2.1.2).
|
91
91
|
</div>
|
92
92
|
|
93
93
|
</body>
|
data/doc/file_list.html
CHANGED
@@ -15,11 +15,16 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
16
|
|
17
17
|
|
18
|
+
<title>File List</title>
|
18
19
|
<base id="base_target" target="_parent" />
|
19
20
|
</head>
|
20
21
|
<body>
|
21
22
|
<script type="text/javascript" charset="utf-8">
|
22
|
-
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
23
28
|
document.getElementById('base_target').target = 'main';
|
24
29
|
document.body.className = 'frames';
|
25
30
|
}
|
data/doc/frames.html
CHANGED
@@ -4,18 +4,16 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
-
<title>Documentation by YARD 0.8.6
|
7
|
+
<title>Documentation by YARD 0.8.7.6</title>
|
8
8
|
</head>
|
9
9
|
<script type="text/javascript" charset="utf-8">
|
10
10
|
window.onload = function() {
|
11
|
-
var match = window.location.hash.match(/^#!(.+)/);
|
12
|
-
var name = 'index.html';
|
13
|
-
|
14
|
-
name = unescape(match[1]);
|
15
|
-
}
|
11
|
+
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
12
|
+
var name = match ? match[1] : 'index.html';
|
13
|
+
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
16
14
|
document.writeln('<frameset cols="20%,*">' +
|
17
15
|
'<frame name="list" src="class_list.html" />' +
|
18
|
-
'<frame name="main" src="' + name + '" />' +
|
16
|
+
'<frame name="main" src="' + escape(name) + '" />' +
|
19
17
|
'</frameset>');
|
20
18
|
}
|
21
19
|
</script>
|
data/doc/index.html
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.6
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -62,9 +62,9 @@
|
|
62
62
|
<iframe id="search_frame"></iframe>
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
|
-
<h1>Como</h1>
|
65
|
+
<h1 id="label-Como">Como</h1>
|
66
66
|
|
67
|
-
<h2>Description</h2>
|
67
|
+
<h2 id="label-Description">Description</h2>
|
68
68
|
|
69
69
|
<p>Como provides low manifest command line option parsing and deployment. The
|
70
70
|
command line options are described in compact table format and option
|
@@ -73,21 +73,21 @@ usage information based on the option table (+ generic program info) and
|
|
73
73
|
displays it automatically if necessary. Como supports also subcommands and
|
74
74
|
checking for option combinations using a simple DSL.</p>
|
75
75
|
|
76
|
-
<h2>Documentation</h2>
|
76
|
+
<h2 id="label-Documentation">Documentation</h2>
|
77
77
|
|
78
78
|
<p>Main documentation is generated from Como source (See: doc/Como.html). Test
|
79
|
-
files (in
|
79
|
+
files (in “test” directory) can be used as examples on how the features are
|
80
80
|
used.</p>
|
81
81
|
|
82
|
-
<h2>Changes</h2>
|
82
|
+
<h2 id="label-Changes">Changes</h2>
|
83
83
|
|
84
84
|
<p>See CHANGELOG.rdoc.</p>
|
85
85
|
</div></div>
|
86
86
|
|
87
87
|
<div id="footer">
|
88
|
-
Generated on
|
88
|
+
Generated on Mon Apr 20 18:44:03 2015 by
|
89
89
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
90
|
-
0.8.6
|
90
|
+
0.8.7.6 (ruby-2.1.2).
|
91
91
|
</div>
|
92
92
|
|
93
93
|
</body>
|
data/doc/js/app.js
CHANGED
@@ -78,7 +78,12 @@ function framesInit() {
|
|
78
78
|
if (hasFrames) {
|
79
79
|
document.body.className = 'frames';
|
80
80
|
$('#menu .noframes a').attr('href', document.location);
|
81
|
-
|
81
|
+
try {
|
82
|
+
window.top.document.title = $('html head title').text();
|
83
|
+
} catch(error) {
|
84
|
+
// some browsers will not allow this when serving from file://
|
85
|
+
// but we don't want to stop the world.
|
86
|
+
}
|
82
87
|
}
|
83
88
|
else {
|
84
89
|
$('#menu .noframes a').text('frames').attr('href', framesUrl);
|
@@ -211,4 +216,4 @@ $(linkSummaries);
|
|
211
216
|
$(keyboardShortcuts);
|
212
217
|
$(summaryToggle);
|
213
218
|
$(fixOutsideWorldLinks);
|
214
|
-
$(generateTOC);
|
219
|
+
$(generateTOC);
|
data/doc/js/full_list.js
CHANGED
@@ -111,11 +111,11 @@ clicked = null;
|
|
111
111
|
function linkList() {
|
112
112
|
$('#full_list li, #full_list li a:last').click(function(evt) {
|
113
113
|
if ($(this).hasClass('toggle')) return true;
|
114
|
-
if ($(this).find('.object_link a').length === 0) {
|
115
|
-
$(this).children('a.toggle').click();
|
116
|
-
return false;
|
117
|
-
}
|
118
114
|
if (this.tagName.toLowerCase() == "li") {
|
115
|
+
if ($(this).find('.object_link a').length === 0) {
|
116
|
+
$(this).children('a.toggle').click();
|
117
|
+
return false;
|
118
|
+
}
|
119
119
|
var toggle = $(this).children('a.toggle');
|
120
120
|
if (toggle.size() > 0 && evt.pageX < toggle.offset().left) {
|
121
121
|
toggle.click();
|
@@ -123,9 +123,12 @@ function linkList() {
|
|
123
123
|
}
|
124
124
|
}
|
125
125
|
if (clicked) clicked.removeClass('clicked');
|
126
|
-
var win
|
126
|
+
var win;
|
127
|
+
try {
|
128
|
+
win = window.top.frames.main ? window.top.frames.main : window.parent;
|
129
|
+
} catch (e) { win = window.parent; }
|
127
130
|
if (this.tagName.toLowerCase() == "a") {
|
128
|
-
clicked = $(this).
|
131
|
+
clicked = $(this).parents('li').addClass('clicked');
|
129
132
|
win.location = this.href;
|
130
133
|
}
|
131
134
|
else {
|