files.com 1.1.137 → 1.1.139
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/docs/remote_server.md +1 -1
- data/lib/files.com/api_client.rb +6 -1
- data/lib/files.com/models/remote_server.rb +1 -1
- data/lib/files.com/version.rb +1 -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: 847acc56227dbeb6e79e9cc1dd291d617d8ad8b00db928a43e54660675d927d1
|
4
|
+
data.tar.gz: 69a538f02d4caeaca9bf907ce5b01e3ebc21c5015afdbb49e569b57746290c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca011ff7e35f3a3a7600e01bb19a2edb047b19da5856752598768f8d2662c265d3ab3c0d9a8af20c379e2f47122acbca66c2a73ad104dc1eaf12762223db91a
|
7
|
+
data.tar.gz: 9c1b3774760d579db2741cfc21ce4e1a2d102cdabc8e458ce6872a1b3a5ef4ed46a26972f80b0b384fcb61d5a00c57d704865e4b0e1841e6ef86daae1d4c5c00
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.139
|
data/docs/remote_server.md
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
* `port` (int64): Port for remote server. Not needed for S3.
|
73
73
|
* `max_connections` (int64): Max number of parallel connections. Ignored for S3 connections (we will parallelize these as much as possible).
|
74
74
|
* `pin_to_site_region` (boolean): If true, we will ensure that all communications with this remote server are made through the primary region of the site. This setting can also be overridden by a sitewide setting which will force it to true.
|
75
|
-
* `pinned_region` (string): If set, all
|
75
|
+
* `pinned_region` (string): If set, all communications with this remote server are made through the provided region.
|
76
76
|
* `s3_bucket` (string): S3 bucket name
|
77
77
|
* `s3_region` (string): S3 region
|
78
78
|
* `aws_access_key` (string): AWS Access Key.
|
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
|
|
@@ -90,7 +90,7 @@ module Files
|
|
90
90
|
@attributes[:pin_to_site_region] = value
|
91
91
|
end
|
92
92
|
|
93
|
-
# string - If set, all
|
93
|
+
# string - If set, all communications with this remote server are made through the provided region.
|
94
94
|
def pinned_region
|
95
95
|
@attributes[:pinned_region]
|
96
96
|
end
|
data/lib/files.com/version.rb
CHANGED
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.139
|
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-09-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|