algoliasearch-rails 3.0.0 → 3.0.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: 29d7bf2701670f9e978131309e79791bf9ac674e3fe965d58bc3bb3e3e87eedb
4
- data.tar.gz: 19da3705ecddadc270f3bfe923f93fe0336ba9b12b3fc459694c74f981330c9b
3
+ metadata.gz: 14ef8f9ecc85826893e288b3fc0ec82a908b407893edb067f0fe2acc05f89240
4
+ data.tar.gz: acd4e020ef97b41b6900e0c379abe1cb6f02e503980d0da7186e85250ba4eb75
5
5
  SHA512:
6
- metadata.gz: 5c14cccf9397ddc7058a74378c2706f4d2fe185fd1f31024906b4c9e42fc23c9843ad70fda5accdb94fe59c16f7dc5a2848acb39987a2bf77b48e1e4e3e68342
7
- data.tar.gz: b0e6f450533fc19ee963640d5f0639ec07ce3dbbe369d015a12f5b31047473cbd878f93e16b853763a14821e95e8773d80c0aae2b36baa5b8b8ecbf7eed0fd13
6
+ metadata.gz: 594ce23363e9706940a948f27b29db9be1a030859714672a3fba8aa2b3818173188cd64b294699f086966bc5b446ba51612a30fb9ae83ec80fbd2ea839ac7ade
7
+ data.tar.gz: 0ba91ece82a88fffadaeff270b1a1de90a7409bc09c370848b31cfeb732712df92c33382031d4d6c956f02d915a19655569e4eac3d9545086e591279aeb2f16e
data/CHANGELOG.MD CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/3.0.0...master)
4
4
 
5
+ ## [3.0.1](https://github.com/algolia/algoliasearch-rails/compare/3.0.0...3.0.1)
6
+ ### Fixed
7
+ * Ensure init when `check_settings=true` for atomic reindexes [`#453`](https://github.com/algolia/algoliasearch-rails/pull/453)
8
+ * Fix last task_id when no tasks to save [`#452`](https://github.com/algolia/algoliasearch-rails/pull/452)
9
+
5
10
  ## [3.0.0](https://github.com/algolia/algoliasearch-rails/compare/2.3.2...3.0.0)
6
11
  This new major version leverages the latest version of the Ruby Algolia API client. It also drops (official) support for Rails 5.x and Ruby versions older than 2.5
7
12
  For a list of known breaking changes, please refer to [the upgrade guide](./UPGRADING_TO_V3.MD)
@@ -1,3 +1,3 @@
1
1
  module AlgoliaSearch
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
@@ -461,7 +461,8 @@ module AlgoliaSearch
461
461
  end
462
462
  attributes.merge 'objectID' => algolia_object_id_of(o, options)
463
463
  end
464
- last_task = AlgoliaSearch.client.save_objects(index_name, objects).last.task_id
464
+ save_tasks = AlgoliaSearch.client.save_objects(index_name, objects)
465
+ last_task = save_tasks.present? ? save_tasks.last.task_id : last_task
465
466
  end
466
467
  AlgoliaSearch.client.wait_for_task(index_name, last_task) if last_task and (synchronous || options[:synchronous])
467
468
  end
@@ -499,6 +500,8 @@ module AlgoliaSearch
499
500
  Algolia::Search::OperationIndexParams.new(operation: Algolia::Search::OperationType::COPY, destination: tmp_index_name, scope: %w[settings synonyms rules])
500
501
  ).task_id
501
502
  AlgoliaSearch.client.wait_for_task(index_name, task_id)
503
+ else
504
+ algolia_ensure_init(tmp_options, tmp_settings, master_settings)
502
505
  end
503
506
 
504
507
  algolia_find_in_batches(batch_size) do |group|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-21 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json