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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a92341786567ea6d356fdf68c08cf3aa1a13eb5d
4
- data.tar.gz: a740bad0dfb8fd7e98dd0d08303adc793c9c22fe
3
+ metadata.gz: 04668782d2c75810b5d78d730d2ebd9e372e8307
4
+ data.tar.gz: 9e867f4ecb1208c2d44b7ce2661f44d1b85338e5
5
5
  SHA512:
6
- metadata.gz: 26f0aacd766e5d9f7c4fef7721677cb44419628a2e6efcf0c8a27b89ce8632b056202f634f8689e13e432d679067d3f9ab924124042aea7c00b0bac0e6b22f5a
7
- data.tar.gz: e46eb64305c339b57d10d8fce2abb203102da35aec4aee79306674dd31299605ee4da23e60e41fe73786d3bdb5f38c579d3d555fd6e4d106004a856e04f86138
6
+ metadata.gz: 809cb036c5669a813063496c3f0d42441426ec8abb7ab2fe504e07de748a7fd653e5001991ae2d54ca8ffe2e3f9d7d6fe48b639b6725c7c3ab81e11ff67237ed
7
+ data.tar.gz: f4b03184c7f531343ccc927595d79323f7a994218715340042542a232388711ea4b8062313b677c810b1e2b5f872d5aa4631789d0cb9ea11f99aa571a520941d
@@ -1,3 +1,3 @@
1
1
  module Pushes
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
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:'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Blais-Masson