como 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
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#!top-level-namespace.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -103,9 +103,9 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Mon Apr 20 18:44:03 2015 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
|
-
0.8.6
|
108
|
+
0.8.7.6 (ruby-2.1.2).
|
109
109
|
</div>
|
110
110
|
|
111
111
|
</body>
|
data/lib/como.rb
CHANGED
@@ -1039,6 +1039,23 @@ module Como
|
|
1039
1039
|
end
|
1040
1040
|
|
1041
1041
|
|
1042
|
+
# Issue non-fatal user error. See {#error}.
|
1043
|
+
def Opt.error( str, nl = false )
|
1044
|
+
Opt.main.error( str, nl )
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
|
1048
|
+
# Issue fatal user error. See {#fatal}.
|
1049
|
+
def Opt.fatal( str )
|
1050
|
+
Opt.main.fatal( str )
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
|
1054
|
+
# Issue user warning. See {#warn}.
|
1055
|
+
def Opt.warn( str, nl = false )
|
1056
|
+
Opt.main.warn( str, nl )
|
1057
|
+
end
|
1058
|
+
|
1042
1059
|
|
1043
1060
|
# ------------------------------------------------------------
|
1044
1061
|
# Opt properties:
|
@@ -1521,12 +1538,12 @@ module Como
|
|
1521
1538
|
# present. When block is present, the block is executed (with
|
1522
1539
|
# value as parameter) if option has been given.
|
1523
1540
|
#
|
1524
|
-
# @param
|
1525
|
-
#
|
1526
|
-
def given(
|
1541
|
+
# @param optArg [Boolean] Pass Opt to block instead of its
|
1542
|
+
# value.
|
1543
|
+
def given( optArg = false, &prog )
|
1527
1544
|
if block_given?
|
1528
1545
|
if @given
|
1529
|
-
if
|
1546
|
+
if optArg
|
1530
1547
|
yield( self )
|
1531
1548
|
else
|
1532
1549
|
yield( @value )
|
@@ -1834,6 +1851,9 @@ module Como
|
|
1834
1851
|
|
1835
1852
|
|
1836
1853
|
# Como error printout.
|
1854
|
+
#
|
1855
|
+
# @param str [String] Error message.
|
1856
|
+
# @param nl [Boolean] Prepend msg with newline.
|
1837
1857
|
def error( str, nl = false )
|
1838
1858
|
nl = nl ? "\n" : ""
|
1839
1859
|
STDERR.puts( "#{nl}#{Opt.progname} error: #{str}" )
|
@@ -1853,6 +1873,22 @@ module Como
|
|
1853
1873
|
end
|
1854
1874
|
|
1855
1875
|
|
1876
|
+
# Como warning printout.
|
1877
|
+
#
|
1878
|
+
# @param str [String] Warning message.
|
1879
|
+
# @param nl [Boolean] Prepend msg with newline.
|
1880
|
+
def warn( str, nl = false )
|
1881
|
+
nl = nl ? "\n" : ""
|
1882
|
+
STDERR.puts( "#{nl}#{Opt.progname} warning: #{str}" )
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
|
1886
|
+
# Custom check for the option. User has to know some Como
|
1887
|
+
# internals.
|
1888
|
+
def evalCheck( &check )
|
1889
|
+
instance_eval &check
|
1890
|
+
end
|
1891
|
+
|
1856
1892
|
|
1857
1893
|
# ------------------------------------------------------------
|
1858
1894
|
# Internal methods:
|
@@ -1907,12 +1943,6 @@ module Como
|
|
1907
1943
|
end
|
1908
1944
|
|
1909
1945
|
|
1910
|
-
# Custom check for the option. User has to know some Como
|
1911
|
-
# internals.
|
1912
|
-
def evalCheck( &check )
|
1913
|
-
instance_eval &check
|
1914
|
-
end
|
1915
|
-
|
1916
1946
|
# Format option documentation. If newline is followed by tab,
|
1917
1947
|
# rest of the documentation is aligned with the description of
|
1918
1948
|
# previous line.
|
@@ -2306,7 +2336,7 @@ end
|
|
2306
2336
|
|
2307
2337
|
|
2308
2338
|
# Include version definitions.
|
2309
|
-
|
2339
|
+
require_relative 'version'
|
2310
2340
|
|
2311
2341
|
|
2312
2342
|
# Load user customizations (if any).
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: como
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tero Isannainen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Como provides low manifest command line option parsing and deployment. The command line options are described in compact table format and option values are stored to conveniently named properties. Como builds command usage information based on the option
|