From 41a0b8ff349f702650764df54c2580be24816b0c Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Sun, 10 Jan 2021 17:06:16 +0000 Subject: [PATCH] move http-form_data to test dependencies block --- Gemfile | 1 + httpx.gemspec | 1 - lib/httpx/plugins/multipart.rb | 4 ---- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 48e22735..8ed162c8 100644 --- a/Gemfile +++ b/Gemfile @@ -9,6 +9,7 @@ gem "rake", "~> 12.3" group :test do gem "ddtrace" + gem "http-form_data", ">= 2.0.0" gem "minitest" gem "minitest-proveit" gem "webmock" diff --git a/httpx.gemspec b/httpx.gemspec index a7dfb151..29ebb91d 100644 --- a/httpx.gemspec +++ b/httpx.gemspec @@ -32,5 +32,4 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency "http-2-next", ">= 0.1.2" gem.add_runtime_dependency "timers" - gem.add_development_dependency "http-form_data", ">= 2.0.0", "< 3" end diff --git a/lib/httpx/plugins/multipart.rb b/lib/httpx/plugins/multipart.rb index 4c125e86..557cc6f5 100644 --- a/lib/httpx/plugins/multipart.rb +++ b/lib/httpx/plugins/multipart.rb @@ -50,10 +50,6 @@ module HTTPX end end - def self.load_dependencies(*) - require "http/form_data" - end - def self.configure(*) Transcoder.register("form", FormTranscoder) end