with_connection 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/with_connection/ranged_connection_pool.rb +4 -4
- data/with_connection.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.19
|
@@ -9,13 +9,13 @@ module WithConnection
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def with_connection(key=nil, &block)
|
12
|
-
local_current[:
|
13
|
-
local_current[:
|
12
|
+
local_current[:with_connection_ranged_connection_pool] = pool_for_key(key)
|
13
|
+
local_current[:with_connection_ranged_connection_pool].with_connection(&block)
|
14
14
|
end
|
15
15
|
|
16
16
|
def connection
|
17
|
-
local_current[:
|
18
|
-
local_current[:
|
17
|
+
local_current[:with_connection_ranged_connection_pool] ||= @default_pool
|
18
|
+
local_current[:with_connection_ranged_connection_pool].connection
|
19
19
|
end
|
20
20
|
|
21
21
|
def pool_for_key(key)
|
data/with_connection.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: with_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
segments:
|
117
117
|
- 0
|
118
|
-
hash:
|
118
|
+
hash: -4347250007370076659
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
none: false
|
121
121
|
requirements:
|