algolia 2.3.0 → 2.3.2

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: 15b704f5d3b08b2b064ca27bfc35af576f484dab073bd741836cf89c7e74f886
4
- data.tar.gz: 3bfa9e4d09abbbdf0d3072ec9d80918760329a2d5c2f1395839d67aa9756e618
3
+ metadata.gz: 1dfdc9659fd559dda96a6bac3df7d81f455fba723f835ee62213928bb2e1ba03
4
+ data.tar.gz: fd2abb719cc40db045c976e1183083986ebc13fff45a979bd6a0da4bb1cf68c1
5
5
  SHA512:
6
- metadata.gz: 990ea9edd9af11f73466bb889748bf59849a55aa2641c4f30042dc606f2bd0f79f5ddb5c474f9e5630a6bce4410d2e550dfa5cbd4b77194c097bf7de48d2e235
7
- data.tar.gz: 3a28d34bf348a1ea25212706151b18fa7922e58020c66d947ba28b214b5c302e59509ef8f9fe1fe16b698bbbb2ac6f89e15f6f0052e82f168a4dcd522f550d6d
6
+ metadata.gz: ed0f1ba2efdb129534b30ec41f381d9288685aa9f88beeaea813426ba40831c3c3691727fcfd52002a6db35a0f2c3218687b2687fb3e7b71e8ccfc655b27b920
7
+ data.tar.gz: 8df23199078a71911b108864b74e0c9431790fdb28cfd5cafdd811ecc31d9a860a53e9031b050b969ba73aaa49ac96555c564162fb766425c86683cc2dcfb74a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # ChangeLog
2
2
 
3
- ## [Unreleased](https://github.com/algolia/algoliasearch-client-ruby/compare/2.3.0..master)
3
+ ## [Unreleased](https://github.com/algolia/algoliasearch-client-ruby/compare/2.3.2..master)
4
+
5
+ ## [2.3.2](https://github.com/algolia/algoliasearch-client-ruby/compare/2.3.1...2.3.2) (2023-06-07)
6
+ ### Fixed
7
+ - Fixed issue with Request not taking timeouts into account ([`#493`](https://github.com/algolia/algoliasearch-client-ruby/pull/493))
8
+
9
+ ## [2.3.1](https://github.com/algolia/algoliasearch-client-ruby/compare/2.3.0...2.3.1) (2022-09-26)
10
+ ### Fixed
11
+ - Fixed issue when project uses Faraday <1 ([`#485`](https://github.com/algolia/algoliasearch-client-ruby/pull/485))
4
12
 
5
13
  ## [2.3.0](https://github.com/algolia/algoliasearch-client-ruby/compare/2.2.5...2.3.0) (2022-09-26)
6
14
  ### Changed
@@ -1,6 +1,6 @@
1
1
  require 'faraday'
2
2
  # this is the default adapter and it needs to be required to be registered.
3
- require 'faraday/net_http_persistent'
3
+ require 'faraday/net_http_persistent' unless Faraday::VERSION < '1'
4
4
 
5
5
  module Algolia
6
6
  module Transport
@@ -91,11 +91,13 @@ module Algolia
91
91
  # @return [Hash]
92
92
  #
93
93
  def build_request(method, path, body, request_options)
94
- request = {}
95
- request[:method] = method.downcase
96
- request[:path] = build_uri_path(path, request_options.params)
97
- request[:body] = build_body(body, request_options, method)
98
- request[:headers] = generate_headers(request_options)
94
+ request = {}
95
+ request[:method] = method.downcase
96
+ request[:path] = build_uri_path(path, request_options.params)
97
+ request[:body] = build_body(body, request_options, method)
98
+ request[:headers] = generate_headers(request_options)
99
+ request[:timeout] = request_options.timeout
100
+ request[:connect_timeout] = request_options.connect_timeout
99
101
  request
100
102
  end
101
103
 
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = '2.3.0'.freeze
2
+ VERSION = '2.3.2'.freeze
3
3
  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: 2.3.0
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-26 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler