slave_pools 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -190,9 +190,11 @@ module SlavePoolsModule
190
190
  logger.error %(#{e.message}\n#{e.backtrace.join("\n")})
191
191
  if e.message.match(/Timeout waiting for a response from the last query/)
192
192
  # Verify that the connection is active & re-raise
193
+ logger.error "[SlavePools] Slave Query Timeout - do not send to master"
193
194
  @current.retrieve_connection.verify!
194
195
  raise e
195
196
  else
197
+ logger.error "[SlavePools] Slave Query Error - sending to master"
196
198
  send_to_master(method, *args, &block) # if cant connect, send the query to master
197
199
  end
198
200
  end
data/slave_pools.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{slave_pools}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dan Drabik"]
metadata CHANGED
@@ -1,89 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: slave_pools
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Dan Drabik
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-03-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-07-11 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: activerecord
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 3.2.12
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
25
+ requirements:
27
26
  - - ~>
28
- - !ruby/object:Gem::Version
27
+ - !ruby/object:Gem::Version
28
+ hash: 23
29
+ segments:
30
+ - 3
31
+ - 2
32
+ - 12
29
33
  version: 3.2.12
30
- - !ruby/object:Gem::Dependency
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
31
37
  name: mysql2
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 0.3.11
38
- type: :development
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
41
+ requirements:
43
42
  - - ~>
44
- - !ruby/object:Gem::Version
43
+ - !ruby/object:Gem::Version
44
+ hash: 5
45
+ segments:
46
+ - 0
47
+ - 3
48
+ - 11
45
49
  version: 0.3.11
46
- - !ruby/object:Gem::Dependency
47
- name: rspec
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
50
  type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rspec
55
54
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
55
+ requirement: &id003 !ruby/object:Gem::Requirement
57
56
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
70
64
  type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: rake
71
68
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
69
+ requirement: &id004 !ruby/object:Gem::Requirement
73
70
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- description: Connection proxy for ActiveRecord for single master / multiple slave
79
- database groups
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ type: :development
79
+ version_requirements: *id004
80
+ description: Connection proxy for ActiveRecord for single master / multiple slave database groups
80
81
  email: dan@kickstarter.com
81
82
  executables: []
83
+
82
84
  extensions: []
83
- extra_rdoc_files:
85
+
86
+ extra_rdoc_files:
84
87
  - LICENSE
85
88
  - README.rdoc
86
- files:
89
+ files:
87
90
  - lib/slave_pools.rb
88
91
  - lib/slave_pools/active_record_extensions.rb
89
92
  - lib/slave_pools/connection_proxy.rb
@@ -100,33 +103,42 @@ files:
100
103
  - slave_pools.gemspec
101
104
  homepage: https://github.com/kickstarter/slave_pools
102
105
  licenses: []
106
+
103
107
  post_install_message:
104
- rdoc_options:
108
+ rdoc_options:
105
109
  - --line-numbers
106
110
  - --inline-source
107
111
  - --title
108
112
  - slave_pools
109
113
  - --main
110
114
  - README.rdoc
111
- require_paths:
115
+ require_paths:
112
116
  - lib
113
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
114
118
  none: false
115
- requirements:
116
- - - ! '>='
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ hash: 3
123
+ segments:
124
+ - 0
125
+ version: "0"
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
127
  none: false
121
- requirements:
122
- - - ! '>='
123
- - !ruby/object:Gem::Version
124
- version: '1.2'
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ hash: 11
132
+ segments:
133
+ - 1
134
+ - 2
135
+ version: "1.2"
125
136
  requirements: []
137
+
126
138
  rubyforge_project:
127
- rubygems_version: 1.8.24
139
+ rubygems_version: 1.8.10
128
140
  signing_key:
129
141
  specification_version: 3
130
- summary: Connection proxy for ActiveRecord for single master / multiple slave database
131
- groups
142
+ summary: Connection proxy for ActiveRecord for single master / multiple slave database groups
132
143
  test_files: []
144
+