leviathan-rails 0.0.3.alpha → 0.0.4.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/leviathan-rails.rb +2 -11
  2. metadata +2 -2
@@ -1,19 +1,12 @@
1
1
  require 'socket'
2
+ require 'yaml'
2
3
  require 'rubygems'
3
4
  require 'msgpack'
4
- require 'yaml'
5
- require 'activesupport_notifications_backport'
5
+ require 'active_support'
6
6
 
7
7
  APP_ROOT = File.dirname(__FILE__)
8
8
 
9
9
  module Leviathan
10
- class SqlLogSubscriber < ActiveSupport::LogSubscriber
11
- def sql(event)
12
- message = event.payload,to_msgpack
13
- UDPSocket.new.send message, 0, Leviathon::connection[:port], Leviathan::connection[:port]
14
- end
15
- end
16
-
17
10
  def self.connection
18
11
  @connection
19
12
  end
@@ -32,8 +25,6 @@ module Leviathan
32
25
  Leviathan::notify(connection, args)
33
26
  end
34
27
  end
35
-
36
- SqlLogSubscriber.attach_to :active_record
37
28
  end
38
29
 
39
30
  def self.notify(connection, args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leviathan-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.alpha
4
+ version: 0.0.4.alpha
5
5
  prerelease: 6
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-04-19 00:00:00.000000000 Z
12
+ date: 2013-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport_notifications_backport