active_record_host_pool 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module ActiveRecordHostPool
4
4
  base.class_eval do
5
5
  attr_accessor(:_host_pool_current_database)
6
6
  alias_method_chain :execute, :switching
7
- alias_method_chain :exec_stmt, :switching if respond_to?(:exec_stmt)
7
+ alias_method_chain :exec_stmt, :switching if private_instance_methods.map(&:to_sym).include?(:exec_stmt)
8
8
  alias_method_chain :drop_database, :no_switching
9
9
  alias_method_chain :create_database, :no_switching
10
10
  alias_method_chain :disconnect!, :host_pooling
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_host_pool
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Osheroff
@@ -61,7 +61,7 @@ dependencies:
61
61
  type: :development
62
62
  version_requirements: *id003
63
63
  - !ruby/object:Gem::Dependency
64
- name: bundler
64
+ name: shoulda
65
65
  prerelease: false
66
66
  requirement: &id004 !ruby/object:Gem::Requirement
67
67
  none: false
@@ -75,7 +75,7 @@ dependencies:
75
75
  type: :development
76
76
  version_requirements: *id004
77
77
  - !ruby/object:Gem::Dependency
78
- name: shoulda
78
+ name: mocha
79
79
  prerelease: false
80
80
  requirement: &id005 !ruby/object:Gem::Requirement
81
81
  none: false
@@ -89,7 +89,7 @@ dependencies:
89
89
  type: :development
90
90
  version_requirements: *id005
91
91
  - !ruby/object:Gem::Dependency
92
- name: mocha
92
+ name: ruby-debug
93
93
  prerelease: false
94
94
  requirement: &id006 !ruby/object:Gem::Requirement
95
95
  none: false
@@ -102,20 +102,6 @@ dependencies:
102
102
  version: "0"
103
103
  type: :development
104
104
  version_requirements: *id006
105
- - !ruby/object:Gem::Dependency
106
- name: ruby-debug
107
- prerelease: false
108
- requirement: &id007 !ruby/object:Gem::Requirement
109
- none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- hash: 3
114
- segments:
115
- - 0
116
- version: "0"
117
- type: :development
118
- version_requirements: *id007
119
105
  description: ""
120
106
  email:
121
107
  - ben@gimbo.net
@@ -170,7 +156,7 @@ rubyforge_project:
170
156
  rubygems_version: 1.5.3
171
157
  signing_key:
172
158
  specification_version: 3
173
- summary: When connecting to databases on one host, use just one connection
159
+ summary: Allow ActiveRecord to share a connection to multiple databases on the same host
174
160
  test_files:
175
161
  - test/database.yml
176
162
  - test/helper.rb