bigrails-redis 0.6.0 → 0.7.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/builder.rb +2 -1
- data/lib/big_rails/redis/registry.rb +3 -3
- data/lib/big_rails/redis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bcd1b5e5ed505a29938315709f56d36db7f5d5de17392657aa5c8371ab1d2c9
|
4
|
+
data.tar.gz: 9a51d0bc94aa4f0ead89243b9824afd94cb0e354edc8d43ca9833814944848fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd8ff8e9c4ee17ac8287f0d2da71be62ea36418ad6a4faa0841161402b7199ab870608d46df3d5a3e402343239a043fb211890136423ac800e5e68f9957c1730
|
7
|
+
data.tar.gz: ccdc2a87df4b34172c53b5038559c0a460b7bacba9bc2faf71ea69728522f1ef7dc5180de7c7e4ce63dcf23992a8746f0c46f39aa988bf1861aa4cfb17d70e2f
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "redis"
|
4
|
+
require "redis/distributed"
|
4
5
|
|
5
6
|
module BigRails
|
6
7
|
module Redis
|
@@ -40,7 +41,7 @@ module BigRails
|
|
40
41
|
|
41
42
|
def ensure_connection_pool_added!
|
42
43
|
require "connection_pool"
|
43
|
-
rescue LoadError
|
44
|
+
rescue LoadError
|
44
45
|
warn "You don't have connection_pool installed in your application. Please add it to your Gemfile and run bundle install"
|
45
46
|
raise
|
46
47
|
end
|
@@ -5,6 +5,7 @@ module BigRails
|
|
5
5
|
class Registry
|
6
6
|
class UnknownConnection < StandardError
|
7
7
|
end
|
8
|
+
|
8
9
|
class VerificationError < StandardError
|
9
10
|
end
|
10
11
|
|
@@ -27,7 +28,7 @@ module BigRails
|
|
27
28
|
end
|
28
29
|
|
29
30
|
def config_for(name)
|
30
|
-
configurations[validate_name(name)]
|
31
|
+
configurations[validate_name(name)].deep_dup
|
31
32
|
end
|
32
33
|
|
33
34
|
def each(&block)
|
@@ -65,8 +66,7 @@ module BigRails
|
|
65
66
|
private
|
66
67
|
|
67
68
|
def build_connection(name)
|
68
|
-
|
69
|
-
builder.call(config)
|
69
|
+
builder.call(config_for(name))
|
70
70
|
end
|
71
71
|
|
72
72
|
def build_wrapped_connection(connection)
|
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.7.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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|