faraday 0.17.5 → 0.17.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/faraday/upload_io.rb +16 -6
- data/lib/faraday.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d15adebd24ca50e38ac12d74f518927ee757abe32ce2693aac8f6b3b2d5db6
|
4
|
+
data.tar.gz: 72247b6844e16989a3c186a95e226b8254da0dff82854922242add3535707a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08df648fee5c02b6fd54d70615ee97ccc978d5a16471cbfc4790150189de39799e60bd67d45236645c79785062dc14aef36a0c516e847c7a43615e7147381aad'
|
7
|
+
data.tar.gz: de528b3a2c4a552f68cfb95814729018106146c5bc0861abfcbd45d4202036c9e7347f40dfe1703a27a939e1960e2019bae9293039a1550031a41124c27dfd7c
|
data/lib/faraday/upload_io.rb
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
begin
|
2
|
-
require '
|
3
|
-
require 'parts'
|
2
|
+
require 'multipart/post'
|
4
3
|
require 'stringio'
|
5
4
|
rescue LoadError
|
6
|
-
|
7
|
-
|
5
|
+
begin
|
6
|
+
require 'composite_io'
|
7
|
+
require 'parts'
|
8
|
+
require 'stringio'
|
9
|
+
rescue LoadError
|
10
|
+
$stderr.puts "Install the multipart-post gem."
|
11
|
+
raise
|
12
|
+
end
|
8
13
|
end
|
9
14
|
|
10
15
|
module Faraday
|
@@ -62,6 +67,11 @@ module Faraday
|
|
62
67
|
end
|
63
68
|
end
|
64
69
|
|
65
|
-
|
66
|
-
|
70
|
+
if defined?(::Multipart::Post::UploadIO)
|
71
|
+
UploadIO = ::Multipart::Post::UploadIO
|
72
|
+
Parts = ::Multipart::Post::Parts
|
73
|
+
else
|
74
|
+
UploadIO = ::UploadIO
|
75
|
+
Parts = ::Parts
|
76
|
+
end
|
67
77
|
end
|
data/lib/faraday.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "@technoweenie"
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multipart-post
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
|
-
rubygems_version: 3.
|
136
|
+
rubygems_version: 3.3.7
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: HTTP/REST API client library.
|