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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 215428bdb5e437c3a906e1246444dc7e2afce9d2b52646790de1d55d0490783f
4
- data.tar.gz: 412f8d56c952a330a9b3473602aca9ac0fee6789a3a3632f65340c7c85524637
3
+ metadata.gz: 75f8a8a3ebfe381cbb7c9b40072dcf859882ccf9bf78bc5bb8ab0b94c05231d9
4
+ data.tar.gz: b3b5ec98f2524a08c738847a6b70671201f27cf466a62730f1aabbb0e177e08e
5
5
  SHA512:
6
- metadata.gz: ad8f9e4489c11dd3b2a522b134921232fbe2b66946f57ebf6be0c18ccd0643490379fb483d0a2ecf3371a427ff442809801130308e8f11fdedc7d6869a8d14c5
7
- data.tar.gz: 5473ca9c267a3dfada14258db095d86c2e3618d356afc29ecf60c6975b067078cac91d8cc84c3e0b0bf8b5f227496d95830d77ed41923d0deeb313165b0b37df
6
+ metadata.gz: 5602abb0df9c02912553d45b6afbef167b735e1a585e5f19484b2bc0a38f366b34d2081130cd0e6257b3228023798e4e36ea5bbea85e5e9a1beed60370f7f0e4
7
+ data.tar.gz: d40ba9defa8b7eeb754a8aff10ad9dfccdef04911c867a89c8a7d236c183582e60100573a1305e76e52da4d871d7a59d3413f0c8e0cdfe50405bb8f43072fdac
@@ -2,7 +2,7 @@
2
2
 
3
3
  module MeiliSearch
4
4
  module Rails
5
- VERSION = '0.11.0'
5
+ VERSION = '0.11.1'
6
6
 
7
7
  def self.qualified_version
8
8
  "Meilisearch Rails (v#{VERSION})"
@@ -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!(index_uid, { primary_key: primary_key })
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 == 404 # not fatal
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: meilisearch