serfx 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serfx/commands.rb +7 -0
- data/lib/serfx/connection.rb +2 -1
- data/lib/serfx/version.rb +1 -1
- data/spec/serfx/client_spec.rb +6 -0
- 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: 9a98baec5b14b9cd623e2196eaf2ec1db08df41a
|
4
|
+
data.tar.gz: 02919fe89d543b7771bcdbfbb77f08cfbfc5d467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb9c8afc5e2b491bb533f672667692a533f7d9639078e3d1b1e2f1996765d55449e3bfa25c5c3c72e7889f6b9ac5f61979ac191cfe7e79c02708460d4abcdb9
|
7
|
+
data.tar.gz: 30445ba217eda5ff981d06f9a47197b995736ea0904f3fec155574bbdf6614264ce93933a3db7cb44f95f5cd51aad77386399d836b516ddddbcaf3189a248933
|
data/lib/serfx/commands.rb
CHANGED
data/lib/serfx/connection.rb
CHANGED
data/lib/serfx/version.rb
CHANGED
data/spec/serfx/client_spec.rb
CHANGED
@@ -142,4 +142,10 @@ describe Serfx do
|
|
142
142
|
final_keys = @conn.list_keys.body['Keys'].keys
|
143
143
|
expect(final_keys.first).to_not include('QHOYjmYlxSCBhdfiolhtDQ==')
|
144
144
|
end
|
145
|
+
|
146
|
+
it '#stats' do
|
147
|
+
response = @conn.stats
|
148
|
+
expect(response.header.error).to be_empty
|
149
|
+
expect(response.body['serf']['members'].to_i).to eq(5)
|
150
|
+
end
|
145
151
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serfx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rnjib Dey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|