active_record_host_pool 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,7 @@ module ActiveRecordHostPool
25
25
  def __setobj__(spec)
26
26
  @spec = spec
27
27
  @config = spec.config.with_indifferent_access
28
+ @_pool_key = nil
28
29
  end
29
30
 
30
31
  def spec
@@ -94,7 +95,7 @@ module ActiveRecordHostPool
94
95
  end
95
96
 
96
97
  def _pool_key
97
- [@config[:host], @config[:port], @config[:socket], @config[:username]].map(&:to_s).join("/")
98
+ @_pool_key ||= "#{@config[:host]}/#{@config[:port]}/#{@config[:socket]}/#{@config[:username]}"
98
99
  end
99
100
 
100
101
  def _connection_pool(auto_create=true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_host_pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-28 00:00:00.000000000 Z
12
+ date: 2012-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -154,21 +154,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  - - ! '>='
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
- segments:
158
- - 0
159
- hash: 4283844498504978406
160
157
  required_rubygems_version: !ruby/object:Gem::Requirement
161
158
  none: false
162
159
  requirements:
163
160
  - - ! '>='
164
161
  - !ruby/object:Gem::Version
165
162
  version: '0'
166
- segments:
167
- - 0
168
- hash: 4283844498504978406
169
163
  requirements: []
170
164
  rubyforge_project:
171
- rubygems_version: 1.8.21
165
+ rubygems_version: 1.8.24
172
166
  signing_key:
173
167
  specification_version: 3
174
168
  summary: Allow ActiveRecord to share a connection to multiple databases on the same