weaviate-ruby 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/weaviate/client.rb +5 -2
- data/lib/weaviate/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: d7146b65ddc08015512a98785cfab5da9165c8a60f0b4ecad1a19b344047c633
|
4
|
+
data.tar.gz: 963d5665c14c5e8adc11d4ef4cbac828f960f71a26cb87904382c65a881b8fef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2597247cb0fc90705d9cad7a64f2760c2d60ded206e64081a3b7295d33b4938cac15020c0c4f5d2bdbbc04a4282e564f9196e30d454c794b71d65e3fb11749bd
|
7
|
+
data.tar.gz: 4328796a3fa21acee33699b0e915b434decccfcff4c2524ad01697c526ffea2f28b29b7c953f8dc6b7e245f5b83161fa7f0e7a47f9e9e13f7c0791277f639f14
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/weaviate/client.rb
CHANGED
@@ -5,7 +5,7 @@ require "graphlient"
|
|
5
5
|
|
6
6
|
module Weaviate
|
7
7
|
class Client
|
8
|
-
attr_reader :url, :api_key, :model_service, :model_service_api_key, :adapter
|
8
|
+
attr_reader :url, :api_key, :model_service, :model_service_api_key, :adapter, :logger
|
9
9
|
|
10
10
|
API_VERSION = "v1"
|
11
11
|
|
@@ -23,7 +23,8 @@ module Weaviate
|
|
23
23
|
api_key: nil,
|
24
24
|
model_service: nil,
|
25
25
|
model_service_api_key: nil,
|
26
|
-
adapter: Faraday.default_adapter
|
26
|
+
adapter: Faraday.default_adapter,
|
27
|
+
logger: nil
|
27
28
|
)
|
28
29
|
validate_model_service!(model_service) unless model_service.nil?
|
29
30
|
|
@@ -32,6 +33,7 @@ module Weaviate
|
|
32
33
|
@model_service = model_service
|
33
34
|
@model_service_api_key = model_service_api_key
|
34
35
|
@adapter = adapter
|
36
|
+
@logger = logger || Logger.new($stdout)
|
35
37
|
end
|
36
38
|
|
37
39
|
def oidc
|
@@ -105,6 +107,7 @@ module Weaviate
|
|
105
107
|
faraday.request :authorization, :Bearer, api_key
|
106
108
|
end
|
107
109
|
faraday.request :json
|
110
|
+
faraday.response :logger, logger, {headers: true, bodies: true, errors: true}
|
108
111
|
faraday.response :json, content_type: /\bjson$/
|
109
112
|
faraday.response :raise_error
|
110
113
|
faraday.adapter adapter
|
data/lib/weaviate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weaviate-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|