files.com 1.1.137 → 1.1.138
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 +6 -1
- 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: 58ff6c25adb67559548420a0ae4344f7370515575146454ac7f3455098ce3d53
|
|
4
|
+
data.tar.gz: 9cbe2eefdd3224a21cbc792b1c6d4a09be567d1db021374e0127b3900c27a3e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00cc033a392cdae15447e986b076ec92bee0e46e076bdcc92d8f0d9e7becbac228e8e5bf9639e35a5108924040c046f4e93a2adb19f903823e72a2979e74c14a
|
|
7
|
+
data.tar.gz: b48714ebada0af5a4d26b1a38ea2058e92a97cedd5879f728027d3cbc353fb95f44434474f6682a4d2a9c95059290679971eb73fcdd0fa3cd708b9593fb3ff91
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.138
|
data/lib/files.com/api_client.rb
CHANGED
|
@@ -323,7 +323,12 @@ module Files
|
|
|
323
323
|
"Content-Type" => "application/x-www-form-urlencoded",
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
|
|
326
|
+
if Files.default_headers.is_a?(Proc)
|
|
327
|
+
headers.merge!(Files.default_headers.call)
|
|
328
|
+
else
|
|
329
|
+
headers.merge!(Files.default_headers)
|
|
330
|
+
end
|
|
331
|
+
|
|
327
332
|
headers["X-FilesAPI-Key"] = api_key if api_key
|
|
328
333
|
headers["X-FilesAPI-Auth"] = session_id if session_id
|
|
329
334
|
|
data/lib/files.com/version.rb
CHANGED