hash_filterer 0.1.3 → 0.1.4
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 +4 -4
- data/lib/hash_filterer.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: a001fe670e3cfcf2d8172df46502f370d1b2313c
|
|
4
|
+
data.tar.gz: 25c1e84c30c4c5b3ebbd0134d6035ef90ebb8d06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4bc461966ced273a6db28daadb920b55ed5d382c3c97fc3987c0385f0354d459675bd7e54e6f9ed3f21e1086320f4d9cb4cd285c2e537f34a4a73327b4e2477b
|
|
7
|
+
data.tar.gz: 8d8aec4c4889d8d064eb86537c59bda93910e12c89054850d40a6581ca89fe3aee70662bf07a31321688140fbdeb00955bfdda203f9c0e96b60a3cad6f5afc37
|
data/lib/hash_filterer.rb
CHANGED
|
@@ -15,7 +15,7 @@ class HashFilterer
|
|
|
15
15
|
|
|
16
16
|
def self.allowed_preprocessors
|
|
17
17
|
# TODO: Make this a config / maybe just remove
|
|
18
|
-
['downcase', 'upcase', 'nil?', 'blank?', 'to_s', 'to_f', 'to_i', 'strip']
|
|
18
|
+
['downcase', 'upcase', 'nil?', 'blank?', 'to_s', 'to_f', 'to_i', 'strip', 'count']
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
# nil_ok should be true or false to specify the behavior when the value is nil
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hash_filterer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guillaume Leseur
|
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
39
39
|
version: '0'
|
|
40
40
|
requirements: []
|
|
41
41
|
rubyforge_project:
|
|
42
|
-
rubygems_version: 2.
|
|
42
|
+
rubygems_version: 2.6.14
|
|
43
43
|
signing_key:
|
|
44
44
|
specification_version: 4
|
|
45
45
|
summary: Applies rules to a hash
|