ruben-sunspot 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source :rubygems
2
2
 
3
3
  require File.expand_path('../lib/sunspot/version', __FILE__)
4
4
 
5
- gem 'sunspot', Sunspot::VERSION, :path => File.expand_path('..', __FILE__)
5
+ gem 'ruben-sunspot', Sunspot::VERSION, :path => File.expand_path('..', __FILE__)
6
6
 
7
7
  group :test do
8
8
  gem 'rspec', '~> 1.3'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sunspot (1.1.0)
4
+ ruben-sunspot (1.1.0)
5
5
  escape (= 0.0.4)
6
6
  rsolr (= 0.12.1)
7
7
 
@@ -19,4 +19,4 @@ PLATFORMS
19
19
 
20
20
  DEPENDENCIES
21
21
  rspec (~> 1.3)
22
- sunspot (= 1.1.0)!
22
+ ruben-sunspot (= 1.1.0)!
@@ -24,7 +24,7 @@ module Sunspot
24
24
  if @boost_functions.empty?
25
25
  params = {:q => @keywords}
26
26
  else
27
- params = {:q => "{!boost b=#{@boost_functions.map { |boost_function| boost_function.to_s }} v=#{@keywords} defType=dismax}"}
27
+ params = {:q => "{!boost b=#{@boost_functions.map { |boost_function| boost_function.to_s }} v=\"#{@keywords}\" defType=dismax}"}
28
28
  end
29
29
  params[:fl] = '* score'
30
30
  params[:qf] = @fulltext_fields.values.map { |field| field.to_boosted_field }.join(' ')
@@ -106,7 +106,7 @@ module Mock
106
106
  end
107
107
 
108
108
  def has_last_search_boosted?(boost,value)
109
- has_last_search_including?(:q, "{!boost b=#{boost} v=#{value} defType=dismax}")
109
+ has_last_search_including?(:q, "{!boost b=#{boost} v=\"#{value}\" defType=dismax}")
110
110
  end
111
111
 
112
112
  private
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruben-sunspot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mat Brown