Compare commits

..

2 Commits

Author SHA1 Message Date
Matt
f33bd3782c
Version bump to 0.17.6 2022-11-04 17:20:15 +00:00
Quinn Chaffee
db14de8b90
Silence Multipart/Post deprecation warnings (#1455) 2022-11-04 17:19:41 +00:00
2 changed files with 17 additions and 7 deletions

View File

@ -14,7 +14,7 @@ require 'forwardable'
# conn.get '/'
#
module Faraday
VERSION = "0.17.5"
VERSION = "0.17.6"
class << self
# Public: Gets or sets the root path that Faraday is being loaded from.

View File

@ -1,10 +1,15 @@
begin
require 'multipart/post'
require 'stringio'
rescue LoadError
begin
require 'composite_io'
require 'parts'
require 'stringio'
rescue LoadError
rescue LoadError
$stderr.puts "Install the multipart-post gem."
raise
end
end
module Faraday
@ -62,6 +67,11 @@ module Faraday
end
end
if defined?(::Multipart::Post::UploadIO)
UploadIO = ::Multipart::Post::UploadIO
Parts = ::Multipart::Post::Parts
else
UploadIO = ::UploadIO
Parts = ::Parts
end
end