has_searcher 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/has_searcher.gemspec +1 -0
- data/lib/app/models/search.rb +1 -1
- data/lib/has_searcher/version.rb +1 -1
- metadata +33 -5
data/.gitignore
CHANGED
data/has_searcher.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = %q{This gem adds ability to construct search objects for indexed models.
|
14
14
|
It works with sunspot, inherited_resources and formtastic}
|
15
15
|
|
16
|
+
s.add_dependency "rails", ["> 3.0.0", "< 3.2.0"]
|
16
17
|
s.rubyforge_project = "has_searcher"
|
17
18
|
|
18
19
|
s.files = `git ls-files`.split("\n")
|
data/lib/app/models/search.rb
CHANGED
@@ -36,7 +36,7 @@ class Search < ActiveRecord::Base
|
|
36
36
|
protected
|
37
37
|
|
38
38
|
def search
|
39
|
-
|
39
|
+
Sunspot.search klass do | search |
|
40
40
|
search.keywords keywords if search_columns.delete("keywords")
|
41
41
|
search_columns.each do | column |
|
42
42
|
value = normalize(column)
|
data/lib/has_searcher/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
|
8
|
+
- 10
|
9
|
+
segments_generated: true
|
10
|
+
version: 0.0.10
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Dmitry Lihachev
|
@@ -14,10 +15,33 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-21 00:00:00 +07:00
|
18
19
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rails
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 0
|
31
|
+
- 0
|
32
|
+
segments_generated: true
|
33
|
+
version: 3.0.0
|
34
|
+
- - <
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
segments:
|
37
|
+
- 3
|
38
|
+
- 2
|
39
|
+
- 0
|
40
|
+
segments_generated: true
|
41
|
+
version: 3.2.0
|
42
|
+
type: :runtime
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: *id001
|
21
45
|
description: |-
|
22
46
|
This gem adds ability to construct search objects for indexed models.
|
23
47
|
It works with sunspot, inherited_resources and formtastic
|
@@ -56,16 +80,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
80
|
requirements:
|
57
81
|
- - ">="
|
58
82
|
- !ruby/object:Gem::Version
|
83
|
+
hash: -260311417459962634
|
59
84
|
segments:
|
60
85
|
- 0
|
86
|
+
segments_generated: true
|
61
87
|
version: "0"
|
62
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
89
|
none: false
|
64
90
|
requirements:
|
65
91
|
- - ">="
|
66
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: -260311417459962634
|
67
94
|
segments:
|
68
95
|
- 0
|
96
|
+
segments_generated: true
|
69
97
|
version: "0"
|
70
98
|
requirements: []
|
71
99
|
|