em-sequel-async 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +8 -0
- data/RELEASES.txt +9 -0
- data/VERSION +1 -1
- data/em-sequel-async.gemspec +6 -5
- data/lib/em-sequel-async/mysql.rb +7 -5
- metadata +5 -4
- data/README.rdoc +0 -19
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
ADDED
data/RELEASES.txt
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/em-sequel-async.gemspec
CHANGED
@@ -5,22 +5,23 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "em-sequel-async"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.5"
|
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 = "2013-
|
12
|
+
s.date = "2013-09-10"
|
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 = [
|
16
16
|
"LICENSE.txt",
|
17
|
-
"README.
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
"Gemfile",
|
22
22
|
"LICENSE.txt",
|
23
|
-
"README.
|
23
|
+
"README.md",
|
24
|
+
"RELEASES.txt",
|
24
25
|
"Rakefile",
|
25
26
|
"VERSION",
|
26
27
|
"em-sequel-async.gemspec",
|
@@ -34,7 +35,7 @@ Gem::Specification.new do |s|
|
|
34
35
|
s.homepage = "http://github.com/tadman/em-sequel-async"
|
35
36
|
s.licenses = ["MIT"]
|
36
37
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = "1.8.
|
38
|
+
s.rubygems_version = "1.8.23"
|
38
39
|
s.summary = "Asynchronous Helper Methods for Sequel"
|
39
40
|
|
40
41
|
if s.respond_to? :specification_version then
|
@@ -132,10 +132,12 @@ class EmSequelAsync::Mysql
|
|
132
132
|
|
133
133
|
handled = true
|
134
134
|
when /MySQL server has gone away|Lost connection/i
|
135
|
-
@query_queue << [ query, callback ]
|
136
|
-
|
137
135
|
self.remove(connection)
|
138
136
|
|
137
|
+
EventMachine::Timer.new(10) do
|
138
|
+
self.query(query, &callback)
|
139
|
+
end
|
140
|
+
|
139
141
|
handled = true
|
140
142
|
end
|
141
143
|
end
|
@@ -153,11 +155,11 @@ class EmSequelAsync::Mysql
|
|
153
155
|
rescue Mysql2::Error => err
|
154
156
|
case (err.message)
|
155
157
|
when /MySQL server has gone away|Lost connection/i
|
156
|
-
@query_queue << [ query, callback ]
|
157
|
-
|
158
158
|
self.remove(connection)
|
159
159
|
|
160
|
-
|
160
|
+
EventMachine::Timer.new(10) do
|
161
|
+
self.query(query, &callback)
|
162
|
+
end
|
161
163
|
end
|
162
164
|
end
|
163
165
|
|
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.
|
4
|
+
version: 0.1.5
|
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: 2013-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
@@ -113,12 +113,13 @@ executables: []
|
|
113
113
|
extensions: []
|
114
114
|
extra_rdoc_files:
|
115
115
|
- LICENSE.txt
|
116
|
-
- README.
|
116
|
+
- README.md
|
117
117
|
files:
|
118
118
|
- .document
|
119
119
|
- Gemfile
|
120
120
|
- LICENSE.txt
|
121
|
-
- README.
|
121
|
+
- README.md
|
122
|
+
- RELEASES.txt
|
122
123
|
- Rakefile
|
123
124
|
- VERSION
|
124
125
|
- em-sequel-async.gemspec
|
data/README.rdoc
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= em-sequel-async
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to em-sequel-async
|
6
|
-
|
7
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
-
* Fork the project.
|
10
|
-
* Start a feature/bugfix branch.
|
11
|
-
* Commit and push until you are happy with your contribution.
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2012 Scott Tadman. See LICENSE.txt for
|
18
|
-
further details.
|
19
|
-
|