searchlogic 2.4.4 → 2.4.5

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: 4
5
+ :patch: 5
@@ -189,7 +189,7 @@ module Searchlogic
189
189
  when Range
190
190
  Range.new(type_cast(value.first, type), type_cast(value.last, type))
191
191
  else
192
- if ignore_value?(value)
192
+ if setting_mass_conditions? && ignore_value?(value)
193
193
  value
194
194
  else
195
195
  # Let's leverage ActiveRecord's type casting, so that casting is consistent
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.4"
8
+ s.version = "2.4.5"
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
@@ -224,6 +224,12 @@ describe "Search" do
224
224
  search.id_nil.should == false
225
225
  end
226
226
 
227
+ it "should be an Integer given ''" do
228
+ search = User.search
229
+ search.id_gt = ''
230
+ search.id_gt.should == 0
231
+ end
232
+
227
233
  it "should be an Integer given 1" do
228
234
  search = User.search
229
235
  search.id_gt = 1
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.4
4
+ version: 2.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Johnson of Binary Logic