tb_search 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/spud_search/searchable.rb +2 -2
- data/lib/spud_search/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmNlNWNlNmU4YzliNDkzOGU5NmNjMTMwNzMyOGNhMTVmZTgxYTZiYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjUyMGNhODFkYzA2NDYwMThmZDMzOTg3MGYyYTgzOTEwZDRiMzYzYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGNkNDhiYTBmZGIyZDJkN2VhZDU0YzkwMjhjMjk5YTM0NTQ0M2ZhYjQ2YWQy
|
10
|
+
ZDE3N2U1NTc5YTM1YzNjM2EwNzYwOTI2MDc0OGZjMzhmN2Q3MDFmYjc4MDhk
|
11
|
+
MjdiNGM2MDk3YjY5ZmQzYmNkY2JmODU2YzMzM2E4YzU2MWJlMTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTEwYmYxYjZmOTkzOTg5NWQ0ZmEyNzZhOWRhYWMyY2M0MzJlMjMwODFkZDQ4
|
14
|
+
N2I4MWJjOGIwY2JkNjliNDc1NmE2NTUwNWE2YmUxY2YzMTEyMjU0ZjlhZjRl
|
15
|
+
OTA1NDM2ZWNhZGZkMWRkOTRkNjMyN2IwMThhOTYxYTMzNWVmY2Q=
|
@@ -7,12 +7,12 @@ module Spud::Searchable
|
|
7
7
|
def spud_searchable
|
8
8
|
if self.name == 'SpudPage'
|
9
9
|
self.instance_eval do
|
10
|
-
acts_as_indexed :fields => [:name
|
10
|
+
acts_as_indexed :fields => [:name, :meta_keywords, :meta_description, :full_content_processed], :if => Proc.new { |page| page.published == true && page.visibility == 0 }
|
11
11
|
end
|
12
12
|
end
|
13
13
|
if self.name == 'SpudPost'
|
14
14
|
self.instance_eval do
|
15
|
-
acts_as_indexed :fields => [:title
|
15
|
+
acts_as_indexed :fields => [:title, :content_processed, :category_names], :if => Proc.new { |post| post.published_at <= Time.now.utc && post.visible == true }
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/spud_search/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.0.
|
205
|
+
rubygems_version: 2.0.7
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Acts as indexed adapter for tb core for quick searches of pages and blogs
|