switchman 1.9.11 → 1.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/log_subscriber.rb +10 -7
- data/lib/switchman/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: 7d6e0980d9c4929c486355edb768f75587e383e7
|
4
|
+
data.tar.gz: b96b815caced7b9788d9dcd0f767aa3aeb706597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c8a1db6976b5eb53989bee34d1951d953f09ed6a6c2fd1148260b91280fec6da7cbf20c07b0d1b52137e04fca4a08e36f04da0a56784ce0d0754f2f4e8281d
|
7
|
+
data.tar.gz: 525c098f8e71ea93bd8d23f059f9fcfc2652a2219140fabfd1099bcec90522396dfdb3bf12f28396ace6553438fffc9ac4af52647d56aa1241a9ec8876281a84
|
@@ -17,13 +17,16 @@ module Switchman
|
|
17
17
|
shard = " [#{shard[:database_server_id]}:#{shard[:id]} #{shard[:env]}]" if shard
|
18
18
|
|
19
19
|
unless (payload[:binds] || []).empty?
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
if ::Rails.version < '5'
|
21
|
+
binds = " " + payload[:binds].map { |col,v|
|
22
|
+
render_bind(col, v)
|
23
|
+
}.inspect
|
24
|
+
else
|
25
|
+
casted_params = type_casted_binds(payload[:binds], payload[:type_casted_binds])
|
26
|
+
binds = " " + payload[:binds].zip(casted_params).map { |attr, value|
|
27
|
+
render_bind(attr, value)
|
28
|
+
}.inspect
|
29
|
+
end
|
27
30
|
end
|
28
31
|
|
29
32
|
if ::Rails.version >= '5'
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-06-
|
13
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|