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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a2638608a5a80ec36cf93efccc3b761d9d1b976b0529dc407901f42c4269f7d
4
- data.tar.gz: 677a8e2fbd028515253f3fac94a29b0cde604053cda39521fcc1efe6354e0020
3
+ metadata.gz: 7bcd1b5e5ed505a29938315709f56d36db7f5d5de17392657aa5c8371ab1d2c9
4
+ data.tar.gz: 9a51d0bc94aa4f0ead89243b9824afd94cb0e354edc8d43ca9833814944848fa
5
5
  SHA512:
6
- metadata.gz: 41ea96f64d5f57dcb9f058420e007dc2e84a106ea9d7232402483c16105f3b42a6f96c33f4a2514c20cf961ee44a1b8bbad8790124c9c93ffa94a042e5d6137e
7
- data.tar.gz: 561b0610a79041b670f4b11036ea0ee0c1fbad843580726f1e694f3c9695b5b93df6b02cf59cd222060cdf152dad7e0ff9300e8372ec568211e4fc829c99f2e7
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 => e
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
- config = configurations.fetch(name)
69
- builder.call(config)
69
+ builder.call(config_for(name))
70
70
  end
71
71
 
72
72
  def build_wrapped_connection(connection)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BigRails
4
4
  module Redis
5
- VERSION = "0.6.0"
5
+ VERSION = "0.7.0"
6
6
  end
7
7
  end
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.6.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-23 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails