everyday-cli-utils 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/everyday-cli-utils.gemspec +1 -1
- data/lib/everyday-cli-utils/option.rb +10 -4
- data/lib/everyday-cli-utils/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb045208150105efa9606f2f664bec0b98339044
|
4
|
+
data.tar.gz: b1a094050c0298cff7a93315b02058e7833d5a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0352f72cadc509d1158b54203755c7476ba68b018a87d845f21ade0cde965ed42ce44e12eddea2ffdff5c0a8706812b521b3687abbb48a52548a2d4bbd51937
|
7
|
+
data.tar.gz: 8480de538db701d0fd034e2e69767464bad8b1be7d3d1005ddf3e727f08d71b4125e83a4a3b6953de4def1b18fbfb6f68c334506bd0755f31bd2a99c4ed1da17
|
data/everyday-cli-utils.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['Eric Henderson']
|
10
10
|
spec.email = ['henderea@gmail.com']
|
11
11
|
spec.summary = %q{A few CLI and general utils}
|
12
|
-
spec.description = %q{A few CLI and general utilities. Includes a numbered-menu select loop utility, a ANSI formatting escape code handler, a text-based histogram maker, k-means and n-means (k-means with minimum optimal k) calculators, various collection utility methods,
|
12
|
+
spec.description = %q{A few CLI and general utilities. Includes a numbered-menu select loop utility, a ANSI formatting escape code handler, a text-based histogram maker, k-means and n-means (k-means with minimum optimal k) calculators, various collection utility methods, and a utility for using OptionParser with less code.}
|
13
13
|
spec.homepage = 'https://github.com/henderea/everyday-cli-utils'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
@@ -84,13 +84,19 @@ module EverydayCliUtils
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def help
|
87
|
-
@opts
|
88
|
-
@
|
87
|
+
@opts ||= OptionParser.new
|
88
|
+
@help_str ||= nil
|
89
|
+
@help_str.nil? ? @opts.help : @help_str
|
89
90
|
end
|
90
91
|
|
91
92
|
def to_s
|
92
|
-
@opts
|
93
|
-
@
|
93
|
+
@opts ||= OptionParser.new
|
94
|
+
@help_str ||= nil
|
95
|
+
@help_str.nil? ? @opts.to_s : @help_str
|
96
|
+
end
|
97
|
+
|
98
|
+
def help_str=(str)
|
99
|
+
@help_str = str
|
94
100
|
end
|
95
101
|
|
96
102
|
def parse!(argv = ARGV)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everyday-cli-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -83,8 +83,7 @@ dependencies:
|
|
83
83
|
description: A few CLI and general utilities. Includes a numbered-menu select loop
|
84
84
|
utility, a ANSI formatting escape code handler, a text-based histogram maker, k-means
|
85
85
|
and n-means (k-means with minimum optimal k) calculators, various collection utility
|
86
|
-
methods, a
|
87
|
-
utility for using OptionParser with less code.
|
86
|
+
methods, and a utility for using OptionParser with less code.
|
88
87
|
email:
|
89
88
|
- henderea@gmail.com
|
90
89
|
executables: []
|