meilisearch-rails 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meilisearch/rails/version.rb +1 -1
- data/lib/meilisearch-rails.rb +3 -3
- 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: 75f8a8a3ebfe381cbb7c9b40072dcf859882ccf9bf78bc5bb8ab0b94c05231d9
|
4
|
+
data.tar.gz: b3b5ec98f2524a08c738847a6b70671201f27cf466a62730f1aabbb0e177e08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5602abb0df9c02912553d45b6afbef167b735e1a585e5f19484b2bc0a38f366b34d2081130cd0e6257b3228023798e4e36ea5bbea85e5e9a1beed60370f7f0e4
|
7
|
+
data.tar.gz: d40ba9defa8b7eeb754a8aff10ad9dfccdef04911c867a89c8a7d236c183582e60100573a1305e76e52da4d871d7a59d3413f0c8e0cdfe50405bb8f43072fdac
|
data/lib/meilisearch-rails.rb
CHANGED
@@ -261,7 +261,7 @@ module MeiliSearch
|
|
261
261
|
@raise_on_failure = raise_on_failure.nil? || raise_on_failure
|
262
262
|
|
263
263
|
SafeIndex.log_or_throw(nil, @raise_on_failure) do
|
264
|
-
client.create_index
|
264
|
+
client.create_index(index_uid, { primary_key: primary_key })
|
265
265
|
end
|
266
266
|
|
267
267
|
@index = client.index(index_uid)
|
@@ -306,7 +306,7 @@ module MeiliSearch
|
|
306
306
|
SafeIndex.log_or_throw(:settings, @raise_on_failure) do
|
307
307
|
@index.settings(*args)
|
308
308
|
rescue ::MeiliSearch::ApiError => e
|
309
|
-
return {} if e.code ==
|
309
|
+
return {} if e.code == 'index_not_found' # not fatal
|
310
310
|
|
311
311
|
raise e
|
312
312
|
end
|
@@ -843,7 +843,7 @@ module MeiliSearch
|
|
843
843
|
if user.is_a?(Hash) && server.is_a?(Hash)
|
844
844
|
meilisearch_settings_changed?(server, user)
|
845
845
|
elsif user.is_a?(Array) && server.is_a?(Array)
|
846
|
-
user.map(&:to_s) != server.map(&:to_s)
|
846
|
+
user.map(&:to_s).sort! != server.map(&:to_s).sort!
|
847
847
|
else
|
848
848
|
user.to_s != server.to_s
|
849
849
|
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.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Meili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: meilisearch
|