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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Mongoid
4
4
  module Fulltextable
5
- VERSION = "0.1.3.1"
5
+ VERSION = "0.1.4"
6
6
  end
7
7
  end
8
8
 
@@ -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
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Simple & stupid 'fulltext' searching for Mongoid.}
14
14
 
15
15
  s.rubyforge_project = "mongoid-fulltextable"
16
-
16
+
17
17
  s.add_dependency 'activesupport', '~> 3.0.1'
18
18
  s.add_dependency 'unicode_utils', '~> 1.0.0'
19
19
 
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.3.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-07-04 00:00:00.000000000 +02:00
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: &2153340820 !ruby/object:Gem::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: *2153340820
25
+ version_requirements: *70241063730100
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: unicode_utils
28
- requirement: &2153340340 !ruby/object:Gem::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: *2153340340
36
+ version_requirements: *70241063729560
37
37
  description: Simple & stupid 'fulltext' searching for Mongoid.
38
38
  email:
39
39
  - jzajpt@blueberry.cz