files.com 1.1.155 → 1.1.157

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: 6790bf6e9cd0ecc1dbe2807c3fd596d87ea1bcec39afb61b73daed72e93054f2
4
- data.tar.gz: 437f59fe7c753a345cc5bdc08a1ecd2c68368840a7603faa3bdaf7c297d49692
3
+ metadata.gz: bca6a258843afa34f463bb2889ad48f1d0561755a2884f1e74923e6a30f57927
4
+ data.tar.gz: 37c422317f90ba3b6f145575c3964250bd59990027b453c93bbff6dfe2ed4ab4
5
5
  SHA512:
6
- metadata.gz: 76fe8b0973e5e785940a35a7e86bfd33bb0db14c81b8e6da199505f5b9e0625d77b21955d2ab87fae10be2f568243a2eb30ce857b18d463d61963bb1d1e49758
7
- data.tar.gz: 30aa9415e8c37fca38e50aa1f0ee20c341dc399479887ddba66b4d5f532f12b47dc4575c5a75a3168eb4583756a2857eaebd28b0595a0f230dc769257a6c0e59
6
+ metadata.gz: e710fa443a72301ebf71cb65a11fcba39386e153c60c2312d5fdf2352610e5f1edb7fc944392be793038fb638198a9bd70890eed474abdb6cb75c10b985e73e5
7
+ data.tar.gz: 5eba3f6d23b0c9c8a0280084738c9b62718c44ff870e4bb838e4fc1cb6fc50f8a05ca5bfa5b7dd3a899d98b05ec9308f0181b81fe4e365724dd9d3a37e153c01
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.155
1
+ 1.1.157
data/docs/bundle.md CHANGED
@@ -74,6 +74,7 @@
74
74
  "key": "example value"
75
75
  },
76
76
  "has_inbox": true,
77
+ "dont_allow_folders_in_uploads": true,
77
78
  "paths": [
78
79
  "file.txt"
79
80
  ],
@@ -123,6 +124,7 @@
123
124
  * `watermark_attachment` (Image): Preview watermark image applied to all bundle items.
124
125
  * `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
125
126
  * `has_inbox` (boolean): Does this bundle have an associated inbox?
127
+ * `dont_allow_folders_in_uploads` (boolean): Should folder uploads be prevented?
126
128
  * `paths` (array(string)): A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
127
129
  * `bundlepaths` (array(object)): A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
128
130
  * `password` (string): Password for this bundle.
@@ -338,6 +338,15 @@ module Files
338
338
  @attributes[:has_inbox] = value
339
339
  end
340
340
 
341
+ # boolean - Should folder uploads be prevented?
342
+ def dont_allow_folders_in_uploads
343
+ @attributes[:dont_allow_folders_in_uploads]
344
+ end
345
+
346
+ def dont_allow_folders_in_uploads=(value)
347
+ @attributes[:dont_allow_folders_in_uploads] = value
348
+ end
349
+
341
350
  # array(string) - A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
342
351
  def paths
343
352
  @attributes[:paths]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.155"
4
+ VERSION = "1.1.157"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -147,7 +147,7 @@ module Files
147
147
  @initial_network_retry_delay = 0.5
148
148
 
149
149
  @open_timeout = 30
150
- @read_timeout = 80
150
+ @read_timeout = 60
151
151
 
152
152
  class << self
153
153
  attr_accessor :api_key, :base_url, :default_headers, :initial_network_retry_delay, :max_network_retry_delay, :open_timeout, :read_timeout, :proxy, :session_id
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.155
4
+ version: 1.1.157
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-10-16 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable