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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 423634bead5abf11f4605f85c5e79d48820a1e4d
4
- data.tar.gz: 13334a917228b435cb40c341b2c507ed1ee32c06
3
+ metadata.gz: 79f6be710b6181f08d3ed399d6de61c71e318036
4
+ data.tar.gz: 02e9935af696402c331f087cca505b0a8ede9004
5
5
  SHA512:
6
- metadata.gz: 8e15149b97833c4b4229482abd1d7888255621854d3cec6136324bd6fe81b9e73d32de444d687ad55c551b0066a93201999c42480968dc0bb80d34abaa99d06b
7
- data.tar.gz: ba2054ce610b9c4d12566aa95fb29af6360ce6059ef00db0f5b25be0c050e0bcec4e3502a9dbc5496c167832d616203b3ef1940d476949a861582cf3e56c3c24
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 = /[^\w\s]/)
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
@@ -1,3 +1,3 @@
1
1
  module DataFilter
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
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.0
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.5.1
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