mongoid-fulltextable 0.1.3.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/mongoid/fulltextable.rb
CHANGED
@@ -15,7 +15,7 @@ module Mongoid
|
|
15
15
|
|
16
16
|
index :_keywords
|
17
17
|
|
18
|
-
scope :fulltext, lambda { |str| where(:_keywords => /#{str}/i) }
|
18
|
+
scope :fulltext, lambda { |str| where(:_keywords => /#{Regexp.escape(str)}/i) }
|
19
19
|
|
20
20
|
end
|
21
21
|
|
@@ -83,4 +83,4 @@ module Mongoid
|
|
83
83
|
|
84
84
|
end
|
85
85
|
|
86
|
-
end
|
86
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-fulltextable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-08-04 00:00:00.000000000 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
requirement: &
|
17
|
+
requirement: &70241063730100 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70241063730100
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: unicode_utils
|
28
|
-
requirement: &
|
28
|
+
requirement: &70241063729560 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70241063729560
|
37
37
|
description: Simple & stupid 'fulltext' searching for Mongoid.
|
38
38
|
email:
|
39
39
|
- jzajpt@blueberry.cz
|