meilisearch 0.13.2 → 0.13.3

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: 1a404b36eefbf9a36bae33b1d5b93254f7b88c7a99eac6ad958f746f914dac1e
4
- data.tar.gz: bdd20fa28ebd8ccad0decd303c3e18eb59cb2d6176719235f82cc994ff75d75b
3
+ metadata.gz: 2540e65f9756b00265d39045cc557a7a70b95379efb9e853a19e2d310b08b641
4
+ data.tar.gz: b6b2ced9220eab1b917fd4711343e10b50755de3b51e2eb6eb53292a105f0105
5
5
  SHA512:
6
- metadata.gz: 1bef203c596fea8974c0d45b9ebe1ad4b7d6239db39d57dabba57f25956a684d068e6297d5d7bb6115030be11d61b7fa461877d53c8e6d52e4926166a37b5290
7
- data.tar.gz: 0540e59b6bafdd7c1c34c8afbfc0ccf930c0dfb020f69dfda9e9df7674c81e8da9fadbd0c3aebbe28ad19370cfe17bf4f0fffc378a479b95df18e9343b086861
6
+ metadata.gz: 5827e1e243154d2b431c3a4f678d7db404140f6d19d5bf07a4f402b874de90918ce84fea0793a178527f158931a8de3f1a24f517d391f1aaedf14d09ef272a14
7
+ data.tar.gz: d084c29d0094e52ab63036439cfaa1415d38fe3148a9591f2ba801f89aa343704bb7e3253560cea0b69172ddf5f267d6b6ad9cff4d1f8f77521dae6d72f5e7af
@@ -7,9 +7,10 @@ module MeiliSearch
7
7
  class HTTPRequest
8
8
  include HTTParty
9
9
 
10
- def initialize(url, api_key = nil)
10
+ def initialize(url, api_key = nil, options = {})
11
11
  @base_url = url
12
12
  @api_key = api_key
13
+ @options = options
13
14
  @headers = {
14
15
  'Content-Type' => 'application/json',
15
16
  'X-Meili-API-Key' => api_key
@@ -67,7 +68,8 @@ module MeiliSearch
67
68
  headers: @headers,
68
69
  query: query_params,
69
70
  body: body,
70
- timeout: 1
71
+ timeout: @options[:timeout] || 1,
72
+ max_retries: @options[:max_retries] || 0
71
73
  }.compact
72
74
  end
73
75
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MeiliSearch
4
- VERSION = '0.13.2'
4
+ VERSION = '0.13.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meilisearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meili
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty