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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b69b808ce96019740c30c69c06a65099eaab82d19970c84d232e04d14e817ce
4
- data.tar.gz: 91215450649fb00e5cd29de2d8ac38b2c3a1fe64df5598cddd12091ce77263c8
3
+ metadata.gz: 52c757fd33261a345c28764b6415188abafbd782d8adaed5ffc7a284291519fa
4
+ data.tar.gz: e05a6ed2689c8509aef0dcf62318d79ae6a47d4dd35192316f0cc496b3c4c544
5
5
  SHA512:
6
- metadata.gz: 97c9bcc12f6fa8f7860fbb2daecb2711ed67553f2050d0c770bf7ee5d3f138160715d32a853197f922cddb8258554ced95f407571f78fb2431845279ae5a518a
7
- data.tar.gz: c9430142c056ff019be74f2f73b67617825681dee9454d18f9e3c51df485d0a31f07f7f5dc21e541182ff22a18c102856a9a02c757f02c7b5f9268107ce63df0
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.6.0)
4
+ algolia (3.7.1)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -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.nb_hits < search_rules_params.hits_per_page
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.nb_hits < search_synonyms_params.hits_per_page
3278
+ break if res.hits.length < search_synonyms_params.hits_per_page
3277
3279
  end
3278
3280
 
3279
3281
  synonyms unless block_given?
@@ -15,7 +15,8 @@ module Algolia
15
15
  :"AuthAlgoliaInsights",
16
16
  :"AuthBasic",
17
17
  :"AuthGoogleServiceAccount",
18
- :"AuthOAuth"
18
+ :"AuthOAuth",
19
+ :"Hash<String, String>"
19
20
  ]
20
21
  end
21
22
 
@@ -15,7 +15,8 @@ module Algolia
15
15
  :"AuthAlgoliaPartial",
16
16
  :"AuthBasicPartial",
17
17
  :"AuthGoogleServiceAccountPartial",
18
- :"AuthOAuthPartial"
18
+ :"AuthOAuthPartial",
19
+ :"Hash<String, String>"
19
20
  ]
20
21
  end
21
22
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  module Algolia
4
- VERSION = "3.6.0".freeze
4
+ VERSION = "3.7.1".freeze
5
5
  end
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.6.0
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-10-29 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday