mongoid-xapian 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -91,8 +91,9 @@ module MongoidXapian
91
91
  "#{Bundler.root}/xapian/#{self.to_s.underscore}.#{language}.db"
92
92
  end
93
93
 
94
- def search(pattern, language = "en")
95
- ids = search_db(language).search(pattern).map do |result|
94
+ def search(pattern, opts = {})
95
+ language = opts.delete(:language) || 'en'
96
+ ids = search_db(language).search(pattern, opts).map do |result|
96
97
  result.values[:_id]
97
98
  end
98
99
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mongoid-xapian"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David A. Cuadrado"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-xapian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -211,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  segments:
213
213
  - 0
214
- hash: -1310551950771285356
214
+ hash: 4374857612297856311
215
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements: