files.com 1.1.139 → 1.1.140
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 +4 -3
- data/lib/files.com/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: 40a1b51d40ecbed007cd7b0bebe75b86317df92d3a025b41387b8256b03c90e1
|
4
|
+
data.tar.gz: b98f34c68e642fd4a49b2a5317d82378b4f30e7c7ff35f3909a0a71719741484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab8d5eb278299687588706b456a4c4a5cd6bf3c099d8e838fcd25514997fc3fa54ddf35b1d208e4955d6c3d44cf72ec80e6a318faab2b9dc4e9c7ac7b23ac77
|
7
|
+
data.tar.gz: d1fd648fa1ca77561a11b6076fa513f3f9d6fc704a3be6b79c7c560d0a88e866385b594935c686555d585a35a260c05ed8694332a1ec2616fb19f94037f18b0c
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.140
|
data/lib/files.com/api_client.rb
CHANGED
@@ -324,11 +324,12 @@ module Files
|
|
324
324
|
}
|
325
325
|
|
326
326
|
if Files.default_headers.is_a?(Proc)
|
327
|
-
|
328
|
-
|
329
|
-
headers.merge!(Files.default_headers)
|
327
|
+
proc_headers = Files.default_headers.call
|
328
|
+
headers.merge!(proc_headers) if proc_headers.is_a?(Hash)
|
330
329
|
end
|
331
330
|
|
331
|
+
headers.merge!(Files.default_headers) if Files.default_headers.is_a?(Hash)
|
332
|
+
|
332
333
|
headers["X-FilesAPI-Key"] = api_key if api_key
|
333
334
|
headers["X-FilesAPI-Auth"] = session_id if session_id
|
334
335
|
|
data/lib/files.com/version.rb
CHANGED