mongoid-fulltextable 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid/fulltextable-version.rb +2 -1
- data/lib/mongoid/fulltextable.rb +3 -2
- metadata +34 -58
data/lib/mongoid/fulltextable.rb
CHANGED
@@ -72,10 +72,11 @@ module Mongoid
|
|
72
72
|
|
73
73
|
def indexes(*args)
|
74
74
|
keywords = args.reject(&:blank?).compact.uniq.map do |value|
|
75
|
+
value = value.to_s
|
75
76
|
simplified = value.without_accents if value.respond_to?(:without_accents)
|
76
77
|
simplified == value ? value : [value, simplified]
|
77
|
-
end
|
78
|
-
self._keywords += keywords
|
78
|
+
end
|
79
|
+
self._keywords += keywords.flatten.compact
|
79
80
|
end
|
80
81
|
|
81
82
|
end
|
metadata
CHANGED
@@ -1,62 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-fulltextable
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
version: 0.1.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
-
|
7
|
+
authors:
|
8
|
+
- Jiří Zajpt
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2010-11-23 00:00:00 +01:00
|
12
|
+
date: 2011-07-04 00:00:00.000000000 +02:00
|
18
13
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: activesupport
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2160990020 !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
19
|
+
requirements:
|
26
20
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 3
|
30
|
-
- 0
|
31
|
-
- 1
|
21
|
+
- !ruby/object:Gem::Version
|
32
22
|
version: 3.0.1
|
33
23
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: unicode_utils
|
37
24
|
prerelease: false
|
38
|
-
|
25
|
+
version_requirements: *2160990020
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: unicode_utils
|
28
|
+
requirement: &2160989540 !ruby/object:Gem::Requirement
|
39
29
|
none: false
|
40
|
-
requirements:
|
30
|
+
requirements:
|
41
31
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 0
|
46
|
-
- 0
|
32
|
+
- !ruby/object:Gem::Version
|
47
33
|
version: 1.0.0
|
48
34
|
type: :runtime
|
49
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *2160989540
|
50
37
|
description: Simple & stupid 'fulltext' searching for Mongoid.
|
51
|
-
email:
|
38
|
+
email:
|
52
39
|
- jzajpt@blueberry.cz
|
53
40
|
executables: []
|
54
|
-
|
55
41
|
extensions: []
|
56
|
-
|
57
42
|
extra_rdoc_files: []
|
58
|
-
|
59
|
-
files:
|
43
|
+
files:
|
60
44
|
- .gitignore
|
61
45
|
- Gemfile
|
62
46
|
- Rakefile
|
@@ -67,34 +51,26 @@ files:
|
|
67
51
|
has_rdoc: true
|
68
52
|
homepage: http://rubygems.org/gems/mongoid-fulltextable
|
69
53
|
licenses: []
|
70
|
-
|
71
54
|
post_install_message:
|
72
55
|
rdoc_options: []
|
73
|
-
|
74
|
-
require_paths:
|
56
|
+
require_paths:
|
75
57
|
- lib
|
76
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
59
|
none: false
|
78
|
-
requirements:
|
79
|
-
- -
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
|
82
|
-
|
83
|
-
version: "0"
|
84
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
65
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
- 0
|
91
|
-
version: "0"
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
92
70
|
requirements: []
|
93
|
-
|
94
71
|
rubyforge_project: mongoid-fulltextable
|
95
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.6.2
|
96
73
|
signing_key:
|
97
74
|
specification_version: 3
|
98
75
|
summary: Simple & stupid 'fulltext' searching for Mongoid.
|
99
76
|
test_files: []
|
100
|
-
|