qdrant-ruby 0.9.7 → 0.9.8

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: daa79e8d789d5a0c4da9cd5592dc361674c60c29b8365e4817a8f5c1f0ebacdb
4
- data.tar.gz: 4d3d67bdf59663ba8f4fb4644d4be74cc9e7cdb0e547047ee4485b149021ea9c
3
+ metadata.gz: c009d0edf98ba90d6d37eeae04d16ae3900f6c66ac25a231b5d4dd2b0ecb7a0d
4
+ data.tar.gz: f44fb8454d573445758885eeb2d4141c5f2877ac0b89df368e2a75104b511eaa
5
5
  SHA512:
6
- metadata.gz: 2d3d7c91a53f269543925feda94237599c4f0886e6812504d96427739aab8914693890cd8c98f0c4dffb17c971fa99a09f6026d990d0170be521ce186211fe0c
7
- data.tar.gz: 8fe548b7eef0acea610057d67e19f21e7835ec98ee732d31c42cdefd2d39254b743cc038d665e6720fe709e3cbe284361141a21743e9232b7c255765aea3a92b
6
+ metadata.gz: d2752bb4b95bba1eed39e37a1393feb4f2fb8ca97bbf2bd1fcf1e09b53dad77fc519fb3a46c1616fd318a06a8cf6a6c965de5c0a2c49eb2a16efde0a90bf9769
7
+ data.tar.gz: e710fd046dffa50fe269d82c320334196c26098d5d9c629559c3ff247d9bddeddefc0654476f1307fa2f03023840aecfac64b9be5397366c31c20fc42f559d8e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.9.8] - 2024-10-01
4
+ - Qdrant::Client constructor accepts customer logger: to be passed in
5
+
3
6
  ## [0.9.7] - 2024-01-19
4
7
  - fix: points/delete api
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qdrant-ruby (0.9.7)
4
+ qdrant-ruby (0.9.8)
5
5
  faraday (>= 2.0.1, < 3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -34,8 +34,8 @@ If bundler is not being used to manage dependencies, install the gem by executin
34
34
  require 'qdrant'
35
35
 
36
36
  client = Qdrant::Client.new(
37
- url: "your-qdrant-url",
38
- api_key: "your-qdrant-api-key"
37
+ url: ENV["QDRANT_URL"],
38
+ api_key: ENV["QDRANT_API_KEY"]
39
39
  )
40
40
  ```
41
41
 
data/lib/qdrant/client.rb CHANGED
@@ -7,7 +7,7 @@ module Qdrant
7
7
  class Client
8
8
  extend Forwardable
9
9
 
10
- attr_reader :url, :api_key, :adapter, :raise_error
10
+ attr_reader :url, :api_key, :adapter, :raise_error, :logger
11
11
 
12
12
  def_delegators :service, :telemetry, :metrics, :locks, :set_lock
13
13
 
@@ -15,12 +15,14 @@ module Qdrant
15
15
  url:,
16
16
  api_key: nil,
17
17
  adapter: Faraday.default_adapter,
18
- raise_error: false
18
+ raise_error: false,
19
+ logger: nil
19
20
  )
20
21
  @url = url
21
22
  @api_key = api_key
22
23
  @adapter = adapter
23
24
  @raise_error = raise_error
25
+ @logger = logger || Logger.new($stdout)
24
26
  end
25
27
 
26
28
  def connection
@@ -29,6 +31,7 @@ module Qdrant
29
31
  faraday.headers["api-key"] = api_key
30
32
  end
31
33
  faraday.request :json
34
+ faraday.response :logger, @logger, {headers: true, bodies: true, errors: true}
32
35
  faraday.response :raise_error if raise_error
33
36
  faraday.response :json, content_type: /\bjson$/
34
37
  faraday.adapter adapter
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qdrant
4
- VERSION = "0.9.7"
4
+ VERSION = "0.9.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qdrant-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
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-01-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
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.4.1
97
+ rubygems_version: 3.5.11
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Ruby wrapper for the Qdrant vector search database API