mothership 0.1.1 → 0.1.2

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.
data/lib/mothership.rb CHANGED
@@ -28,11 +28,9 @@ class Mothership
28
28
  name, *argv = global_parser.parse_flags(argv, @@commands)
29
29
 
30
30
  app = new
31
+ app.input = Inputs.new(@@global, app, global_parser.given)
31
32
 
32
- unless name
33
- app.input = Inputs.new(@@global, app, global_parser.given)
34
- return app.default_action
35
- end
33
+ return app.default_action unless name
36
34
 
37
35
  cmdname = name.gsub("-", "_").to_sym
38
36
 
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
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-08-29 00:00:00 Z
18
+ date: 2012-09-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake