lib/httpx/plugins/multipart.rb in httpx-0.11.3 vs lib/httpx/plugins/multipart.rb in httpx-0.12.0

- old
+ new

@@ -21,19 +21,21 @@ def normalize_keys(key, value, &block) Transcoder.normalize_keys(key, value, MULTIPART_VALUE_COND, &block) end def load_dependencies(*) + # :nocov: begin unless defined?(HTTP::FormData) # in order not to break legacy code, we'll keep loading http/form_data for them. require "http/form_data" warn "httpx: http/form_data is no longer a requirement to use HTTPX :multipart plugin. See migration instructions under" \ "https://honeyryderchuck.gitlab.io/httpx/wiki/Multipart-Uploads.html#notes. \n\n" \ "If you'd like to stop seeing this message, require 'http/form_data' yourself." end rescue LoadError end + # :nocov: require "httpx/plugins/multipart/encoder" require "httpx/plugins/multipart/part" require "httpx/plugins/multipart/mime_type_detector" end