mwmitchell-rsolr-ext 0.7.9 → 0.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/rsolr-ext.rb CHANGED
@@ -23,7 +23,7 @@ module RSolr
23
23
 
24
24
  module Ext
25
25
 
26
- VERSION = '0.7.9'
26
+ VERSION = '0.7.10'
27
27
 
28
28
  autoload :Request, 'rsolr-ext/request.rb'
29
29
  autoload :Response, 'rsolr-ext/response.rb'
data/lib/rsolr-ext/doc.rb CHANGED
@@ -49,11 +49,15 @@ module RSolr::Ext::Doc
49
49
 
50
50
  def default_params
51
51
  @default_params ||= {:qt=>:standard, :rows=>10}
52
+ # don't allow nil values to pass!
53
+ @default_params.delete_if {|k,v| v.to_s.empty?}
54
+ @default_params
52
55
  end
53
56
 
54
57
  def find(*args)
55
58
  mode, solr_params, opts = connection.send(:extract_find_opts!, *args)
56
- connection.find(*[mode, default_params.merge(solr_params), opts]) { |doc| self.new(doc) }
59
+ final_params = default_params.merge(solr_params)
60
+ connection.find(*[mode, final_params, opts]) { |doc| self.new(doc) }
57
61
  end
58
62
 
59
63
  def find_by_id(id, solr_params={}, opts={})
data/rsolr-ext.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rsolr-ext"
3
- s.version = "0.7.9"
3
+ s.version = "0.7.10"
4
4
  s.date = "2009-05-08"
5
5
  s.summary = "An extension lib for RSolr"
6
6
  s.email = "goodieboy@gmail.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwmitchell-rsolr-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Mitchell