em-sequel-async 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "em-sequel-async"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Tadman"]
12
- s.date = "2012-11-27"
12
+ s.date = "2013-02-19"
13
13
  s.description = "Implements a number of asynchronous helper methods for Sequel"
14
14
  s.email = "scott@twg.ca"
15
15
  s.extra_rdoc_files = [
@@ -114,6 +114,7 @@ class EmSequelAsync::Mysql
114
114
 
115
115
  self.add(connection)
116
116
  end
117
+
117
118
  deferrable.errback do |err|
118
119
  handled = false
119
120
 
@@ -148,6 +149,16 @@ class EmSequelAsync::Mysql
148
149
  self.add(connection)
149
150
  end
150
151
  end
152
+
153
+ rescue Mysql2::Error => err
154
+ case (err.message)
155
+ when /MySQL server has gone away|Lost connection/i
156
+ @query_queue << [ query, callback ]
157
+
158
+ self.remove(connection)
159
+
160
+ handled = true
161
+ end
151
162
  end
152
163
 
153
164
  def pool_connection
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-sequel-async
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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: 2012-11-27 00:00:00.000000000 Z
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 1.8.24
152
+ rubygems_version: 1.8.23
153
153
  signing_key:
154
154
  specification_version: 3
155
155
  summary: Asynchronous Helper Methods for Sequel