algolia 3.6.0 → 3.7.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 +9 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/search_client.rb +4 -2
- data/lib/algolia/models/ingestion/auth_input.rb +2 -1
- data/lib/algolia/models/ingestion/auth_input_partial.rb +2 -1
- data/lib/algolia/models/ingestion/authentication_type.rb +2 -1
- data/lib/algolia/version.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: 52c757fd33261a345c28764b6415188abafbd782d8adaed5ffc7a284291519fa
|
4
|
+
data.tar.gz: e05a6ed2689c8509aef0dcf62318d79ae6a47d4dd35192316f0cc496b3c4c544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c710af9d2873404f720049a4572536d259a09a5416785247e50911b53689542a755af34d6a93d2d44cb8378e2f243a2496702d97d122d010f91e6d3571d6254
|
7
|
+
data.tar.gz: '09f66bd5a9aac13e16d2fbc812afef3b1b9de0c25ff692921a84a0888c6e74479225a100ad7d90506119e810680e2f812a77aca62a9f7dfe9241559c85dbaea2'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [3.7.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.7.0...3.7.1)
|
2
|
+
|
3
|
+
- [801241e12](https://github.com/algolia/api-clients-automation/commit/801241e12) fix(specs): add secrets payload for updates ([#4061](https://github.com/algolia/api-clients-automation/pull/4061)) by [@shortcuts](https://github.com/shortcuts/)
|
4
|
+
- [625421783](https://github.com/algolia/api-clients-automation/commit/625421783) fix(clients): update browse iterator ([#4058](https://github.com/algolia/api-clients-automation/pull/4058)) by [@Fluf22](https://github.com/Fluf22/)
|
5
|
+
|
6
|
+
## [3.7.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.6.0...3.7.0)
|
7
|
+
|
8
|
+
- [be40cf61d](https://github.com/algolia/api-clients-automation/commit/be40cf61d) feat(specs): add secrets authentications to ingestion ([#4054](https://github.com/algolia/api-clients-automation/pull/4054)) by [@shortcuts](https://github.com/shortcuts/)
|
9
|
+
|
1
10
|
## [3.6.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.5.4...3.6.0)
|
2
11
|
|
3
12
|
- [46ba4b50a](https://github.com/algolia/api-clients-automation/commit/46ba4b50a) fix(ruby): provide default ttl ([#4027](https://github.com/algolia/api-clients-automation/pull/4027)) by [@millotp](https://github.com/millotp/)
|
data/Gemfile.lock
CHANGED
@@ -3201,6 +3201,8 @@ module Algolia
|
|
3201
3201
|
# @param request_options [Hash] the requestOptions to send along with the query, they will be forwarded to the `browse` method.
|
3202
3202
|
# @param block [Proc] the block to execute on each object of the index.
|
3203
3203
|
def browse_objects(index_name, browse_params = Search::BrowseParamsObject.new, request_options = {}, &block)
|
3204
|
+
browse_params[:hits_per_page] = browse_params[:hits_per_page] || 1000
|
3205
|
+
|
3204
3206
|
hits = []
|
3205
3207
|
loop do
|
3206
3208
|
res = browse(index_name, browse_params, request_options)
|
@@ -3243,7 +3245,7 @@ module Algolia
|
|
3243
3245
|
end
|
3244
3246
|
|
3245
3247
|
search_rules_params.page += 1
|
3246
|
-
break if res.
|
3248
|
+
break if res.hits.length < search_rules_params.hits_per_page
|
3247
3249
|
end
|
3248
3250
|
|
3249
3251
|
rules unless block_given?
|
@@ -3273,7 +3275,7 @@ module Algolia
|
|
3273
3275
|
end
|
3274
3276
|
|
3275
3277
|
search_synonyms_params.page += 1
|
3276
|
-
break if res.
|
3278
|
+
break if res.hits.length < search_synonyms_params.hits_per_page
|
3277
3279
|
end
|
3278
3280
|
|
3279
3281
|
synonyms unless block_given?
|
@@ -12,9 +12,10 @@ module Algolia
|
|
12
12
|
OAUTH = "oauth".freeze
|
13
13
|
ALGOLIA = "algolia".freeze
|
14
14
|
ALGOLIA_INSIGHTS = "algoliaInsights".freeze
|
15
|
+
SECRETS = "secrets".freeze
|
15
16
|
|
16
17
|
def self.all_vars
|
17
|
-
@all_vars ||= [GOOGLE_SERVICE_ACCOUNT, BASIC, API_KEY, OAUTH, ALGOLIA, ALGOLIA_INSIGHTS].freeze
|
18
|
+
@all_vars ||= [GOOGLE_SERVICE_ACCOUNT, BASIC, API_KEY, OAUTH, ALGOLIA, ALGOLIA_INSIGHTS, SECRETS].freeze
|
18
19
|
end
|
19
20
|
|
20
21
|
# Builds the enum from string
|
data/lib/algolia/version.rb
CHANGED
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: 3.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://alg.li/support
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|