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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddb730caa780b9939af76f1520742d46fa0f1cf8
4
- data.tar.gz: 19ae5ba9eda7dd1f34331ed8aae20547527d90f0
3
+ metadata.gz: 7ecb923ee99155d461618165552acea0938a7dc4
4
+ data.tar.gz: 4976337e606613ec578fb0a6d7ae05244af3ec87
5
5
  SHA512:
6
- metadata.gz: 1e36ba7ff55c6c950a5056ed93529c9a3eef97e0f10d74e8af602d752e810667a9c6cd083c329b6b004bf85dc133e4c01e7ac2665560107f7e42b76ac6789b55
7
- data.tar.gz: 630e2e19818a1a0549f3dbe64f1768bd1f904b414b604f0ac56ce1abed0b3870d67215b539d9c7aff6fc578b999cc5d9a1003781ae33ae66a3ef31abdd30abac
6
+ metadata.gz: 2d14bf9642aaf7113ec28bf803e27b26adffb46a2c1e20cf41279ef87dd45da717ede08b40a5bc553a0385ba63b3d9431247ddcee01220eabd8b628bf18bf34c
7
+ data.tar.gz: 915a81449601f1da462c7ef100a11eaa20f2123dfc47a56a39d130e6f1a31c28e2a4e6f402f194aa9fd13821812b911f36444fac322f783e5e50cfee0651ca5e
@@ -45,18 +45,21 @@ module Currentsh
45
45
  end
46
46
 
47
47
  def sql(event)
48
- binds = event.payload[:binds].map do |(attribute,value)|
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
- data = {
54
- :type => "sql",
55
- :name => event.payload[:name],
56
- :transaction => event.transaction_id,
57
- :query => event.payload[:sql].strip,
58
- :binds => binds,
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
@@ -1,3 +1,3 @@
1
1
  module Currentsh
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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-16 00:00:00.000000000 Z
11
+ date: 2015-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler