searchlogic 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/searchlogic/named_scopes/column_conditions.rb +6 -4
- data/searchlogic.gemspec +2 -2
- data/spec/searchlogic/active_record/association_proxy_spec.rb +1 -1
- data/spec/searchlogic/active_record/consistency_spec.rb +1 -1
- data/spec/searchlogic/core_ext/object_spec.rb +1 -1
- data/spec/searchlogic/core_ext/proc_spec.rb +1 -1
- data/spec/searchlogic/named_scopes/alias_scope_spec.rb +1 -1
- data/spec/searchlogic/named_scopes/association_conditions_spec.rb +1 -1
- data/spec/searchlogic/named_scopes/association_ordering_spec.rb +1 -1
- data/spec/searchlogic/named_scopes/column_conditions_spec.rb +1 -1
- data/spec/searchlogic/named_scopes/or_conditions_spec.rb +1 -1
- data/spec/searchlogic/named_scopes/ordering_spec.rb +1 -1
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -196,13 +196,15 @@ module Searchlogic
|
|
196
196
|
searchlogic_lambda(column.type, :skip_conversion => options[:skip_conversion]) { |*values|
|
197
197
|
values.collect! { |value| value_with_modifier(value, options[:value_modifier]) }
|
198
198
|
|
199
|
-
if does_not_equal && values == [nil]
|
200
|
-
sql.gsub
|
199
|
+
new_sql = if does_not_equal && values == [nil]
|
200
|
+
sql.gsub('!=', 'IS NOT')
|
201
201
|
elsif equals && values == [nil]
|
202
|
-
sql.gsub
|
202
|
+
sql.gsub('=', 'IS')
|
203
|
+
else
|
204
|
+
sql
|
203
205
|
end
|
204
206
|
|
205
|
-
{:conditions => [
|
207
|
+
{:conditions => [new_sql, *values]}
|
206
208
|
}
|
207
209
|
end
|
208
210
|
end
|
data/searchlogic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{searchlogic}
|
8
|
-
s.version = "2.5.
|
8
|
+
s.version = "2.5.3"
|
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"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-09}
|
13
13
|
s.description = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
|
14
14
|
s.email = %q{bjohnson@binarylogic.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: searchlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.5.
|
5
|
+
version: 2.5.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ben Johnson of Binary Logic
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-09 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
hash: -
|
107
|
+
hash: -3818165968683800774
|
108
108
|
segments:
|
109
109
|
- 0
|
110
110
|
version: "0"
|