superfeedr-em-mysql 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/em-mysql.gemspec +2 -1
  2. data/lib/em/mysql.rb +1 -5
  3. metadata +11 -1
data/em-mysql.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'superfeedr-em-mysql'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.date = '2009-06-23'
5
5
  s.summary = 'Async MySQL client API for Ruby/EventMachine'
6
6
  s.email = "em-mysql@tmm1.net"
@@ -9,6 +9,7 @@ spec = Gem::Specification.new do |s|
9
9
  s.has_rdoc = false
10
10
  s.authors = ["Aman Gupta"]
11
11
  s.add_dependency('eventmachine', '>= 0.12.9')
12
+ s.add_dependency('mysqlplus', '>= 0.1.1')
12
13
 
13
14
  # git ls-files
14
15
  s.files = %w[
data/lib/em/mysql.rb CHANGED
@@ -176,7 +176,7 @@ class EventedMysql < EM::Connection
176
176
 
177
177
  def log *args
178
178
  return unless @opts[:logging]
179
- p [Time.now, @fd, (@signature[-4..-1] if @signature), *args]
179
+ p [Time.now, @fd, (@signature if @signature), *args]
180
180
  end
181
181
 
182
182
  public
@@ -186,8 +186,6 @@ class EventedMysql < EM::Connection
186
186
  raise RuntimeError, 'mysqlplus and EM.watch are required for EventedMysql'
187
187
  end
188
188
 
189
- opts = servers_opts.pop
190
- opts[:failover] = servers_opts
191
189
  if conn = _connect(opts)
192
190
  EM.watch conn.socket, self, conn, opts
193
191
  else
@@ -246,8 +244,6 @@ class EventedMysql < EM::Connection
246
244
  if cb = opts[:on_error]
247
245
  cb.call(e)
248
246
  nil
249
- elsif opts[:failover]
250
- connect(opts[:failover])
251
247
  else
252
248
  raise e
253
249
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superfeedr-em-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
@@ -22,6 +22,16 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 0.12.9
24
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: mysqlplus
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.1
34
+ version:
25
35
  description: Async MySQL client API for Ruby/EventMachine
26
36
  email: em-mysql@tmm1.net
27
37
  executables: []