data_filter 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_filter/like_filter.rb +2 -2
- data/lib/data_filter/version.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: 79f6be710b6181f08d3ed399d6de61c71e318036
|
4
|
+
data.tar.gz: 02e9935af696402c331f087cca505b0a8ede9004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bd9a36ac962dac9bf812a77064a5b1d2c786cd83485b689b7272233f58612e707cef21e643f889642214a613f3b8779af0ece0c51aae1c398c614fcf80ec565
|
7
|
+
data.tar.gz: 55616f382fb58d3b09759b786c3bb63b51bf098d36b674d86b5aaefd85a576b99d83c1c10d628a8b5867162d5348dbc01dcec0b9d314968f2e725f12f8110687
|
@@ -14,10 +14,10 @@ module DataFilter
|
|
14
14
|
# filtering the data item
|
15
15
|
# @param normalize_regex [regex] the optional regular
|
16
16
|
# expression for normalizing the string to search
|
17
|
-
def initialize(field_sym, search_term, normalize_regex =
|
17
|
+
def initialize(field_sym, search_term, normalize_regex = nil)
|
18
18
|
@field_sym = field_sym
|
19
19
|
@search_term = search_term
|
20
|
-
@normalize_regex = normalize_regex
|
20
|
+
@normalize_regex = normalize_regex || /[^\w\s]/
|
21
21
|
end
|
22
22
|
|
23
23
|
# Filters the item
|
data/lib/data_filter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bodah
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.2.3
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: an extensible DSL for filtering data sets
|