honkster-acts_as_solr 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGE_LOG CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  == CHANGE_LOG
3
3
  === Development
4
+ <b>NEW</b>:: Return an empty SearchResult, rather than nil, when the query returns nothing.
4
5
  <b>NEW</b>:: Better error message for parse errors.
5
6
  <b>NEW</b>:: Using ENV['RAILS_ENV'] instead of RAILS_ENV, so multiple test environments are supported.
6
7
  <b>FIX</b>:: Fixed load path collisions
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -110,7 +110,7 @@ module ActsAsSolr #:nodoc:
110
110
  #
111
111
  def find_by_solr(query, options={})
112
112
  data = parse_query(query, options)
113
- return parse_results(data, options) if data
113
+ return parse_results(data, options)
114
114
  end
115
115
 
116
116
  # Finds instances of a model and returns an array with the ids:
@@ -119,7 +119,7 @@ module ActsAsSolr #:nodoc:
119
119
  #
120
120
  def find_id_by_solr(query, options={})
121
121
  data = parse_query(query, options)
122
- return parse_results(data, {:format => :ids}) if data
122
+ return parse_results(data, {:format => :ids})
123
123
  end
124
124
 
125
125
  # This method can be used to execute a search across multiple models:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honkster-acts_as_solr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer