em-sequel-async 0.1.0 → 0.1.1
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.
- data/VERSION +1 -1
- data/em-sequel-async.gemspec +2 -2
- data/lib/em-sequel-async/mysql.rb +4 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/em-sequel-async.gemspec
CHANGED
@@ -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.
|
8
|
+
s.version = "0.1.1"
|
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-
|
12
|
+
s.date = "2012-11-15"
|
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 = [
|
@@ -27,7 +27,8 @@ class EmSequelAsync::Mysql
|
|
27
27
|
|
28
28
|
def initialize(db)
|
29
29
|
@options = {
|
30
|
-
:symbolize_keys => true
|
30
|
+
:symbolize_keys => true,
|
31
|
+
:cast_booleans => true
|
31
32
|
}
|
32
33
|
|
33
34
|
db.opts.each do |key, value|
|
@@ -102,7 +103,7 @@ class EmSequelAsync::Mysql
|
|
102
103
|
deferrable.callback do |result|
|
103
104
|
log(:debug, "(%.6fs) [OK] %s" % [ Time.now - start, query ])
|
104
105
|
|
105
|
-
callback.call(result, (Time.now - start).to_f, connection)
|
106
|
+
callback and callback.call(result, (Time.now - start).to_f, connection)
|
106
107
|
|
107
108
|
self.add(connection)
|
108
109
|
end
|
@@ -110,7 +111,7 @@ class EmSequelAsync::Mysql
|
|
110
111
|
log(:error, "(%.6fs) [ERR] %s (%s: %s)" % [ Time.now - start, query, err.class, err ])
|
111
112
|
log(:error, err.backtrace)
|
112
113
|
|
113
|
-
callback.call(false, (Time.now - start).to_f, connection, err)
|
114
|
+
callback and callback.call(false, (Time.now - start).to_f, connection, err)
|
114
115
|
|
115
116
|
self.add(connection)
|
116
117
|
end
|
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.1
|
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-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|