mothership 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mothership/inputs.rb +2 -2
- data/lib/mothership/version.rb +1 -1
- metadata +13 -13
data/lib/mothership/inputs.rb
CHANGED
@@ -15,11 +15,11 @@ class Mothership
|
|
15
15
|
@global = global
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
18
|
+
def has?(name)
|
19
19
|
@inputs.key?(name) || @given.key?(name)
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
22
|
+
def direct(name)
|
23
23
|
if @inputs.key?(name)
|
24
24
|
@inputs[name]
|
25
25
|
elsif (given = @given[name]) != :interact
|
data/lib/mothership/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mothership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-01-11 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -60,18 +60,18 @@ files:
|
|
60
60
|
- LICENSE
|
61
61
|
- Rakefile
|
62
62
|
- lib/mothership.rb
|
63
|
-
- lib/mothership/
|
64
|
-
- lib/mothership/
|
65
|
-
- lib/mothership/version.rb
|
66
|
-
- lib/mothership/callbacks.rb
|
63
|
+
- lib/mothership/parser.rb
|
64
|
+
- lib/mothership/base.rb
|
67
65
|
- lib/mothership/inputs.rb
|
68
66
|
- lib/mothership/errors.rb
|
69
|
-
- lib/mothership/
|
70
|
-
- lib/mothership/
|
67
|
+
- lib/mothership/help/printer.rb
|
68
|
+
- lib/mothership/help/commands.rb
|
71
69
|
- lib/mothership/help.rb
|
72
|
-
- lib/mothership/
|
73
|
-
-
|
70
|
+
- lib/mothership/command.rb
|
71
|
+
- lib/mothership/callbacks.rb
|
72
|
+
- lib/mothership/version.rb
|
74
73
|
- spec/spec_helper.rb
|
74
|
+
- spec/arguments_spec.rb
|
75
75
|
- spec/combination_spec.rb
|
76
76
|
- spec/Rakefile
|
77
77
|
- spec/flags_spec.rb
|
@@ -110,8 +110,8 @@ signing_key:
|
|
110
110
|
specification_version: 3
|
111
111
|
summary: Command-line library for big honkin' CLI apps.
|
112
112
|
test_files:
|
113
|
-
- spec/arguments_spec.rb
|
114
113
|
- spec/spec_helper.rb
|
114
|
+
- spec/arguments_spec.rb
|
115
115
|
- spec/combination_spec.rb
|
116
116
|
- spec/Rakefile
|
117
117
|
- spec/flags_spec.rb
|