mongoid_text_search 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ module Mongoid
28
28
  if options[:match].to_s == "all" || options.empty?
29
29
  where(:keywords.all => keywords.collect!{ |keyword| /.*#{keyword}.*/i })
30
30
  elsif options[:match].to_s == "any"
31
- where(:keywords.any => keywords.collect!{ |keyword| /.*#{keyword}.*/i })
31
+ where(:keywords.in => keywords.collect!{ |keyword| /.*#{keyword}.*/i })
32
32
  end
33
33
  else
34
34
  where() # Select everything.
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module TextSearch
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_dependency("mongoid", ">=2.0.0.beta.20")
20
+ s.add_dependency("mongoid", ">=2.0.0")
21
21
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mongoid_text_search
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.1.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Steve Randy Tantra
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-05 00:00:00 Z
13
+ date: 2011-04-30 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.0.0.beta.20
23
+ version: 2.0.0
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  description: This gem is used in addition to Mongoid gem (up to version 2.0.0), to provide simple full text search function. It takes one or many string or array of strings fields. The strings will be cleaned up and transform into array so they can be indexed. Searching later on will simply partially matches the input keywords with the indexed keywords in the arrays.
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements: []
66
66
 
67
67
  rubyforge_project:
68
- rubygems_version: 1.7.1
68
+ rubygems_version: 1.7.2
69
69
  signing_key:
70
70
  specification_version: 3
71
71
  summary: Simple full text search for Mongoid.