like_search 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,9 @@
4
4
  module LikeSearch
5
5
  DB = {
6
6
  :postgres => "{field} ilike ?",
7
- :sqlite => 'LOWER({field}) like LOWER(?)'
7
+ :mysql => "{field} like ?"
8
8
  }
9
- DB.default = "{field} like ?"
9
+ DB.default = 'LOWER({field}) like LOWER(?)'
10
10
 
11
11
 
12
12
 
@@ -1,3 +1,3 @@
1
1
  module LikeSearch
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: like_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-14 00:00:00.000000000Z
12
+ date: 2011-12-26 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Search ActiveRecord models with like
15
15
  email: