pushes 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pushes/version.rb +1 -1
- data/lib/pushes.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04668782d2c75810b5d78d730d2ebd9e372e8307
|
4
|
+
data.tar.gz: 9e867f4ecb1208c2d44b7ce2661f44d1b85338e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809cb036c5669a813063496c3f0d42441426ec8abb7ab2fe504e07de748a7fd653e5001991ae2d54ca8ffe2e3f9d7d6fe48b639b6725c7c3ab81e11ff67237ed
|
7
|
+
data.tar.gz: f4b03184c7f531343ccc927595d79323f7a994218715340042542a232388711ea4b8062313b677c810b1e2b5f872d5aa4631789d0cb9ea11f99aa571a520941d
|
data/lib/pushes/version.rb
CHANGED
data/lib/pushes.rb
CHANGED
@@ -18,6 +18,11 @@ module Pushes
|
|
18
18
|
return 1
|
19
19
|
end
|
20
20
|
|
21
|
+
if %w(--version -v).include?(command)
|
22
|
+
display_version
|
23
|
+
return 1
|
24
|
+
end
|
25
|
+
|
21
26
|
begin
|
22
27
|
send("command_#{command}", args)
|
23
28
|
rescue ArgumentError
|
@@ -124,6 +129,10 @@ module Pushes
|
|
124
129
|
say(help_message + "\n")
|
125
130
|
end
|
126
131
|
|
132
|
+
def self.display_version
|
133
|
+
say("Pushes #{Pushes::VERSION}" + "\n")
|
134
|
+
end
|
135
|
+
|
127
136
|
def self.help_message
|
128
137
|
help = []
|
129
138
|
help << 'Usage:'
|