transloadit 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/transloadit/request.rb +5 -0
- data/lib/transloadit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b480b37a302c532534cdcc551cf6cd4dd587fa835525a5a62fca02eb26971fa
|
4
|
+
data.tar.gz: f2a3aa8d77377d3c95b7e8ea93d47538474724c5964067c03db82ef569942b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efa23c8fcf0bacbe2a37c38355f52377ca9bdec6d521994e1ed97d8e6959e47257daf2d47ecf0874ddc143185491ebefc03a9abef4c9b7e7942fef4bebaba01a
|
7
|
+
data.tar.gz: 61e34802da9d7de2e1c9d1db604b863ff4f1078f95940224c74d610045923498fd0f5c2a462f1604697d1eace135e09b65743393bbde00215d9cab599b74111c
|
data/CHANGELOG.md
CHANGED
data/lib/transloadit/request.rb
CHANGED
@@ -187,6 +187,11 @@ class Transloadit::Request
|
|
187
187
|
def request!(&request)
|
188
188
|
Transloadit::Response.new yield
|
189
189
|
rescue RestClient::Exception => e
|
190
|
+
# The response attribute can be nil, for example for RestClient::Exceptions::OpenTimeout exceptions.
|
191
|
+
# Then, we cannot convert them into a Transloadit::Response, so instead we raise them again for
|
192
|
+
# the user to be visible.
|
193
|
+
# See https://github.com/transloadit/ruby-sdk/issues/53
|
194
|
+
raise e if e.response.nil?
|
190
195
|
Transloadit::Response.new e.response
|
191
196
|
end
|
192
197
|
|
data/lib/transloadit/version.rb
CHANGED