mothership 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -241,7 +241,11 @@ class Mothership
241
241
  input :all, :type => :boolean
242
242
  def help
243
243
  if name = input[:command]
244
- Mothership::Help.command_help(@@commands[name.gsub("-", "_").to_sym])
244
+ if cmd = @@commands[name.gsub("-", "_").to_sym]
245
+ Mothership::Help.command_help(cmd)
246
+ else
247
+ unknown_command(name)
248
+ end
245
249
  elsif Help.has_groups?
246
250
  unless input[:all]
247
251
  puts "Showing basic command set. Pass --all to list all commands."
@@ -108,6 +108,7 @@ class Mothership
108
108
 
109
109
  def forget(name)
110
110
  @inputs.delete(name)
111
+ @given.delete(name)
111
112
  end
112
113
 
113
114
  def interactive?(name)
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-17 00:00:00 Z
18
+ date: 2012-11-19 00:00:00 -08:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rake
@@ -58,22 +59,23 @@ extra_rdoc_files: []
58
59
  files:
59
60
  - LICENSE
60
61
  - Rakefile
61
- - lib/mothership/base.rb
62
+ - lib/mothership.rb
63
+ - lib/mothership/version.rb
62
64
  - lib/mothership/callbacks.rb
63
- - lib/mothership/command.rb
65
+ - lib/mothership/inputs.rb
66
+ - lib/mothership/pretty.rb
64
67
  - lib/mothership/errors.rb
68
+ - lib/mothership/command.rb
69
+ - lib/mothership/base.rb
65
70
  - lib/mothership/help.rb
66
- - lib/mothership/inputs.rb
67
71
  - lib/mothership/parser.rb
68
- - lib/mothership/pretty.rb
69
72
  - lib/mothership/progress.rb
70
- - lib/mothership/version.rb
71
- - lib/mothership.rb
73
+ - spec/helpers.rb
72
74
  - spec/arguments_spec.rb
73
75
  - spec/combination_spec.rb
74
- - spec/flags_spec.rb
75
- - spec/helpers.rb
76
76
  - spec/Rakefile
77
+ - spec/flags_spec.rb
78
+ has_rdoc: true
77
79
  homepage: https://github.com/vito/mothership
78
80
  licenses: []
79
81
 
@@ -103,13 +105,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
105
  requirements: []
104
106
 
105
107
  rubyforge_project: mothership
106
- rubygems_version: 1.8.24
108
+ rubygems_version: 1.6.2
107
109
  signing_key:
108
110
  specification_version: 3
109
111
  summary: Command-line library for big honkin' CLI apps.
110
112
  test_files:
113
+ - spec/helpers.rb
111
114
  - spec/arguments_spec.rb
112
115
  - spec/combination_spec.rb
113
- - spec/flags_spec.rb
114
- - spec/helpers.rb
115
116
  - spec/Rakefile
117
+ - spec/flags_spec.rb