ej 0.1.5 → 0.1.6

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: b0e265c64a78dc3bbee03d836b6014ff02230cf5
4
- data.tar.gz: 99a5bc9767afe77467139e167c6e29f9ba15f295
3
+ metadata.gz: 8114ce429be8682fa3ef3693c392fd86f50b81c7
4
+ data.tar.gz: a7be74bcadebb2c1665c805ac29deaab8a23d651
5
5
  SHA512:
6
- metadata.gz: fa8937a41e19a3ef15ffc673a90625be86a59907005de7398e75e7d3f3fd80c4aa71c16ea3b6673250e697cf3b26e618e1f0bb70ae39e4ebaec50eae4fb4cf04
7
- data.tar.gz: fa7f6f3316420ff29b4a064c23968b389cbb1b49f0b5e30ac34df9c9cd81dd0f0aac08157c3354353082769ee5e3618424dbe7d6d4f35b81ccc01eb7fd8904c6
6
+ metadata.gz: b402747aa787970ec738c36fb8329c5f26416b79af28a510a1a79b627c14a475bfb3e892ee8395a30a0acaf608098ce103244664c2fd8823d27a83f3ab0b0981
7
+ data.tar.gz: 9924d233f04fec9c9b44e6be6e93e1228cf1aa471023cccc554758d13038890bdece393953ef4703056c83352bbdab8ec236c9740867b64d582a28625520a359
data/lib/ej/commands.rb CHANGED
@@ -16,6 +16,7 @@ module Ej
16
16
  map '-a' => :aliases
17
17
  map '-m' => :mapping
18
18
  map '--health' => :health
19
+ map '-v' => :version
19
20
 
20
21
  def initialize(args = [], options = {}, config = {})
21
22
  super(args, options, config)
@@ -241,6 +242,11 @@ module Ej
241
242
  puts_with_format @nodes.nodes_stats
242
243
  end
243
244
 
245
+ desc '-v', 'show version'
246
+ def version
247
+ puts VERSION
248
+ end
249
+
244
250
  private
245
251
 
246
252
  def puts_with_format(object)
data/lib/ej/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ej
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ej
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919