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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1b648716eb4434b25dccc792ee10f94afb8b973
4
- data.tar.gz: 7c7493d26eb99f76f3eb4d5178fad981d0475ba2
3
+ metadata.gz: 7d6e0980d9c4929c486355edb768f75587e383e7
4
+ data.tar.gz: b96b815caced7b9788d9dcd0f767aa3aeb706597
5
5
  SHA512:
6
- metadata.gz: 8243ad517e01b10c998ebd6f8d49e28ac27a47a3bb40b131b3d34a990b4546157c8243b63fa479e83ed91fab6e4444dd27d191e6a8ac775fc2c6d332a188bf25
7
- data.tar.gz: aadb9422b5c76b5fbd26a06b190a4b1550550f60258734f7df32a6fe93a1edec9e12398f88893e6543490584782a27442b438e14a308b4ed701daeb17619a76b
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
- binds = " " + payload[:binds].map { |col,v|
21
- if col
22
- [col.name, v]
23
- else
24
- [nil, v]
25
- end
26
- }.inspect
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'
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.9.11"
2
+ VERSION = "1.9.12"
3
3
  end
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.11
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 00:00:00.000000000 Z
13
+ date: 2017-06-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties