files.com 1.1.124 → 1.1.125
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 +2 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +2 -1
- 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: 9b48c0cc10d54bf7f4c02c7c36b9f66df00895e5001f184938fad37354786fec
|
|
4
|
+
data.tar.gz: 3afbde9aa0c20af91c70386f8298fd2fcbc6ac95b8601c9917eae7c291f7a3d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa6e2060c265ee588dcb0a6c6882b8fd4993869cc8606a5af17da76cba39e4fd456f7e9d94b673c66e99c8263397d23999a8da4f73f7dbeb009108b5817926bb
|
|
7
|
+
data.tar.gz: a249cd2170cd4fe039356649482b9aec8e0b07552d2817489cea4795f84fde6f3718a48e7c1759b09b4bea1312e9adb3ef1fee43fcb885fa96349b2fe6f9232b
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.125
|
data/lib/files.com/api_client.rb
CHANGED
|
@@ -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
|
|
data/lib/files.com/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2024-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|