searchlogic 2.4.6 → 2.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 2
3
3
  :minor: 4
4
4
  :build:
5
- :patch: 6
5
+ :patch: 7
@@ -126,7 +126,7 @@ module Searchlogic
126
126
 
127
127
  # This is here as a hook to allow people to modify the order in which the conditions are called, for whatever reason.
128
128
  def conditions_array
129
- conditions.to_a
129
+ @conditions.to_a
130
130
  end
131
131
 
132
132
  def normalize_scope_name(scope_name)
data/searchlogic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{searchlogic}
8
- s.version = "2.4.6"
8
+ s.version = "2.4.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Johnson of Binary Logic"]
data/spec/search_spec.rb CHANGED
@@ -380,6 +380,12 @@ describe "Search" do
380
380
  s.created_at_after = Time.now
381
381
  lambda { s.count }.should_not raise_error
382
382
  end
383
+
384
+ it "should not include blank values" do
385
+ s = User.search
386
+ s.conditions = {"id_equals" => ""}
387
+ s.proxy_options.should == {}
388
+ end
383
389
  end
384
390
 
385
391
  context "method delegation" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.6
4
+ version: 2.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic