effective_datatables 4.20.0 → 4.20.1

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
  SHA256:
3
- metadata.gz: c5bf5141b655e975b0e158b2f33572d8b8acc1f13ffa50d25f761795c6cdeb25
4
- data.tar.gz: 67c30d8895b19d093e43e6ae1b521a528a18ea8ca156ca90209e8c1c922248c2
3
+ metadata.gz: eb9f04b853ac311223db59175787b3b9671a5e5eb74c97a393f5d575ac72f714
4
+ data.tar.gz: 4db05c99cee7e59f7cd4e36018246a8a37348380317511414ee07fbf4ff0d690
5
5
  SHA512:
6
- metadata.gz: 0d08c8f32b066240576a4e4ee4cdea3916999d6c26f44e9c4533b125625de29922ae49ceebfdbd9ce68ba6be5d7da81255f9b60e54af5a250b380ae9bab94952
7
- data.tar.gz: e20da9812bae53fbcaf98fc18022d624c41fe918f544607ea6a7ad0c8d8d062b9f4c8dc89fe5ca067e3b9daf2e47e2537404ce40a50d0c514b475a06b9aa05b7
6
+ metadata.gz: ebe4d62789555527455fcd14bb7a90b75dc66274ee7ee76fcec1522a34e97d1db22074ceaef131b27dbac62744a678fd870c0b6d845d3eb723ef03a71f1bfebf
7
+ data.tar.gz: 1f705f91ad14fe6735e60771d2ab64717622d36da4da0291ba43683612b458400f7572b474634452a33793a175ce2f3fc0d86a1b66a610c9278ce9cf0e75b600
@@ -144,13 +144,19 @@ module Effective
144
144
  when :text
145
145
  if csv
146
146
  value
147
- elsif value.to_s.starts_with?('<') && value.ends_with?('>')
147
+ elsif value.to_s.starts_with?('<') && value.to_s.ends_with?('>')
148
148
  view.sanitize(value.to_s)
149
149
  else
150
150
  view.simple_format(value.to_s)
151
151
  end
152
152
  when :string
153
- csv ? value : view.escape_once(value.to_s)
153
+ if csv
154
+ value
155
+ elsif value.to_s.starts_with?('<') && value.to_s.ends_with?('>')
156
+ view.sanitize(value.to_s)
157
+ else
158
+ view.escape_once(value.to_s)
159
+ end
154
160
  else
155
161
  value.to_s
156
162
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.20.0'.freeze
2
+ VERSION = '4.20.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.20.0
4
+ version: 4.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect