currentsh 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/currentsh/rails.rb +13 -10
- data/lib/currentsh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ecb923ee99155d461618165552acea0938a7dc4
|
4
|
+
data.tar.gz: 4976337e606613ec578fb0a6d7ae05244af3ec87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d14bf9642aaf7113ec28bf803e27b26adffb46a2c1e20cf41279ef87dd45da717ede08b40a5bc553a0385ba63b3d9431247ddcee01220eabd8b628bf18bf34c
|
7
|
+
data.tar.gz: 915a81449601f1da462c7ef100a11eaa20f2123dfc47a56a39d130e6f1a31c28e2a4e6f402f194aa9fd13821812b911f36444fac322f783e5e50cfee0651ca5e
|
data/lib/currentsh/rails.rb
CHANGED
@@ -45,18 +45,21 @@ module Currentsh
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def sql(event)
|
48
|
-
|
49
|
-
{ :name => attribute.name, :type => attribute.type, :value => value }
|
50
|
-
end
|
48
|
+
binds = {}
|
51
49
|
|
50
|
+
if raw = event.payload[:binds]
|
51
|
+
raw.each do |(attribute,value)|
|
52
|
+
binds[attribute.name] = {:type => attribute.type, :value => value }
|
53
|
+
end
|
54
|
+
end
|
52
55
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
data = {
|
57
|
+
:type => "sql",
|
58
|
+
:name => event.payload[:name],
|
59
|
+
:transaction => event.transaction_id,
|
60
|
+
:query => event.payload[:sql].strip,
|
61
|
+
:binds => binds,
|
62
|
+
}
|
60
63
|
|
61
64
|
@output << data
|
62
65
|
end
|
data/lib/currentsh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: currentsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Phoenix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|