files.com 1.1.138 → 1.1.140

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: 58ff6c25adb67559548420a0ae4344f7370515575146454ac7f3455098ce3d53
4
- data.tar.gz: 9cbe2eefdd3224a21cbc792b1c6d4a09be567d1db021374e0127b3900c27a3e4
3
+ metadata.gz: 40a1b51d40ecbed007cd7b0bebe75b86317df92d3a025b41387b8256b03c90e1
4
+ data.tar.gz: b98f34c68e642fd4a49b2a5317d82378b4f30e7c7ff35f3909a0a71719741484
5
5
  SHA512:
6
- metadata.gz: 00cc033a392cdae15447e986b076ec92bee0e46e076bdcc92d8f0d9e7becbac228e8e5bf9639e35a5108924040c046f4e93a2adb19f903823e72a2979e74c14a
7
- data.tar.gz: b48714ebada0af5a4d26b1a38ea2058e92a97cedd5879f728027d3cbc353fb95f44434474f6682a4d2a9c95059290679971eb73fcdd0fa3cd708b9593fb3ff91
6
+ metadata.gz: 9ab8d5eb278299687588706b456a4c4a5cd6bf3c099d8e838fcd25514997fc3fa54ddf35b1d208e4955d6c3d44cf72ec80e6a318faab2b9dc4e9c7ac7b23ac77
7
+ data.tar.gz: d1fd648fa1ca77561a11b6076fa513f3f9d6fc704a3be6b79c7c560d0a88e866385b594935c686555d585a35a260c05ed8694332a1ec2616fb19f94037f18b0c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.138
1
+ 1.1.140
@@ -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 communciations with this remote server are made through the provided region.
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.
@@ -324,11 +324,12 @@ module Files
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)
327
+ proc_headers = Files.default_headers.call
328
+ headers.merge!(proc_headers) if proc_headers.is_a?(Hash)
330
329
  end
331
330
 
331
+ headers.merge!(Files.default_headers) if Files.default_headers.is_a?(Hash)
332
+
332
333
  headers["X-FilesAPI-Key"] = api_key if api_key
333
334
  headers["X-FilesAPI-Auth"] = session_id if session_id
334
335
 
@@ -90,7 +90,7 @@ module Files
90
90
  @attributes[:pin_to_site_region] = value
91
91
  end
92
92
 
93
- # string - If set, all communciations with this remote server are made through the provided region.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.138"
4
+ VERSION = "1.1.140"
5
5
  end
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.138
4
+ version: 1.1.140
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-24 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable