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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1132fea78a812b9835eef5a94fffc191551e9f327955e1ba89f4509888fa8146
4
- data.tar.gz: 68eb70bc73f8641c2915028c6d64c48c959bb8bc785a042f0ddee95b0ef07c50
3
+ metadata.gz: d7146b65ddc08015512a98785cfab5da9165c8a60f0b4ecad1a19b344047c633
4
+ data.tar.gz: 963d5665c14c5e8adc11d4ef4cbac828f960f71a26cb87904382c65a881b8fef
5
5
  SHA512:
6
- metadata.gz: 1ac5684f8542587c703b2b694552bb256390af95171e25bce26157fb19c09d4e409a3adaee6b6b9372b8092b4d43e93b03784cbdfe761beb46fc2037d69d14f5
7
- data.tar.gz: 5a1de134f24d453e4fdb2876d4d58ba0564f485aa093f727d37830a9f970c2dce60c648741dcf01dce2f33ccd458ebbb1a514ad546ea399be5c1feec0ec02b20
6
+ metadata.gz: 2597247cb0fc90705d9cad7a64f2760c2d60ded206e64081a3b7295d33b4938cac15020c0c4f5d2bdbbc04a4282e564f9196e30d454c794b71d65e3fb11749bd
7
+ data.tar.gz: 4328796a3fa21acee33699b0e915b434decccfcff4c2524ad01697c526ffea2f28b29b7c953f8dc6b7e245f5b83161fa7f0e7a47f9e9e13f7c0791277f639f14
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.9.2] - 2024-10-01
4
+ - Weaviate::Client constructor accepts customer logger: to be passed in
5
+
3
6
  ## [0.9.1] - 2024-09-19
4
7
 
5
8
  ## [0.9.0] - 2024-07-08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weaviate-ruby (0.9.1)
4
+ weaviate-ruby (0.9.2)
5
5
  faraday (>= 2.0.1, < 3.0)
6
6
  graphlient (>= 0.7.0, < 0.9.0)
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weaviate
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
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.1
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-09-19 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday