search_me 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -13
  2. data/lib/search_me/filters.rb +4 -0
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Yjc1ZWM1YmI2NDgyMDYwNTMwOGVkODkzZmIxMjU4NGYzZWE3MWNiMw==
5
- data.tar.gz: !binary |-
6
- YzkzZTAxMDAzODA2NTRkYmNiYTViNmZhMTQzYTcwYzY4NjZjODI1OA==
2
+ SHA1:
3
+ metadata.gz: 59d61823b49287334429aa027d097609b98e79bf
4
+ data.tar.gz: a083b0960764653d68f3a5f667970e0a7ebbdc86
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDBhMTNiOTIwYWRiMzQ3ODJjZGQ2OTQ0NjBmZmJlYzBmMzMzYzQzOWUzNDli
10
- ZTRjODQyODg3ZDgxNDAyY2U4NjRjODk3YWE4MGMzZWRhM2IxM2UwNGNlYmIz
11
- MDJhMWRmNTFhNzdjZGQ3MzkwMzAyNjYyM2ZmZjdjMWM5MWZlODQ=
12
- data.tar.gz: !binary |-
13
- MmMxZGYxZjMxYmE5OGNmZTlhMTY4MTYxZGJiZTY0NWFkMzBkYmJkYzY4OGY3
14
- YzllNTBkZmEyZTZmOWUxZDQzOWY1MGRlOGMwYzM4ODcwY2MxZmYwODEzNjgx
15
- ODg2NmZlYzI1NDFlNjUzOWEwZmM1MTJkMzM5NmQ1ZGY5OGYxZmY=
6
+ metadata.gz: c7c32b35467f1929570088d139e9930ebb1e3f86722debe6981f7bd9723c6b0c8c8fce226e19ae2245d21579fa375c1ef27b0ebeea96aaa7d1d49ad766a0feb0
7
+ data.tar.gz: 4e3f3ea4753af52e0afd133c00fd5de242b4e570faad9d08734ed0c6e4e371cedca78bba19c3c4d30950a7f510aec926eeb49baa25defef63df813f7b6f7e32c
@@ -70,6 +70,10 @@ module SearchMe
70
70
  end
71
71
  end
72
72
 
73
+ def filter_by_range(range)
74
+ build_between_query_for([range.first, range.last])
75
+ end
76
+
73
77
  private
74
78
  def build_between_query_for(duration)
75
79
  field = SearchMe.config.time_field
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jphager2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Uses LIKE to search attributes and return any objects of the model for
14
14
  which a match is found
@@ -31,17 +31,17 @@ require_paths:
31
31
  - lib
32
32
  required_ruby_version: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 2.2.2
44
+ rubygems_version: 2.4.6
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Allows you to define attributes of active record model and its related models