mini_defender 0.3.2 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mini_defender/rules/digits.rb +1 -1
- data/lib/mini_defender/validates_input.rb +3 -3
- data/lib/mini_defender/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b504f6737dd4de0f27c8f263f5cd801def18b35aabfbbaf20c379a9a0c1548d1
|
4
|
+
data.tar.gz: 5bf02fdf3d7a88c439011b715ace6f438b507d5be64a94a98366cc9bff51cb57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa504e280a82ee708d96ed75eed98a8023889a556c07f31e7eede9102a7c9b66a383b94c818a14df185f6c09db243e68b860f86c4e97918f02d6e8cea8f4dc07
|
7
|
+
data.tar.gz: 32f393080669ffcbae0af8341560a5d36eea368ba3ac62188758e2f975fd8dc046f9a39f60db1e1dfe5d148d2552657761aaa420337c85ab1fe2db8fd74ed893
|
@@ -20,11 +20,11 @@ module MiniDefender::ValidatesInput
|
|
20
20
|
data.map{ |v| cleanse_data(v, depth + 1) }.reject(&:nil?)
|
21
21
|
when Hash
|
22
22
|
data.to_h{ |k, v| [k, cleanse_data(v, depth + 1)] }.compact
|
23
|
-
when
|
23
|
+
when String
|
24
|
+
data = data.strip
|
25
|
+
data = nil if data == ''
|
24
26
|
data
|
25
27
|
else
|
26
|
-
data = data.to_s.strip
|
27
|
-
data = nil if data == ''
|
28
28
|
data
|
29
29
|
end
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_defender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Alhoshaiyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|