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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f603220035a2dc835da67a13b5162a01e216a990ae285ed862e1b72657ae99ca
4
- data.tar.gz: 98e263f1408b6e00072186edb8fe09b97121e924e004c7e44c4d67b62ffd44c1
3
+ metadata.gz: 4fb677abb16142281c9c9171d6fba238aac168da395019672cd085818b72e726
4
+ data.tar.gz: 770426cb9622b18ca1bd90acef3957ac969dc89a6e781f4603599ec005494662
5
5
  SHA512:
6
- metadata.gz: 0a047323eaefd034fd6301fab4cadb677ffd6bf9a1426a472cc5fdcbf35ba882d8a1b618d9fea1ea34fd6d22e041400eb53c209141ad98b07472689a656335a0
7
- data.tar.gz: b3b9a13ef06ba7ae7728c172e333b58818e2fc8ec36baab6052ac50399c5c7c1b279f2fabec97ac1cab3ea289c9c7ab1117c04afbabe63789d04cca60a7510b6
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
@@ -3,5 +3,5 @@
3
3
  module SearchEngine
4
4
  # Current gem version.
5
5
  # @return [String]
6
- VERSION = '30.1.3'
6
+ VERSION = '30.1.4'
7
7
  end
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.3
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-06 00:00:00.000000000 Z
11
+ date: 2026-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby