effective_datatables 4.31.0 → 4.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b486b1aa04c99964485e843e50d9fc483f08c14f9441b307f9124ec1d43e0fc
|
4
|
+
data.tar.gz: 53ac8d45a2841c9910915a0911c82f78b0e2fb949812d68d38460e8768730f90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c783685d49c38c07f450d1cdda6ff9f99b0a51b4e6f3d242fbdf2fa7d1c5e555c4bb0888570feee54d875c77afc3b9d3360f2dbc4d934977c65c89e24d6325
|
7
|
+
data.tar.gz: 331d951ff82be00bc98c83789808585c71650f8b260e96f3c0bb1568be2c55d5c270e93c23ab6b04af5cda2bd1adcd6d6e130081199ed8265f3d83d3d4780f85
|
@@ -77,20 +77,23 @@ module Effective
|
|
77
77
|
)
|
78
78
|
|
79
79
|
if csv && (opts[:format] || opts[:partial]) && !formatted.frozen?
|
80
|
+
html_content = formatted.include?('<') && formatted.include?('>')
|
81
|
+
|
82
|
+
formatted.gsub!(" ", ' ')
|
80
83
|
formatted.gsub!("<br>\n", ' ')
|
81
84
|
formatted.gsub!("<br> ", ' ')
|
82
85
|
formatted.gsub!("<br>", ' ')
|
83
86
|
formatted.gsub!("<br/>", ' ')
|
84
87
|
formatted.gsub!("<br />", ' ')
|
85
|
-
formatted.gsub!("\n
|
86
|
-
formatted.gsub!("\n", ' ') unless formatted.include?('<')
|
87
|
-
|
88
|
-
if formatted.include?('<')
|
89
|
-
formatted.gsub!("\n", '')
|
90
|
-
formatted.gsub!("<div class='col-resource_item'>", ' ')
|
88
|
+
formatted.gsub!("\n", ' ')
|
91
89
|
|
90
|
+
if html_content
|
91
|
+
# formatted.gsub!(/<span[^>]*\bclass=["']?badge\b[^>]*>.*?<\/span>/, '')
|
92
|
+
formatted.gsub!('</div>', "</div>\n") if formatted.include?('col-resource_item')
|
92
93
|
formatted = view.strip_tags(formatted).strip
|
93
94
|
end
|
95
|
+
|
96
|
+
formatted.gsub!(' ', ' ')
|
94
97
|
end
|
95
98
|
|
96
99
|
row[index] = formatted
|
@@ -130,7 +133,7 @@ module Effective
|
|
130
133
|
when :duration
|
131
134
|
view.number_to_duration(value)
|
132
135
|
when :effective_addresses
|
133
|
-
csv ? value.to_html.gsub('<br>', "
|
136
|
+
csv ? value.to_html.gsub('<br>', '').gsub(" ", ' ') : value.to_html
|
134
137
|
when :effective_obfuscation
|
135
138
|
value.to_s
|
136
139
|
when :effective_roles
|
@@ -139,7 +142,7 @@ module Effective
|
|
139
142
|
csv ? value : view.mail_to(value)
|
140
143
|
when :integer
|
141
144
|
value.to_s
|
142
|
-
when :percent
|
145
|
+
when :percent, :percentage
|
143
146
|
case value
|
144
147
|
when Integer ; view.number_to_percentage(value / 1000.0, precision: 3).gsub('.000%', '%')
|
145
148
|
when Numeric ; view.number_to_percentage(value, precision: 3).gsub('.000%', '%')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_datatables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.31.
|
4
|
+
version: 4.31.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|