meilisearch-rails 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meilisearch/utilities.rb +2 -1
- data/lib/meilisearch/version.rb +1 -1
- data/spec/utilities_spec.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff716ea4a13c0f64718942f4988550a36076ae5dc52ac8ec7282000d116a99d
|
4
|
+
data.tar.gz: 1346eb18ddb24bf718693b7b3efa89d4b0084ecffe9f7ccae1d71956b3b8bf56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e1657c75e4eec945502ead72001ba56dc194d3ce5217e65f40abc49de34312087aa30d401d342a15c4c0701f0d41d49faf8c94aef5cc40d79ed9bdc345f414
|
7
|
+
data.tar.gz: 2cd31c3b6b70fb4d2c38977870ab28256de22422c410280e7615e11dfe64dd8eaa98295c7bdf553655b427837b8864ee60930a0aafa39e8f1272af34210c0479
|
@@ -7,7 +7,8 @@ module MeiliSearch
|
|
7
7
|
elsif Rails.application
|
8
8
|
Rails.application.eager_load!
|
9
9
|
end
|
10
|
-
MeiliSearch.instance_variable_get
|
10
|
+
klasses = MeiliSearch.instance_variable_get(:@included_in)
|
11
|
+
(klasses + klasses.map{ |klass| klass.descendants }.flatten).uniq
|
11
12
|
end
|
12
13
|
|
13
14
|
def clear_all_indexes
|
data/lib/meilisearch/version.rb
CHANGED
data/spec/utilities_spec.rb
CHANGED
@@ -17,6 +17,12 @@ describe MeiliSearch::Utilities do
|
|
17
17
|
|
18
18
|
meilisearch
|
19
19
|
end
|
20
|
+
|
21
|
+
class DummyChild < Dummy
|
22
|
+
end
|
23
|
+
|
24
|
+
class DummyGrandChild < DummyChild
|
25
|
+
end
|
20
26
|
end
|
21
27
|
|
22
28
|
after(:each) do
|
@@ -24,7 +30,7 @@ describe MeiliSearch::Utilities do
|
|
24
30
|
end
|
25
31
|
|
26
32
|
it "should get the models where MeiliSearch module was included" do
|
27
|
-
(MeiliSearch::Utilities.get_model_classes - [Dummy]).should == []
|
33
|
+
(MeiliSearch::Utilities.get_model_classes - [Dummy, DummyChild, DummyGrandChild]).should == []
|
28
34
|
end
|
29
35
|
|
30
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meilisearch-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|