has_searcher 0.0.95.2 → 0.0.95.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,10 +17,10 @@ class Searcher::Configuration
17
17
  instance_eval &block if block
18
18
  end
19
19
 
20
- def keywords(field, options={})
20
+ def keywords(field, options={}, &block)
21
21
  search_object.create_field(field, options)
22
22
  scope do |sunspot|
23
- sunspot.fulltext search_object.send(field) if search_object.send(field).presence
23
+ sunspot.fulltext(search_object.send(field), &block) if search_object.send(field).presence
24
24
  end
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module HasSearcher
2
- VERSION = "0.0.95.2"
2
+ VERSION = "0.0.95.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_searcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.95.2
4
+ version: 0.0.95.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-08 00:00:00.000000000 Z
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: 3851623520729360304
149
+ hash: -4088489999752866781
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 3851623520729360304
158
+ hash: -4088489999752866781
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 1.8.24