algolia 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -2
- data/SECURITY.md +1 -1
- data/lib/algolia/responses/add_api_key_response.rb +1 -1
- data/lib/algolia/responses/delete_api_key_response.rb +1 -1
- data/lib/algolia/responses/restore_api_key_response.rb +1 -1
- data/lib/algolia/responses/update_api_key_response.rb +1 -1
- data/lib/algolia/search_client.rb +3 -0
- data/lib/algolia/search_index.rb +1 -1
- data/lib/algolia/version.rb +1 -1
- data/test/algolia/integration/account_client_test.rb +2 -2
- data/test/algolia/integration/search_client_test.rb +1 -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: c113b61e6f68cb0512af5184ec64500c3dfcce89cef1f72fa07c25c9276f5cb1
|
4
|
+
data.tar.gz: 6474ee0b14ce28607a2a17bb2353fd7853128d48694f93d608b7faae728044b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efab3e1d53bb186dc091e69e00962223adb1f7c17567e0fbcd97609ed07fc6cb99ae6552e08852f19c3815bd1164fde3475fc74f2445b8c4909f4de5258ee405
|
7
|
+
data.tar.gz: 7c961f777ab5616edd3c59c0049ffd5b2b74126cd79697ebcdb4ffee42822866cab8fae0ab7a8922c434479fb032d9d865e83ba7b46543dd7a6b32a013d555ff
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
# ChangeLog
|
2
2
|
|
3
|
-
## [Unreleased](https://github.com/algolia/algoliasearch-client-ruby/compare/2.2.
|
3
|
+
## [Unreleased](https://github.com/algolia/algoliasearch-client-ruby/compare/2.2.3..master)
|
4
4
|
|
5
|
-
## [2.2.
|
5
|
+
## [2.2.3](https://github.com/algolia/algoliasearch-client-ruby/compare/2.2.2...2.2.3) (2022-04-21)
|
6
|
+
### Fixed
|
7
|
+
- API polling flood issue due to msec sleep time mishandling ([`#472`](https://github.com/algolia/algoliasearch-client-ruby/pull/472))
|
8
|
+
- mailto link in SECURITY.md ([`#463`](https://github.com/algolia/algoliasearch-client-ruby/pull/463))
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- allow hash in multiple queries ([`#468`](https://github.com/algolia/algoliasearch-client-ruby/pull/468))
|
12
|
+
|
13
|
+
## [2.2.2](https://github.com/algolia/algoliasearch-client-ruby/compare/2.2.1...2.2.2) (2021-12-08)
|
6
14
|
### Fixed
|
7
15
|
- Added a `status` field to the `MockRequester` ([`#467`](https://github.com/algolia/algoliasearch-client-ruby/pull/467))
|
8
16
|
|
data/SECURITY.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
## Reporting a Vulnerability
|
2
2
|
|
3
|
-
To report a security vulnerability, please use the [Algolia security email](security@algolia.com). Algolia will coordinate the fix and disclosure.
|
3
|
+
To report a security vulnerability, please use the [Algolia security email](mailto:security@algolia.com). Algolia will coordinate the fix and disclosure.
|
@@ -478,6 +478,9 @@ module Algolia
|
|
478
478
|
# @return [Hash]
|
479
479
|
#
|
480
480
|
def multiple_queries(queries, opts = {})
|
481
|
+
queries.each do |q|
|
482
|
+
q[:params] = to_query_string(q[:params]) unless q[:params].is_a?(String)
|
483
|
+
end
|
481
484
|
@transporter.read(:POST, '/1/indexes/*/queries', { requests: queries }, opts)
|
482
485
|
end
|
483
486
|
alias_method :search, :multiple_queries
|
data/lib/algolia/search_index.rb
CHANGED
data/lib/algolia/version.rb
CHANGED
@@ -14,7 +14,7 @@ class AccountClientTest < BaseTest
|
|
14
14
|
|
15
15
|
search_client2 = Algolia::Search::Client.create(APPLICATION_ID_2, ADMIN_KEY_2)
|
16
16
|
index2 = search_client2.init_index(get_test_index_name('copy_index2'))
|
17
|
-
index1.save_object!({ objectID: 'one' })
|
17
|
+
index1.save_object!({ objectID: 'one', title: 'Test title' })
|
18
18
|
index1.save_rule!({
|
19
19
|
objectID: 'one',
|
20
20
|
condition: { anchoring: 'is', pattern: 'pattern' },
|
@@ -29,7 +29,7 @@ class AccountClientTest < BaseTest
|
|
29
29
|
}
|
30
30
|
})
|
31
31
|
index1.save_synonym!({ objectID: 'one', type: 'synonym', synonyms: %w(one two) })
|
32
|
-
index1.set_settings!({ searchableAttributes: ['
|
32
|
+
index1.set_settings!({ searchableAttributes: ['title'] })
|
33
33
|
|
34
34
|
Algolia::Account::Client.copy_index!(index1, index2)
|
35
35
|
assert_equal 'one', index2.get_object('one')[:objectID]
|
@@ -294,7 +294,7 @@ class SearchClientTest < BaseTest
|
|
294
294
|
|
295
295
|
results = @@search_client.multiple_queries([
|
296
296
|
{ indexName: index_name1, params: to_query_string({ query: '', hitsPerPage: 2 }) },
|
297
|
-
{ indexName: index_name2, params:
|
297
|
+
{ indexName: index_name2, params: { query: '', hitsPerPage: 2 } }
|
298
298
|
], { strategy: 'none' })[:results]
|
299
299
|
|
300
300
|
assert_equal 2, results.length
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algolia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Algolia
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|