mongodb_meilisearch 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env +13 -0
- data/.idea/.gitignore +8 -0
- data/.idea/modules.xml +8 -0
- data/.rspec +3 -0
- data/.rubocop.yml +1859 -0
- data/CHANGELOG.md +3 -0
- data/CODE_OF_CONDUCT.md +129 -0
- data/CONTRIBUTORS.md +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +234 -0
- data/LICENSE.txt +557 -0
- data/README.md +435 -0
- data/Rakefile +12 -0
- data/lefthook.yml +18 -0
- data/lib/mongodb_meilisearch/version.rb +9 -0
- data/lib/mongodb_meilisearch.rb +3 -0
- data/lib/search/class_methods.rb +529 -0
- data/lib/search/client.rb +41 -0
- data/lib/search/instance_methods.rb +94 -0
- data/sig/mongodb_meilisearch.rbs +4 -0
- metadata +192 -0
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
13
|
+
diverse, inclusive, and healthy community.
|
14
|
+
|
15
|
+
We acknowledge that:
|
16
|
+
|
17
|
+
* Black Lives Matter
|
18
|
+
* Trans Lives Matter
|
19
|
+
* Queer Lives Matter
|
20
|
+
* _All_ Lives matter
|
21
|
+
|
22
|
+
## Our Standards
|
23
|
+
|
24
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
25
|
+
|
26
|
+
* Demonstrating empathy and kindness toward other people
|
27
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
28
|
+
* Giving and gracefully accepting constructive feedback
|
29
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
30
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
31
|
+
|
32
|
+
Examples of unacceptable behavior include:
|
33
|
+
|
34
|
+
* The use of sexualized language or imagery, and sexual attention or
|
35
|
+
advances of any kind
|
36
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
37
|
+
* Public or private harassment
|
38
|
+
* Publishing others' private information, such as a physical or email
|
39
|
+
address, without their explicit permission
|
40
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
41
|
+
professional setting
|
42
|
+
|
43
|
+
## Enforcement Responsibilities
|
44
|
+
|
45
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
46
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
47
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
48
|
+
or harmful.
|
49
|
+
|
50
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
51
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
52
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
53
|
+
decisions when appropriate.
|
54
|
+
|
55
|
+
## Scope
|
56
|
+
|
57
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
58
|
+
an individual is officially representing the community in public spaces.
|
59
|
+
Examples of representing our community include using an official e-mail address,
|
60
|
+
posting via an official social media account, or acting as an appointed
|
61
|
+
representative at an online or offline event.
|
62
|
+
|
63
|
+
## Enforcement
|
64
|
+
|
65
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
66
|
+
reported to the community leaders responsible for enforcement at
|
67
|
+
masukomi@masukomi.org. All complaints will be reviewed and investigated promptly
|
68
|
+
and fairly.
|
69
|
+
|
70
|
+
All community leaders are obligated to respect the privacy and security of the
|
71
|
+
reporter of any incident.
|
72
|
+
|
73
|
+
## Enforcement Guidelines
|
74
|
+
|
75
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
76
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
77
|
+
|
78
|
+
### 1. Correction
|
79
|
+
|
80
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
81
|
+
unprofessional or unwelcome in the community.
|
82
|
+
|
83
|
+
**Consequence**: A private, written warning from community leaders, providing
|
84
|
+
clarity around the nature of the violation and an explanation of why the
|
85
|
+
behavior was inappropriate. A public apology may be requested.
|
86
|
+
|
87
|
+
### 2. Warning
|
88
|
+
|
89
|
+
**Community Impact**: A violation through a single incident or series of
|
90
|
+
actions.
|
91
|
+
|
92
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
93
|
+
interaction with the people involved, including unsolicited interaction with
|
94
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
95
|
+
includes avoiding interactions in community spaces as well as external channels
|
96
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
97
|
+
ban.
|
98
|
+
|
99
|
+
### 3. Temporary Ban
|
100
|
+
|
101
|
+
**Community Impact**: A serious violation of community standards, including
|
102
|
+
sustained inappropriate behavior.
|
103
|
+
|
104
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
105
|
+
communication with the community for a specified period of time. No public or
|
106
|
+
private interaction with the people involved, including unsolicited interaction
|
107
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
108
|
+
Violating these terms may lead to a permanent ban.
|
109
|
+
|
110
|
+
### 4. Permanent Ban
|
111
|
+
|
112
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
113
|
+
standards, including sustained inappropriate behavior, harassment of an
|
114
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
115
|
+
|
116
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
117
|
+
community.
|
118
|
+
|
119
|
+
## Attribution
|
120
|
+
|
121
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
122
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
123
|
+
|
124
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
125
|
+
|
126
|
+
[homepage]: https://www.contributor-covenant.org
|
127
|
+
|
128
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
129
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/CONTRIBUTORS.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,234 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mongodb_meilisearch (1.0.0)
|
5
|
+
meilisearch
|
6
|
+
mongoid (~> 7.0)
|
7
|
+
rails
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actioncable (7.0.6)
|
13
|
+
actionpack (= 7.0.6)
|
14
|
+
activesupport (= 7.0.6)
|
15
|
+
nio4r (~> 2.0)
|
16
|
+
websocket-driver (>= 0.6.1)
|
17
|
+
actionmailbox (7.0.6)
|
18
|
+
actionpack (= 7.0.6)
|
19
|
+
activejob (= 7.0.6)
|
20
|
+
activerecord (= 7.0.6)
|
21
|
+
activestorage (= 7.0.6)
|
22
|
+
activesupport (= 7.0.6)
|
23
|
+
mail (>= 2.7.1)
|
24
|
+
net-imap
|
25
|
+
net-pop
|
26
|
+
net-smtp
|
27
|
+
actionmailer (7.0.6)
|
28
|
+
actionpack (= 7.0.6)
|
29
|
+
actionview (= 7.0.6)
|
30
|
+
activejob (= 7.0.6)
|
31
|
+
activesupport (= 7.0.6)
|
32
|
+
mail (~> 2.5, >= 2.5.4)
|
33
|
+
net-imap
|
34
|
+
net-pop
|
35
|
+
net-smtp
|
36
|
+
rails-dom-testing (~> 2.0)
|
37
|
+
actionpack (7.0.6)
|
38
|
+
actionview (= 7.0.6)
|
39
|
+
activesupport (= 7.0.6)
|
40
|
+
rack (~> 2.0, >= 2.2.4)
|
41
|
+
rack-test (>= 0.6.3)
|
42
|
+
rails-dom-testing (~> 2.0)
|
43
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
44
|
+
actiontext (7.0.6)
|
45
|
+
actionpack (= 7.0.6)
|
46
|
+
activerecord (= 7.0.6)
|
47
|
+
activestorage (= 7.0.6)
|
48
|
+
activesupport (= 7.0.6)
|
49
|
+
globalid (>= 0.6.0)
|
50
|
+
nokogiri (>= 1.8.5)
|
51
|
+
actionview (7.0.6)
|
52
|
+
activesupport (= 7.0.6)
|
53
|
+
builder (~> 3.1)
|
54
|
+
erubi (~> 1.4)
|
55
|
+
rails-dom-testing (~> 2.0)
|
56
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
57
|
+
activejob (7.0.6)
|
58
|
+
activesupport (= 7.0.6)
|
59
|
+
globalid (>= 0.3.6)
|
60
|
+
activemodel (7.0.6)
|
61
|
+
activesupport (= 7.0.6)
|
62
|
+
activerecord (7.0.6)
|
63
|
+
activemodel (= 7.0.6)
|
64
|
+
activesupport (= 7.0.6)
|
65
|
+
activestorage (7.0.6)
|
66
|
+
actionpack (= 7.0.6)
|
67
|
+
activejob (= 7.0.6)
|
68
|
+
activerecord (= 7.0.6)
|
69
|
+
activesupport (= 7.0.6)
|
70
|
+
marcel (~> 1.0)
|
71
|
+
mini_mime (>= 1.1.0)
|
72
|
+
activesupport (7.0.6)
|
73
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
74
|
+
i18n (>= 1.6, < 2)
|
75
|
+
minitest (>= 5.1)
|
76
|
+
tzinfo (~> 2.0)
|
77
|
+
ast (2.4.2)
|
78
|
+
bson (4.15.0)
|
79
|
+
builder (3.2.4)
|
80
|
+
concurrent-ruby (1.2.2)
|
81
|
+
crass (1.0.6)
|
82
|
+
date (3.3.3)
|
83
|
+
debug (1.8.0)
|
84
|
+
irb (>= 1.5.0)
|
85
|
+
reline (>= 0.3.1)
|
86
|
+
diff-lcs (1.5.0)
|
87
|
+
dotenv (2.8.1)
|
88
|
+
erubi (1.12.0)
|
89
|
+
globalid (1.1.0)
|
90
|
+
activesupport (>= 5.0)
|
91
|
+
httparty (0.21.0)
|
92
|
+
mini_mime (>= 1.0.0)
|
93
|
+
multi_xml (>= 0.5.2)
|
94
|
+
i18n (1.14.1)
|
95
|
+
concurrent-ruby (~> 1.0)
|
96
|
+
io-console (0.6.0)
|
97
|
+
irb (1.7.4)
|
98
|
+
reline (>= 0.3.6)
|
99
|
+
json (2.6.3)
|
100
|
+
lefthook (1.4.5)
|
101
|
+
loofah (2.21.3)
|
102
|
+
crass (~> 1.0.2)
|
103
|
+
nokogiri (>= 1.12.0)
|
104
|
+
mail (2.8.1)
|
105
|
+
mini_mime (>= 0.1.1)
|
106
|
+
net-imap
|
107
|
+
net-pop
|
108
|
+
net-smtp
|
109
|
+
marcel (1.0.2)
|
110
|
+
meilisearch (0.24.0)
|
111
|
+
httparty (>= 0.17.1, < 0.22.0)
|
112
|
+
method_source (1.0.0)
|
113
|
+
mini_mime (1.1.2)
|
114
|
+
minitest (5.18.1)
|
115
|
+
mongo (2.19.0)
|
116
|
+
bson (>= 4.14.1, < 5.0.0)
|
117
|
+
mongoid (7.5.3)
|
118
|
+
activemodel (>= 5.1, < 7.1, != 7.0.0)
|
119
|
+
mongo (>= 2.10.5, < 3.0.0)
|
120
|
+
ruby2_keywords (~> 0.0.5)
|
121
|
+
multi_xml (0.6.0)
|
122
|
+
net-imap (0.3.6)
|
123
|
+
date
|
124
|
+
net-protocol
|
125
|
+
net-pop (0.1.2)
|
126
|
+
net-protocol
|
127
|
+
net-protocol (0.2.1)
|
128
|
+
timeout
|
129
|
+
net-smtp (0.3.3)
|
130
|
+
net-protocol
|
131
|
+
nio4r (2.5.9)
|
132
|
+
nokogiri (1.15.3-arm64-darwin)
|
133
|
+
racc (~> 1.4)
|
134
|
+
parallel (1.23.0)
|
135
|
+
parser (3.2.2.3)
|
136
|
+
ast (~> 2.4.1)
|
137
|
+
racc
|
138
|
+
racc (1.7.1)
|
139
|
+
rack (2.2.7)
|
140
|
+
rack-test (2.1.0)
|
141
|
+
rack (>= 1.3)
|
142
|
+
rails (7.0.6)
|
143
|
+
actioncable (= 7.0.6)
|
144
|
+
actionmailbox (= 7.0.6)
|
145
|
+
actionmailer (= 7.0.6)
|
146
|
+
actionpack (= 7.0.6)
|
147
|
+
actiontext (= 7.0.6)
|
148
|
+
actionview (= 7.0.6)
|
149
|
+
activejob (= 7.0.6)
|
150
|
+
activemodel (= 7.0.6)
|
151
|
+
activerecord (= 7.0.6)
|
152
|
+
activestorage (= 7.0.6)
|
153
|
+
activesupport (= 7.0.6)
|
154
|
+
bundler (>= 1.15.0)
|
155
|
+
railties (= 7.0.6)
|
156
|
+
rails-dom-testing (2.1.1)
|
157
|
+
activesupport (>= 5.0.0)
|
158
|
+
minitest
|
159
|
+
nokogiri (>= 1.6)
|
160
|
+
rails-html-sanitizer (1.6.0)
|
161
|
+
loofah (~> 2.21)
|
162
|
+
nokogiri (~> 1.14)
|
163
|
+
railties (7.0.6)
|
164
|
+
actionpack (= 7.0.6)
|
165
|
+
activesupport (= 7.0.6)
|
166
|
+
method_source
|
167
|
+
rake (>= 12.2)
|
168
|
+
thor (~> 1.0)
|
169
|
+
zeitwerk (~> 2.5)
|
170
|
+
rainbow (3.1.1)
|
171
|
+
rake (13.0.6)
|
172
|
+
regexp_parser (2.8.1)
|
173
|
+
reline (0.3.6)
|
174
|
+
io-console (~> 0.5)
|
175
|
+
rexml (3.2.5)
|
176
|
+
rspec (3.12.0)
|
177
|
+
rspec-core (~> 3.12.0)
|
178
|
+
rspec-expectations (~> 3.12.0)
|
179
|
+
rspec-mocks (~> 3.12.0)
|
180
|
+
rspec-core (3.12.1)
|
181
|
+
rspec-support (~> 3.12.0)
|
182
|
+
rspec-expectations (3.12.2)
|
183
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
184
|
+
rspec-support (~> 3.12.0)
|
185
|
+
rspec-mocks (3.12.4)
|
186
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
187
|
+
rspec-support (~> 3.12.0)
|
188
|
+
rspec-support (3.12.0)
|
189
|
+
rubocop (1.50.2)
|
190
|
+
json (~> 2.3)
|
191
|
+
parallel (~> 1.10)
|
192
|
+
parser (>= 3.2.0.0)
|
193
|
+
rainbow (>= 2.2.2, < 4.0)
|
194
|
+
regexp_parser (>= 1.8, < 3.0)
|
195
|
+
rexml (>= 3.2.5, < 4.0)
|
196
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
197
|
+
ruby-progressbar (~> 1.7)
|
198
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
199
|
+
rubocop-ast (1.29.0)
|
200
|
+
parser (>= 3.2.1.0)
|
201
|
+
rubocop-capybara (2.18.0)
|
202
|
+
rubocop (~> 1.41)
|
203
|
+
rubocop-factory_bot (2.23.1)
|
204
|
+
rubocop (~> 1.33)
|
205
|
+
rubocop-rspec (2.22.0)
|
206
|
+
rubocop (~> 1.33)
|
207
|
+
rubocop-capybara (~> 2.17)
|
208
|
+
rubocop-factory_bot (~> 2.22)
|
209
|
+
ruby-progressbar (1.13.0)
|
210
|
+
ruby2_keywords (0.0.5)
|
211
|
+
thor (1.2.2)
|
212
|
+
timeout (0.4.0)
|
213
|
+
tzinfo (2.0.6)
|
214
|
+
concurrent-ruby (~> 1.0)
|
215
|
+
unicode-display_width (2.4.2)
|
216
|
+
websocket-driver (0.7.5)
|
217
|
+
websocket-extensions (>= 0.1.0)
|
218
|
+
websocket-extensions (0.1.5)
|
219
|
+
zeitwerk (2.6.8)
|
220
|
+
|
221
|
+
PLATFORMS
|
222
|
+
arm64-darwin-22
|
223
|
+
|
224
|
+
DEPENDENCIES
|
225
|
+
debug
|
226
|
+
dotenv
|
227
|
+
lefthook
|
228
|
+
mongodb_meilisearch!
|
229
|
+
rspec
|
230
|
+
rubocop
|
231
|
+
rubocop-rspec
|
232
|
+
|
233
|
+
BUNDLED WITH
|
234
|
+
2.4.10
|