mirror of
https://github.com/lostisland/faraday.git
synced 2025-07-05 00:02:41 -04:00
Compare commits
2 Commits
ca01f47f5d
...
f33bd3782c
Author | SHA1 | Date | |
---|---|---|---|
|
f33bd3782c | ||
|
db14de8b90 |
@ -14,7 +14,7 @@ require 'forwardable'
|
|||||||
# conn.get '/'
|
# conn.get '/'
|
||||||
#
|
#
|
||||||
module Faraday
|
module Faraday
|
||||||
VERSION = "0.17.5"
|
VERSION = "0.17.6"
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
# Public: Gets or sets the root path that Faraday is being loaded from.
|
# Public: Gets or sets the root path that Faraday is being loaded from.
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
begin
|
begin
|
||||||
require 'composite_io'
|
require 'multipart/post'
|
||||||
require 'parts'
|
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
$stderr.puts "Install the multipart-post gem."
|
begin
|
||||||
raise
|
require 'composite_io'
|
||||||
|
require 'parts'
|
||||||
|
require 'stringio'
|
||||||
|
rescue LoadError
|
||||||
|
$stderr.puts "Install the multipart-post gem."
|
||||||
|
raise
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module Faraday
|
module Faraday
|
||||||
@ -62,6 +67,11 @@ module Faraday
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
UploadIO = ::UploadIO
|
if defined?(::Multipart::Post::UploadIO)
|
||||||
Parts = ::Parts
|
UploadIO = ::Multipart::Post::UploadIO
|
||||||
|
Parts = ::Multipart::Post::Parts
|
||||||
|
else
|
||||||
|
UploadIO = ::UploadIO
|
||||||
|
Parts = ::Parts
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user