everyday-cli-utils 1.3.0 → 1.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6aaaed2712c0b90ca6ed889e79e62365f22212d8
4
- data.tar.gz: 5a599eaf22c830354c9b23ccc50ac574d44e2d31
3
+ metadata.gz: bb045208150105efa9606f2f664bec0b98339044
4
+ data.tar.gz: b1a094050c0298cff7a93315b02058e7833d5a11
5
5
  SHA512:
6
- metadata.gz: 5c6fd0fa669e955f0070ea5332c1cc80c78a0d6d7d6dab07d1a0890fa4a996343aea11ad58d815b6eb23e751281824c8cdfe2c981aa2656614589042669d08c7
7
- data.tar.gz: cd14ebdc8c59db60787338915eaf61f62b45b1ae0022c2cb0654b32b953edf756a64e9bd729fbea3fb25422458b0220c51024e4adbc6ea568498026abddf38fd
6
+ metadata.gz: c0352f72cadc509d1158b54203755c7476ba68b018a87d845f21ade0cde965ed42ce44e12eddea2ffdff5c0a8706812b521b3687abbb48a52548a2d4bbd51937
7
+ data.tar.gz: 8480de538db701d0fd034e2e69767464bad8b1be7d3d1005ddf3e727f08d71b4125e83a4a3b6953de4def1b18fbfb6f68c334506bd0755f31bd2a99c4ed1da17
@@ -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, a Curses wrapper with up/down scrolling and more handled easily, and a utility for using OptionParser with less code.}
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 ||= OptionParser.new
88
- @opts.help
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 ||= OptionParser.new
93
- @opts.to_s
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)
@@ -1,3 +1,3 @@
1
1
  module EverydayCliUtils
2
- VERSION = '1.3.0'
2
+ VERSION = '1.4.0'
3
3
  end
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.3.0
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-01-30 00:00:00.000000000 Z
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 Curses wrapper with up/down scrolling and more handled easily, and 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: []