bigrails-redis 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/big_rails/redis/registry.rb +6 -2
- data/lib/big_rails/redis/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff3e8766a94faf3c2465bd623e81753dfff98b37a309147561e891aa928d8007
|
4
|
+
data.tar.gz: 667363a9f9648ff88c42b3f78306d84fc56e1cdeba0875de33c9d270a237de2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f2514a61324b4900b2dc412e44d816c6772b9b9ea747e69ee1cfae20c9cf20a6f6468683a21125fc93f178522573ec6fef1daeb94d83ee8a9773dee3ac6310a
|
7
|
+
data.tar.gz: 684f353daaba4c3cff2d79d3bc9a2db97df582212b6b75949be6893c2e5220d4e3653036180a423454d803351b1280a20213cb7153c178ae7c85536c97e1f715
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "redis"
|
4
|
+
|
3
5
|
module BigRails
|
4
6
|
module Redis
|
5
7
|
class Registry
|
@@ -67,8 +69,10 @@ module BigRails
|
|
67
69
|
end
|
68
70
|
|
69
71
|
def verify_connection(connection)
|
70
|
-
connection.with do |
|
71
|
-
|
72
|
+
connection.with do |conn|
|
73
|
+
connected = conn.connected?
|
74
|
+
conn.ping
|
75
|
+
conn.quit unless connected
|
72
76
|
end
|
73
77
|
end
|
74
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigrails-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ngan Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: redis
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.0'
|
27
41
|
description:
|
28
42
|
email:
|
29
43
|
- ngan@users.noreply.github.com
|