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 +4 -4
- data/lib/meilisearch/http_request.rb +4 -2
- data/lib/meilisearch/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: 2540e65f9756b00265d39045cc557a7a70b95379efb9e853a19e2d310b08b641
|
4
|
+
data.tar.gz: b6b2ced9220eab1b917fd4711343e10b50755de3b51e2eb6eb53292a105f0105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/meilisearch/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|