commander 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/History.rdoc +4 -0
- data/README.md +10 -2
- data/lib/commander/user_interaction.rb +3 -3
- data/lib/commander/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41862606cf4f4960a8b46ae50cbf08aef24358d5
|
4
|
+
data.tar.gz: 7b1e4b14ddd3ce4df29348644219896f82f5b298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90629f894d285139dd00327a3feb641ac5e7dd3d2e9d07f3c85056389ccc25b1b67b936693ff437dee52cd9a877654285548e77251f7f2160beedd7839c635f1
|
7
|
+
data.tar.gz: 038edb894790574b9b4b3973c511c539c746ff5bfdfed25c52247242cd0fba232479c5e07211d31e7ef440b18cdbdbcc5e3513111392323f47408dbe8e1f6888
|
data/.travis.yml
CHANGED
data/History.rdoc
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[<img src="https://secure.travis-ci.org/ggilder/commander.png?branch=master" alt="Build Status" />](http://travis-ci.org/ggilder/commander)
|
2
|
-
[![Inline docs](http://inch-
|
2
|
+
[![Inline docs](http://inch-ci.org/github/visionmedia/commander.png)](http://inch-ci.org/github/visionmedia/commander)
|
3
3
|
|
4
4
|
# Commander
|
5
5
|
|
@@ -96,7 +96,15 @@ class MyApplication
|
|
96
96
|
program :version, '1.0.0'
|
97
97
|
program :description, 'Stupid command that prints foo or bar.'
|
98
98
|
|
99
|
-
|
99
|
+
command :foo do |c|
|
100
|
+
c.syntax = 'foobar foo'
|
101
|
+
c.description = 'Displays foo'
|
102
|
+
c.action do |args, options|
|
103
|
+
say 'foo'
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
run!
|
100
108
|
end
|
101
109
|
end
|
102
110
|
|
data/lib/commander/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|