files.com 1.0.278 → 1.0.279
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 +4 -4
- data/_VERSION +1 -1
- data/lib/files.com/api_client.rb +3 -3
- 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: 2f150a3b746d066c2ceed08a5fea04f9d48505ab5e5b2ed4f196b3e7f1b2e9dc
|
|
4
|
+
data.tar.gz: 4866f9cbbfe9db7d7146555d95a34f738d9dabd0321601b014e321c200fdcbec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52615f94373ae49a77c1d5158048511ba5cc5c647a87d2e9385cef1085d2892a1f64980404914bad6e80b6fc0f3bed36c36630a95be3d44ebb770645af2081a6
|
|
7
|
+
data.tar.gz: 6cda6840a077ef6ef12cfd96e93a4d409b185b5a0b084aa8ced77bae54bf73f79c333d59ac71968f68cc2ef06eae84473ad868650b8bdaeaa07520e77cf1877b
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.279
|
data/lib/files.com/api_client.rb
CHANGED
|
@@ -287,13 +287,13 @@ module Files
|
|
|
287
287
|
code: error_data[:code] || resp.http_status,
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
return APIError.new(error_data[:message], opts) unless resp&.data&.dig(:type)
|
|
290
|
+
return APIError.new(error_data[:message], **opts) unless resp&.data&.dig(:type)
|
|
291
291
|
|
|
292
292
|
begin
|
|
293
293
|
error_class = Files.const_get(resp.data[:type].split("/").map { |piece| piece.split("-").map(&:capitalize).join('') + 'Error' }.join("::"))
|
|
294
|
-
error_class.new(error_data[:message], opts)
|
|
294
|
+
error_class.new(error_data[:message], **opts)
|
|
295
295
|
rescue NameError
|
|
296
|
-
APIError.new(error_data[:message], opts)
|
|
296
|
+
APIError.new(error_data[:message], **opts)
|
|
297
297
|
end
|
|
298
298
|
end
|
|
299
299
|
|
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.279
|
|
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
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|