files.com 1.1.137 → 1.1.138

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54b5e14e6f983f9036559a16b1e85aa2e85ad1994f70f88873e696d5ecd94a96
4
- data.tar.gz: b5fdff5574ffc20c8041e821fb030d68fe52f62172abed3fb509b3b8f88eb976
3
+ metadata.gz: 58ff6c25adb67559548420a0ae4344f7370515575146454ac7f3455098ce3d53
4
+ data.tar.gz: 9cbe2eefdd3224a21cbc792b1c6d4a09be567d1db021374e0127b3900c27a3e4
5
5
  SHA512:
6
- metadata.gz: 78d00dccff76b6c00dec32e19f98010e81efe15b46ba9bdcee2d28218fe40f6425bf85ffd4adfc66ec3d5753196801f108b991482c171d041d6325b01ad37c92
7
- data.tar.gz: ab28bdd420680016732b5cb62892593956f5203af188776f8fd987d9035b362314a4d9f4062b4333e502ed73224e072cb7f50a978f2bc41af52da62b8da83a02
6
+ metadata.gz: 00cc033a392cdae15447e986b076ec92bee0e46e076bdcc92d8f0d9e7becbac228e8e5bf9639e35a5108924040c046f4e93a2adb19f903823e72a2979e74c14a
7
+ data.tar.gz: b48714ebada0af5a4d26b1a38ea2058e92a97cedd5879f728027d3cbc353fb95f44434474f6682a4d2a9c95059290679971eb73fcdd0fa3cd708b9593fb3ff91
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.137
1
+ 1.1.138
@@ -323,7 +323,12 @@ module Files
323
323
  "Content-Type" => "application/x-www-form-urlencoded",
324
324
  }
325
325
 
326
- headers.merge!(Files.default_headers) if Files.default_headers
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.137"
4
+ VERSION = "1.1.138"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.137
4
+ version: 1.1.138
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com