cli_helper 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cli_helper.gemspec +3 -1
- data/lib/cli_helper.rb +10 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e70c44c871e7499de5411b5692ea5d0c34dcb36
|
4
|
+
data.tar.gz: 8fe79908bf47fdff073b912164da42fb162626a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd2a759aa926e7683dce8f5cdfe7243eca4f3a8ce878aea413c4d41f4bde4a81c0b99e42428de30bfecde8300eb3c67c148d78cdb4ab43f41536e73e3f6095ab
|
7
|
+
data.tar.gz: a8cf52af8aba4d6ff9d8c0f181af73cdb103017c4238a6e96948fa1005e70865353b8eac472989066509ba1ba79184026b626c8b9af18568c935508505d6787a
|
data/cli_helper.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "cli_helper"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.3'
|
8
8
|
spec.authors = ["Dewayne VanHoozer"]
|
9
9
|
spec.email = ["dvanhoozer@gmail.com"]
|
10
10
|
|
@@ -29,6 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency 'slop'
|
30
30
|
spec.add_dependency 'nenv'
|
31
31
|
spec.add_dependency 'awesome_print'
|
32
|
+
spec.add_dependency 'debug_me'
|
33
|
+
|
32
34
|
|
33
35
|
spec.add_development_dependency "bundler", "~> 1.8"
|
34
36
|
spec.add_development_dependency "rake", "~> 10.0"
|
data/lib/cli_helper.rb
CHANGED
@@ -31,11 +31,21 @@ module Slop
|
|
31
31
|
Pathname.new(value)
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
34
35
|
class PathsOption < ArrayOption
|
35
36
|
def finish(opts)
|
36
37
|
self.value = value.map { |f| Pathname.new(f) }
|
37
38
|
end
|
38
39
|
end
|
40
|
+
|
41
|
+
# An example of how to incorporate default values into
|
42
|
+
# the usage help text. Would prefer a generic solution
|
43
|
+
# in the base Option class.
|
44
|
+
class StringOption
|
45
|
+
#def to_s(offset: 0)
|
46
|
+
# "%-#{offset}s=%s %s" % [flag, default_value, desc]
|
47
|
+
#end
|
48
|
+
end
|
39
49
|
end # module Slop
|
40
50
|
|
41
51
|
$cli = 'a place holder'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cli_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dewayne VanHoozer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: debug_me
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|