From b218b6383d299c5fb6c5ff7e14fac0f7c0992836 Mon Sep 17 00:00:00 2001 From: Andrei Bondarev Date: Wed, 10 May 2023 09:13:22 -0500 Subject: [PATCH 1/2] Relax `faraday` dep --- Gemfile.lock | 12 ++++++------ lib/qdrant/version.rb | 2 +- qdrant.gemspec | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 82b8955..f9c4a7c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,8 @@ PATH remote: . specs: - qdrant-ruby (0.9.1) - faraday (~> 2.7) + qdrant-ruby (0.9.2) + faraday (~> 1) GEM remote: https://rubygems.org/ @@ -11,13 +11,13 @@ GEM byebug (11.1.3) coderay (1.1.3) diff-lcs (1.5.0) - faraday (2.7.4) - faraday-net_http (>= 2.0, < 3.1) - ruby2_keywords (>= 0.0.4) - faraday-net_http (3.0.2) + faraday (1.2.0) + multipart-post (>= 1.2, < 3) + ruby2_keywords json (2.6.3) language_server-protocol (3.17.0.3) method_source (1.0.0) + multipart-post (2.3.0) parallel (1.22.1) parser (3.2.1.1) ast (~> 2.4.1) diff --git a/lib/qdrant/version.rb b/lib/qdrant/version.rb index 3904c7f..0c0b49d 100644 --- a/lib/qdrant/version.rb +++ b/lib/qdrant/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Qdrant - VERSION = "0.9.1" + VERSION = "0.9.2" end diff --git a/qdrant.gemspec b/qdrant.gemspec index 20ec82d..358105b 100644 --- a/qdrant.gemspec +++ b/qdrant.gemspec @@ -35,6 +35,6 @@ Gem::Specification.new do |spec| # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html - spec.add_dependency "faraday", "~> 2.7" + spec.add_dependency "faraday", "~> 1" spec.add_development_dependency "pry-byebug", "~> 3.9" end From e7447f23c037fbd485cf639e33d546d2b242d1ce Mon Sep 17 00:00:00 2001 From: Andrei Bondarev Date: Wed, 10 May 2023 10:22:10 -0500 Subject: [PATCH 2/2] fix --- Gemfile.lock | 3 +++ lib/qdrant/client.rb | 1 + qdrant.gemspec | 1 + spec/spec_helper.rb | 3 +++ 4 files changed, 8 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index f9c4a7c..179cccd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,6 +3,7 @@ PATH specs: qdrant-ruby (0.9.2) faraday (~> 1) + faraday_middleware (~> 1) GEM remote: https://rubygems.org/ @@ -14,6 +15,8 @@ GEM faraday (1.2.0) multipart-post (>= 1.2, < 3) ruby2_keywords + faraday_middleware (1.2.0) + faraday (~> 1.0) json (2.6.3) language_server-protocol (3.17.0.3) method_source (1.0.0) diff --git a/lib/qdrant/client.rb b/lib/qdrant/client.rb index fac7fe2..3b69a0d 100644 --- a/lib/qdrant/client.rb +++ b/lib/qdrant/client.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "faraday" +require "faraday_middleware" require "forwardable" module Qdrant diff --git a/qdrant.gemspec b/qdrant.gemspec index 358105b..4cad136 100644 --- a/qdrant.gemspec +++ b/qdrant.gemspec @@ -36,5 +36,6 @@ Gem::Specification.new do |spec| # guide at: https://bundler.io/guides/creating_gem.html spec.add_dependency "faraday", "~> 1" + spec.add_dependency "faraday_middleware", "~> 1" spec.add_development_dependency "pry-byebug", "~> 3.9" end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b138011..22581b6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,10 @@ # frozen_string_literal: true +require "json" +require "ostruct" require "qdrant" require "faraday" +require "faraday_middleware" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure