mongoid-fts 0.4.4 → 0.5.0
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.
- checksums.yaml +8 -8
- data/lib/mongoid-fts.rb +7 -3
- data/mongoid-fts.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZjY5OWU1OTAxM2YzZDFiZmUzNTVhODFmMGM5NjNjNjI3OTgyODE1OQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YzkwMGEzM2Q3OTM3NDg5OWI3OWVkM2IxYjJhOTFjYTQ1Y2MzYTBhOQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MWQzYTQ0ZmRhYWJjYThlNDJlOTFhNjgyNDYxYzVlZWI0NjJjYzc0MzNhZjhi
|
|
10
|
+
ODliMTRjYmRjMWRmOWYwYjgyYjc0YjlhZTM2ZWIxYWRlMTgxZjRiNDIzMmJm
|
|
11
|
+
NDIzMDllYjMwMzJkMjMxMGUyYjc5NjJiMWQ3OGFjZDA3ZDM4ODQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YjY2ZWM0YTgwMGViZjRmMDU2ZjFkODQxZmY1MTUzMTdkMTJiN2MwY2ZlMjJi
|
|
14
|
+
N2VjZTVmMDA1YzAwNjFjYThkZWRhY2I2ZDIyNTk5MzdjYmZkOTMwYjJmM2Yz
|
|
15
|
+
MGNjZWM2YTcyNWIzNmUwZGVhNTZjN2QyYjg1MGQwNjBhMmI5ZDg=
|
data/lib/mongoid-fts.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Mongoid
|
|
2
2
|
module FTS
|
|
3
3
|
#
|
|
4
|
-
const_set(:Version, '0.
|
|
4
|
+
const_set(:Version, '0.5.0') unless const_defined?(:Version)
|
|
5
5
|
|
|
6
6
|
class << FTS
|
|
7
7
|
def version
|
|
@@ -447,18 +447,22 @@ module Mongoid
|
|
|
447
447
|
@code ||= proc do
|
|
448
448
|
class << self
|
|
449
449
|
def search(*args, &block)
|
|
450
|
-
options = Map.options_for(args)
|
|
450
|
+
options = Map.options_for!(args)
|
|
451
451
|
|
|
452
452
|
options[:model] = self
|
|
453
453
|
|
|
454
|
+
args.push(options)
|
|
455
|
+
|
|
454
456
|
FTS.search(*args, &block)
|
|
455
457
|
end
|
|
456
458
|
|
|
457
459
|
def _search(*args, &block)
|
|
458
|
-
options = Map.options_for(args)
|
|
460
|
+
options = Map.options_for!(args)
|
|
459
461
|
|
|
460
462
|
options[:model] = self
|
|
461
463
|
|
|
464
|
+
args.push(options)
|
|
465
|
+
|
|
462
466
|
FTS.search(*args, &block)
|
|
463
467
|
end
|
|
464
468
|
end
|
data/mongoid-fts.gemspec
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification::new do |spec|
|
|
5
5
|
spec.name = "mongoid-fts"
|
|
6
|
-
spec.version = "0.
|
|
6
|
+
spec.version = "0.5.0"
|
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
|
8
8
|
spec.summary = "mongoid-fts"
|
|
9
9
|
spec.description = "enable mongodb's new fulltext simply and quickly on your mongoid models, including pagination."
|