search-engine-for-typesense 30.1.3 → 30.1.4
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 +4 -4
- data/lib/search_engine/collection_resolver.rb +4 -1
- data/lib/search_engine/version.rb +1 -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: 4fb677abb16142281c9c9171d6fba238aac168da395019672cd085818b72e726
|
|
4
|
+
data.tar.gz: 770426cb9622b18ca1bd90acef3957ac969dc89a6e781f4603599ec005494662
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcb4690a5bedcfa92815e1157b142b107abc82fba535ed9566902b569210dac401ed3e496983af48d18747a0ce6f5452182a1cddc7611fb1004af43d7ab2117a
|
|
7
|
+
data.tar.gz: 616bd994b94675ed4be2c554b55aef5842bae91ca38e9afd16106ff282602836d98aea60e19a8beec3c864e1e5381b10da521a2ceb6f4b8184f25f50845d71b2
|
|
@@ -29,13 +29,16 @@ module SearchEngine
|
|
|
29
29
|
const = SearchEngine.const_get(c)
|
|
30
30
|
next unless const.is_a?(Class)
|
|
31
31
|
next unless const.ancestors.include?(SearchEngine::Base)
|
|
32
|
+
next if const == SearchEngine::Base
|
|
32
33
|
|
|
33
|
-
logical = if const.respond_to?(:collection)
|
|
34
|
+
logical = if const.respond_to?(:collection) && const.collection
|
|
34
35
|
const.collection.to_s
|
|
35
36
|
else
|
|
36
37
|
demod = const.name.split('::').last
|
|
37
38
|
demod.respond_to?(:underscore) ? demod.underscore.pluralize : "#{demod.downcase}s"
|
|
38
39
|
end
|
|
40
|
+
next if logical.nil? || logical.to_s.strip.empty?
|
|
41
|
+
|
|
39
42
|
map[logical] ||= const
|
|
40
43
|
end
|
|
41
44
|
rescue StandardError
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: search-engine-for-typesense
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 30.1.
|
|
4
|
+
version: 30.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nikita Shkoda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|