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 +4 -4
- data/CHANGELOG.MD +5 -0
- data/lib/algoliasearch/version.rb +1 -1
- data/lib/algoliasearch-rails.rb +4 -1
- 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: 14ef8f9ecc85826893e288b3fc0ec82a908b407893edb067f0fe2acc05f89240
|
4
|
+
data.tar.gz: acd4e020ef97b41b6900e0c379abe1cb6f02e503980d0da7186e85250ba4eb75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/algoliasearch-rails.rb
CHANGED
@@ -461,7 +461,8 @@ module AlgoliaSearch
|
|
461
461
|
end
|
462
462
|
attributes.merge 'objectID' => algolia_object_id_of(o, options)
|
463
463
|
end
|
464
|
-
|
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.
|
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-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|