Skip to content

Commit 56be21c

Browse files
committed
Release 0.7.0
1 parent af86d02 commit 56be21c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/big_rails/redis/builder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require "redis"
4+
require "redis/distributed"
45

56
module BigRails
67
module Redis

lib/big_rails/redis/registry.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def for(name, wrapped: false)
2828
end
2929

3030
def config_for(name)
31-
configurations[validate_name(name)]
31+
configurations[validate_name(name)].deep_dup
3232
end
3333

3434
def each(&block)
@@ -66,8 +66,7 @@ def verify!(*names)
6666
private
6767

6868
def build_connection(name)
69-
config = configurations.fetch(name)
70-
builder.call(config)
69+
builder.call(config_for(name))
7170
end
7271

7372
def build_wrapped_connection(connection)

lib/big_rails/redis/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module BigRails
44
module Redis
5-
VERSION = "0.6.0"
5+
VERSION = "0.7.0"
66
end
77
end

0 commit comments

Comments
 (0)