mothership 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -157,8 +157,8 @@ module Mothership::Help
157
157
  fs.delete short
158
158
  end
159
159
 
160
- if info[:type] == :boolean && info[:default] == true
161
- fs.unshift "--[no-]#{flag}"
160
+ if info[:type] == :boolean && info[:default]
161
+ fs[0] = "--[no-]#{flag}"
162
162
  end
163
163
 
164
164
  if info.key?(:default) && info.key?(:interact)
@@ -102,6 +102,10 @@ class Mothership
102
102
  @inputs.delete(name)
103
103
  end
104
104
 
105
+ def interactive?(name)
106
+ @given[name] == :interact
107
+ end
108
+
105
109
  private
106
110
 
107
111
  def find_in(where, name, meta, context, *args)
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
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: 2012-10-11 00:00:00 Z
18
+ date: 2012-10-15 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake