files.com 1.1.124 → 1.1.125

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: ff59b7f5c8c6a3dd39fb230462b8f68a5796a2e4e98b232b582eee15ab9e942f
4
- data.tar.gz: d0e3d026a2223ff2750cbb20b1c61c765c33248888b4db6d0fb0385eca25b434
3
+ metadata.gz: 9b48c0cc10d54bf7f4c02c7c36b9f66df00895e5001f184938fad37354786fec
4
+ data.tar.gz: 3afbde9aa0c20af91c70386f8298fd2fcbc6ac95b8601c9917eae7c291f7a3d6
5
5
  SHA512:
6
- metadata.gz: 2c3d0c83f31a02be70ec65f4e9abc6d8a8f3518afa46856274cd62365a83d39673ce30b93399a4fd395a131e3a339e4dad6128f57bf28f6fcb65ba897fcbab59
7
- data.tar.gz: a07a4f2c07f96f3d292c25ddd54108dbe98ed767e85543b08dd7d0a6af1e1b3e45c837c6932554bf7f9230ba2c2f16d42d2807af3382144a7574899b83fbb674
6
+ metadata.gz: aa6e2060c265ee588dcb0a6c6882b8fd4993869cc8606a5af17da76cba39e4fd456f7e9d94b673c66e99c8263397d23999a8da4f73f7dbeb009108b5817926bb
7
+ data.tar.gz: a249cd2170cd4fe039356649482b9aec8e0b07552d2817489cea4795f84fde6f3718a48e7c1759b09b4bea1312e9adb3ef1fee43fcb885fa96349b2fe6f9232b
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.124
1
+ 1.1.125
@@ -322,6 +322,8 @@ module Files
322
322
  "User-Agent" => user_agent,
323
323
  "Content-Type" => "application/x-www-form-urlencoded",
324
324
  }
325
+
326
+ headers.merge!(Files.default_headers) if Files.default_headers
325
327
  headers["X-FilesAPI-Key"] = api_key if api_key
326
328
  headers["X-FilesAPI-Auth"] = session_id if session_id
327
329
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.124"
4
+ VERSION = "1.1.125"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -138,6 +138,7 @@ module Files
138
138
  @logger = nil
139
139
  @proxy = nil
140
140
  @session_id = nil
141
+ @default_headers = nil
141
142
 
142
143
  @max_network_retries = 3
143
144
  @max_network_retry_delay = 2
@@ -147,7 +148,7 @@ module Files
147
148
  @read_timeout = 80
148
149
 
149
150
  class << self
150
- attr_accessor :api_key, :base_url, :initial_network_retry_delay, :max_network_retry_delay, :open_timeout, :read_timeout, :proxy, :session_id
151
+ attr_accessor :api_key, :base_url, :default_headers, :initial_network_retry_delay, :max_network_retry_delay, :open_timeout, :read_timeout, :proxy, :session_id
151
152
  end
152
153
 
153
154
  # map to the same values as the standard library's logger
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.1.124
4
+ version: 1.1.125
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-28 00:00:00.000000000 Z
11
+ date: 2024-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable