nchan_tools 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nchan_tools/rdsck.rb +2 -0
- data/lib/nchan_tools/version.rb +1 -1
- data/nchan_tools.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a7cdf81145f3dde05ac13e82dc9dcc09063eff263ec642a6b9e3682db033d1
|
4
|
+
data.tar.gz: 5d8d9ff2c06a5ebd982a123be59a3ed13310b99c7daa869e86e30832f69ee509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b771ba51b4108c2c01805e06730590c79f5150180d62bad58662e7f6f6f1ed250257c94acf992274292195381262ca01164f249df147ba3eabd149f0ad730259
|
7
|
+
data.tar.gz: 5b422326b465e2df1f70315edad5dda73766c861aa18f4d65cbc64093bbf229a2a0845de7f207620751442e6a6b47887ebfd44f5002757ef2abf6c690220b0fe
|
data/lib/nchan_tools/rdsck.rb
CHANGED
@@ -22,6 +22,7 @@ class Rdsck
|
|
22
22
|
|
23
23
|
def connect
|
24
24
|
begin
|
25
|
+
puts "connect to #{@url}"
|
25
26
|
@redis=Redis.new url: @url
|
26
27
|
mode = redis.info["redis_mode"]
|
27
28
|
rescue StandardError => e
|
@@ -32,6 +33,7 @@ class Rdsck
|
|
32
33
|
if mode == "cluster"
|
33
34
|
@redis.close
|
34
35
|
begin
|
36
|
+
puts "cluster-connect to #{@url}"
|
35
37
|
@redis=Redis.new cluster: [@url]
|
36
38
|
@redis.ping
|
37
39
|
rescue StandardError => e
|
data/lib/nchan_tools/version.rb
CHANGED
data/nchan_tools.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency "celluloid"
|
30
30
|
spec.add_dependency "celluloid-io"
|
31
31
|
spec.add_dependency "HDRHistogram"
|
32
|
-
spec.add_dependency "redis"
|
32
|
+
spec.add_dependency "redis", "~>4.2.0"
|
33
33
|
|
34
34
|
spec.add_dependency "websocket-driver"
|
35
35
|
spec.add_dependency 'websocket-extensions'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nchan_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leo Ponomarev
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: redis
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 4.2.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 4.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: websocket-driver
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|