transloadit 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0001e9da3cd516d632f1f64b19e3c1a543b3fcb8b3d595ef357b1378be78575
4
- data.tar.gz: c835af092c5046f590b6cd57570ee10b12aef5b8679da544f61217f5a349a8c1
3
+ metadata.gz: 8b480b37a302c532534cdcc551cf6cd4dd587fa835525a5a62fca02eb26971fa
4
+ data.tar.gz: f2a3aa8d77377d3c95b7e8ea93d47538474724c5964067c03db82ef569942b49
5
5
  SHA512:
6
- metadata.gz: 179ec53008ed5bd7525a422bd3bdb6fe69ef4b665cb6fdfd1c6490ceb91ce9452c965ee5476a51494e144f1d8f02fda5344121763a0a0ea2bfaf0315b48633b4
7
- data.tar.gz: 9b599ab52a8d44016cd4e9dcaf954fd845a4ae881f1c85b4efcb1d1a867e006eb433cd3b09333cbafa8f03f7ef8860ae3cd7668f72ce2415cb3cdb7256a1a3d8
6
+ metadata.gz: efa23c8fcf0bacbe2a37c38355f52377ca9bdec6d521994e1ed97d8e6959e47257daf2d47ecf0874ddc143185491ebefc03a9abef4c9b7e7942fef4bebaba01a
7
+ data.tar.gz: 61e34802da9d7de2e1c9d1db604b863ff4f1078f95940224c74d610045923498fd0f5c2a462f1604697d1eace135e09b65743393bbde00215d9cab599b74111c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 3.0.1 / 2024-01-10
2
+
3
+ - Fix `undefined method` errors when handling network exceptions [#67](https://github.com/transloadit/ruby-sdk/pull/67) (@Acconut)
4
+
1
5
  ### 3.0.0 / 2024-01-10
2
6
 
3
7
  - BREAKING: Drop support for EOL'd Ruby 2.x
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class Transloadit
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transloadit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Touset