files.com 1.0.307 → 1.0.308
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/lib/files.com/api_client.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '029fd6443229afde9c000f01bd29c02e9aa0e4b3b39b0fc6b6cdc0ae7985a26c'
|
4
|
+
data.tar.gz: 100d6c345afadfb7e5498e7bda0fc76470f50ff02fc9ad491e275fda9c607add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fd4e49c12bc50fc97831f1848e48c256e07058e3767235520918332c6897953130515adcbce7fb42d313b74c64cdfdc23fc95c87f2f826b148600e1a48cd959
|
7
|
+
data.tar.gz: 105a58fd30159014b17d6b29a1114e979ff800f081e7a694c0aa49afc3cd69194911b28f7f0af9f43e4e4c25f3f308306036a993b722e98c119c905733ace5df
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.308
|
data/lib/files.com/api_client.rb
CHANGED
@@ -287,7 +287,9 @@ module Files
|
|
287
287
|
return APIError.new(error_data[:message], **opts) unless resp&.data&.dig(:type)
|
288
288
|
|
289
289
|
begin
|
290
|
-
|
290
|
+
error_type = resp.data[:type].split("/").last
|
291
|
+
error_class_name = "#{error_type.split("-").map(&:capitalize).join}Error"
|
292
|
+
error_class = Files.const_get(error_class_name)
|
291
293
|
error_class.new(error_data[:message], **opts)
|
292
294
|
rescue NameError
|
293
295
|
APIError.new(error_data[:message], **opts)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.308
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|