em-sequel-async 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/em-sequel-async.gemspec +2 -2
- data/lib/em-sequel-async/mysql.rb +4 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
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.3"
|
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-27"
|
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 = [
|
@@ -8,7 +8,7 @@ class EmSequelAsync::Mysql
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.size
|
11
|
-
@size ||=
|
11
|
+
@size ||= 32
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.trace?
|
@@ -51,7 +51,7 @@ class EmSequelAsync::Mysql
|
|
51
51
|
@connection_pool = [ ]
|
52
52
|
@connections_active = { }
|
53
53
|
|
54
|
-
@connection_limit =
|
54
|
+
@connection_limit = db.opts[:connections] || self.class.size
|
55
55
|
|
56
56
|
if (EventMachine.reactor_running? and self.class.trace?)
|
57
57
|
EventMachine::PeriodicTimer.new(1) do
|
@@ -61,6 +61,8 @@ class EmSequelAsync::Mysql
|
|
61
61
|
f.puts @options[:database]
|
62
62
|
|
63
63
|
@connections.each do |c, x|
|
64
|
+
next unless (x)
|
65
|
+
|
64
66
|
f.puts "\t#{c.inspect} -> #{x.inspect}"
|
65
67
|
end
|
66
68
|
@connection_pool.each do |c|
|
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.3
|
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-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|