em-pg 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/em-pg.gemspec +1 -1
- data/lib/em/pg.rb +2 -2
- metadata +1 -1
data/em-pg.gemspec
CHANGED
data/lib/em/pg.rb
CHANGED
@@ -4,7 +4,7 @@ require 'logger'
|
|
4
4
|
|
5
5
|
module EM
|
6
6
|
class PG
|
7
|
-
VERSION = '0.1.
|
7
|
+
VERSION = '0.1.1'
|
8
8
|
include EM::Deferrable
|
9
9
|
|
10
10
|
class Error < RuntimeError
|
@@ -64,7 +64,7 @@ module EM
|
|
64
64
|
attr_accessor :pg, :conn, :opts, :state, :logger, :watcher, :on_disconnect
|
65
65
|
def initialize(opts)
|
66
66
|
opts = opts.dup
|
67
|
-
@logger = opts.delete(:logger) || EM::
|
67
|
+
@logger = opts.delete(:logger) || EM::PG.logger
|
68
68
|
@on_disconnect = opts.delete(:on_disconnect)
|
69
69
|
@opts = opts
|
70
70
|
@state = :connecting
|