richard-cli 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/richard +7 -2
  3. data/lib/richard/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b681605a2580a0ee5aff10acac0e63fcdf6d199b
4
- data.tar.gz: a897e6b7ffe62c7bed11cd2b89249248ddd46a87
3
+ metadata.gz: 37d14bcabd6661e0b156bf3cd1878c3ad476ff42
4
+ data.tar.gz: 617718c1375b5db9d6dbec3c8bcaedf5618a8599
5
5
  SHA512:
6
- metadata.gz: 637b37f4c674640ac1e357caa2876c31b3a6a577ec89a63f3691196d66d9ac3b9af9b3fa199a129076614d8c10b9baf5eb0fe118eb268eccb7c28e791adfafc7
7
- data.tar.gz: e2e0c887c88d4e57342a80c4e017d5e5bf3666d17d04183bdc5a32c432d6021e963e43eb48909be2f12df1ee057b07d617745afc78508c507129c54e70a008f5
6
+ metadata.gz: 7d985c9a7f8cf4f9e00eddfb3ef889b1479cc1108a6821e14049bbdd3de4bfef001658ebf116c553642aa323ea874782840c0c33a22d41bb22dec5c66aec9591
7
+ data.tar.gz: d2bb7fa9b743f0497010038e1a547ff8740ece3bfeb56792c159c0bf175d6113a2c37d8c86ee3180fcde785615169ac739b5045eb39778a5fbe3db6dc6587cd2
data/bin/richard CHANGED
@@ -18,10 +18,15 @@ EOS
18
18
  end
19
19
 
20
20
 
21
- config = Richard::ConfigRepository.find_or_create
22
- server = Richard::Server.new(config.url, config.api_key)
21
+ def server
22
+ config = Richard::ConfigRepository.find_or_create
23
+ return Richard::Server.new(config.url, config.api_key)
24
+ end
23
25
 
24
26
  case ARGV[0]
27
+ when '--version', 'version'
28
+ puts Richard::VERSION
29
+
25
30
  when 'list'
26
31
  server.list
27
32
 
@@ -1,3 +1,3 @@
1
1
  module Richard
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: richard-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kerr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler