searchkick 5.2.2 → 5.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3ada9c260b4ad16858d70480fafdc92d6bcbbeea240a628d832e5aaba4fea10
4
- data.tar.gz: b9e48dc70ddfd83b10eeb1c02d572b6aaba66075c494c94fb8dd8450f7e39e7e
3
+ metadata.gz: 21860cb96c0df2e5aaa2a4c57b7ec78bb383e404f6c7a623304b3d1817f117fe
4
+ data.tar.gz: 69affa981018bd79094296e8093015ca94acce0017183e1def525f9950e178a8
5
5
  SHA512:
6
- metadata.gz: a9509e82eb6257fd25334e0527bb3bd890e5a40edc6710354700ebb826048888b1549756b3b34089de434f38517a53b648ae896ad1478e688a93a886a70d7675
7
- data.tar.gz: 9b79d9dfad68255deccf6af74586ce877026652091b37baeeb60ec56f3af6b4923525846a68b7d3d008ed3baa81b1f765b76d2b6f68e6d014bcfa5ac413b4ad0
6
+ metadata.gz: 977224b7e841cb83c2e6fb0108a1fc48099798e5a5b9c6f9cf5039b61f6b6c99cacb2f965f6e5ae0cff1606c71be7f2e3ab691bfddd32c65a3b1dacaeec4baeb
7
+ data.tar.gz: 36e2864035ce71be03db3a7fb7ffba11e29fda396943c42452c17505ef7376a8dcb569d840f08a1540d4c97aec2028792dcae10cf588f1959c4c5d6d7d6f2081
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 5.2.4 (2023-05-11)
2
+
3
+ - Fixed error with non-string routing and `:async` mode
4
+
5
+ ## 5.2.3 (2023-04-12)
6
+
7
+ - Fixed error with missing records and multiple models
8
+
1
9
  ## 5.2.2 (2023-04-01)
2
10
 
3
11
  - Fixed `total_docs` method
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2021 Andrew Kane
1
+ Copyright (c) 2013-2023 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
@@ -74,7 +74,7 @@ module Searchkick
74
74
  end
75
75
 
76
76
  def escape(value)
77
- value.gsub("|", "||")
77
+ value.to_s.gsub("|", "||")
78
78
  end
79
79
  end
80
80
  end
@@ -304,7 +304,7 @@ module Searchkick
304
304
  def build_hits
305
305
  @build_hits ||= begin
306
306
  if missing_records.any?
307
- Searchkick.warn("Records in search index do not exist in database: #{missing_records.map { |v| "#{v[:model].model_name} #{v[:id]}" }.join(", ")}")
307
+ Searchkick.warn("Records in search index do not exist in database: #{missing_records.map { |v| "#{Array(v[:model]).map(&:model_name).sort.join("/")} #{v[:id]}" }.join(", ")}")
308
308
  end
309
309
  with_hit_and_missing_records[0]
310
310
  end
@@ -1,3 +1,3 @@
1
1
  module Searchkick
2
- VERSION = "5.2.2"
2
+ VERSION = "5.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.2
4
+ version: 5.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-01 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel