rd_searchlogic 3.0.0.rc3 → 3.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gem.description = "Searchlogic makes using ActiveRecord named scopes easier and less repetitive."
10
10
  gem.email = "bjohnson@binarylogic.com"
11
11
  gem.homepage = "http://github.com/railsdog/searchlogic"
12
- gem.authors = ["Ben Johnson of Binary Logic"]
12
+ gem.authors = ["Ben Johnson of Binary Logic", "Roman Smirnov of RailsDog"]
13
13
  gem.rubyforge_project = "searchlogic"
14
14
  gem.add_dependency "activerecord", ">= 3.0.0"
15
15
  end
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
- :build: rc3
3
+ :build: rc4
4
4
  :minor: 0
5
5
  :patch: 0
@@ -137,15 +137,15 @@ module Searchlogic
137
137
  when /^not_end_with/
138
138
  scope_options(condition, column_type, "#{table_name}.#{column} NOT #{match_keyword} ?", :skip_conversion => skip_conversion, :value_modifier => :ends_with)
139
139
  when "null"
140
- lambda { where("#{table_name}.#{column} IS NULL")}
140
+ where("#{table_name}.#{column} IS NULL")
141
141
  when "not_null"
142
- lambda { where("#{table_name}.#{column} IS NOT NULL")}
142
+ where("#{table_name}.#{column} IS NOT NULL")
143
143
  when "empty"
144
- lambda { where("#{table_name}.#{column} = ''")}
144
+ where("#{table_name}.#{column} = ''")
145
145
  when "blank"
146
- lambda { where("#{table_name}.#{column} = '' OR #{table_name}.#{column} IS NULL")}
146
+ where("#{table_name}.#{column} = '' OR #{table_name}.#{column} IS NULL")
147
147
  when "not_blank"
148
- lambda { where("#{table_name}.#{column} != '' AND #{table_name}.#{column} IS NOT NULL")}
148
+ where("#{table_name}.#{column} != '' AND #{table_name}.#{column} IS NOT NULL")
149
149
  end
150
150
 
151
151
  scope("#{column}_#{condition}".to_sym, scope_options)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rd_searchlogic}
8
- s.version = "3.0.0.rc3"
8
+ s.version = "3.0.0.rc4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ben Johnson of Binary Logic"]
12
- s.date = %q{2010-09-16}
11
+ s.authors = ["Ben Johnson of Binary Logic", "Roman Smirnov of RailsDog"]
12
+ s.date = %q{2010-10-26}
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
@@ -6,16 +6,17 @@ version: !ruby/object:Gem::Version
6
6
  - 3
7
7
  - 0
8
8
  - 0
9
- - rc3
10
- version: 3.0.0.rc3
9
+ - rc4
10
+ version: 3.0.0.rc4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Johnson of Binary Logic
14
+ - Roman Smirnov of RailsDog
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-16 00:00:00 +04:00
19
+ date: 2010-10-26 00:00:00 +04:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency