files.com 1.1.39 → 1.1.41
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/behavior.md +3 -1
- data/docs/bundle.md +12 -4
- data/lib/files.com/models/behavior.rb +9 -0
- data/lib/files.com/models/bundle.rb +19 -4
- 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: f9186da3def49e941ababb1f4e54541124dfb2d9fcd705ccc2b659b4c6aa70ae
|
4
|
+
data.tar.gz: 2ec1348fde1a96c1226f731a6accf4b4a2b8390d94bb2bc9c9d4f4e2c51adaa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126104555df89adfa421608d08bd846af50407498269e051417818be496a9fe430b8fa561158dfd8a6dc627bde3c3b6c6e6a9c80acde285b4975cda4da210980
|
7
|
+
data.tar.gz: 398a9477d9b3be43f767a30c93aca9e22ce2170af5a1a79ad84984aa3164a10e2b7de14635714bdce74e8b3bcb96f673b959072b66454a5c37fed489606e8e96
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.41
|
data/docs/behavior.md
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
"description": "example",
|
13
13
|
"value": {
|
14
14
|
"key": "example value"
|
15
|
-
}
|
15
|
+
},
|
16
|
+
"disable_parent_folder_behavior": true
|
16
17
|
}
|
17
18
|
```
|
18
19
|
|
@@ -23,6 +24,7 @@
|
|
23
24
|
* `name` (string): Name for this behavior.
|
24
25
|
* `description` (string): Description for this behavior.
|
25
26
|
* `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
|
27
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
26
28
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
27
29
|
* `attachment_delete` (boolean): If true, will delete the file stored in attachment
|
28
30
|
|
data/docs/bundle.md
CHANGED
@@ -59,6 +59,7 @@
|
|
59
59
|
"max_uses": 1,
|
60
60
|
"note": "The internal note on the bundle.",
|
61
61
|
"path_template": "{{name}}_{{ip}}",
|
62
|
+
"path_template_time_zone": "Eastern Time (US & Canada)",
|
62
63
|
"send_email_receipt_to_uploader": true,
|
63
64
|
"snapshot_id": 1,
|
64
65
|
"user_id": 1,
|
@@ -105,7 +106,8 @@
|
|
105
106
|
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
106
107
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
107
108
|
* `note` (string): Bundle internal note
|
108
|
-
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
109
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
110
|
+
* `path_template_time_zone` (string): Timezone to use when rendering timestamps in path templates.
|
109
111
|
* `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
|
110
112
|
* `snapshot_id` (int64): ID of the snapshot containing this bundle's contents.
|
111
113
|
* `user_id` (int64): Bundle creator user ID
|
@@ -180,6 +182,7 @@ Files::Bundle.create(
|
|
180
182
|
note: "The internal note on the bundle.",
|
181
183
|
code: "abc123",
|
182
184
|
path_template: "{{name}}_{{ip}}",
|
185
|
+
path_template_time_zone: "Eastern Time (US & Canada)",
|
183
186
|
permissions: "read",
|
184
187
|
preview_only: true,
|
185
188
|
require_registration: true,
|
@@ -209,7 +212,8 @@ Files::Bundle.create(
|
|
209
212
|
* `description` (string): Public description
|
210
213
|
* `note` (string): Bundle internal note
|
211
214
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
212
|
-
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
215
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
216
|
+
* `path_template_time_zone` (string): Timezone to use when rendering timestamps in path templates.
|
213
217
|
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
214
218
|
* `preview_only` (boolean): DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
215
219
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
@@ -265,6 +269,7 @@ Files::Bundle.update(id,
|
|
265
269
|
max_uses: 1,
|
266
270
|
note: "The internal note on the bundle.",
|
267
271
|
path_template: "{{name}}_{{ip}}",
|
272
|
+
path_template_time_zone: "Eastern Time (US & Canada)",
|
268
273
|
permissions: "read",
|
269
274
|
preview_only: true,
|
270
275
|
require_registration: true,
|
@@ -294,7 +299,8 @@ Files::Bundle.update(id,
|
|
294
299
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
295
300
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
296
301
|
* `note` (string): Bundle internal note
|
297
|
-
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
302
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
303
|
+
* `path_template_time_zone` (string): Timezone to use when rendering timestamps in path templates.
|
298
304
|
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
299
305
|
* `preview_only` (boolean): DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
300
306
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
@@ -365,6 +371,7 @@ bundle.update(
|
|
365
371
|
max_uses: 1,
|
366
372
|
note: "The internal note on the bundle.",
|
367
373
|
path_template: "{{name}}_{{ip}}",
|
374
|
+
path_template_time_zone: "Eastern Time (US & Canada)",
|
368
375
|
permissions: "read",
|
369
376
|
preview_only: true,
|
370
377
|
require_registration: true,
|
@@ -394,7 +401,8 @@ bundle.update(
|
|
394
401
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
395
402
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
396
403
|
* `note` (string): Bundle internal note
|
397
|
-
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
404
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
405
|
+
* `path_template_time_zone` (string): Timezone to use when rendering timestamps in path templates.
|
398
406
|
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
399
407
|
* `preview_only` (boolean): DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
400
408
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
@@ -72,6 +72,15 @@ module Files
|
|
72
72
|
@attributes[:value] = value
|
73
73
|
end
|
74
74
|
|
75
|
+
# boolean - If true, the parent folder's behavior will be disabled for this folder.
|
76
|
+
def disable_parent_folder_behavior
|
77
|
+
@attributes[:disable_parent_folder_behavior]
|
78
|
+
end
|
79
|
+
|
80
|
+
def disable_parent_folder_behavior=(value)
|
81
|
+
@attributes[:disable_parent_folder_behavior] = value
|
82
|
+
end
|
83
|
+
|
75
84
|
# file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
76
85
|
def attachment_file
|
77
86
|
@attributes[:attachment_file]
|
@@ -239,7 +239,7 @@ module Files
|
|
239
239
|
@attributes[:note] = value
|
240
240
|
end
|
241
241
|
|
242
|
-
# string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
242
|
+
# string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
243
243
|
def path_template
|
244
244
|
@attributes[:path_template]
|
245
245
|
end
|
@@ -248,6 +248,15 @@ module Files
|
|
248
248
|
@attributes[:path_template] = value
|
249
249
|
end
|
250
250
|
|
251
|
+
# string - Timezone to use when rendering timestamps in path templates.
|
252
|
+
def path_template_time_zone
|
253
|
+
@attributes[:path_template_time_zone]
|
254
|
+
end
|
255
|
+
|
256
|
+
def path_template_time_zone=(value)
|
257
|
+
@attributes[:path_template_time_zone] = value
|
258
|
+
end
|
259
|
+
|
251
260
|
# boolean - Send delivery receipt to the uploader. Note: For writable share only
|
252
261
|
def send_email_receipt_to_uploader
|
253
262
|
@attributes[:send_email_receipt_to_uploader]
|
@@ -425,7 +434,8 @@ module Files
|
|
425
434
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
426
435
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
427
436
|
# note - string - Bundle internal note
|
428
|
-
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
437
|
+
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
438
|
+
# path_template_time_zone - string - Timezone to use when rendering timestamps in path templates.
|
429
439
|
# permissions - string - Permissions that apply to Folders in this Share Link.
|
430
440
|
# preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
431
441
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
@@ -453,6 +463,7 @@ module Files
|
|
453
463
|
raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params[:max_uses] and !params[:max_uses].is_a?(Integer)
|
454
464
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
|
455
465
|
raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
|
466
|
+
raise InvalidParameterError.new("Bad parameter: path_template_time_zone must be an String") if params[:path_template_time_zone] and !params[:path_template_time_zone].is_a?(String)
|
456
467
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
457
468
|
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
458
469
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
@@ -545,7 +556,8 @@ module Files
|
|
545
556
|
# description - string - Public description
|
546
557
|
# note - string - Bundle internal note
|
547
558
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
548
|
-
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
559
|
+
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
560
|
+
# path_template_time_zone - string - Timezone to use when rendering timestamps in path templates.
|
549
561
|
# permissions - string - Permissions that apply to Folders in this Share Link.
|
550
562
|
# preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
551
563
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
@@ -570,6 +582,7 @@ module Files
|
|
570
582
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
|
571
583
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params[:code] and !params[:code].is_a?(String)
|
572
584
|
raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
|
585
|
+
raise InvalidParameterError.new("Bad parameter: path_template_time_zone must be an String") if params[:path_template_time_zone] and !params[:path_template_time_zone].is_a?(String)
|
573
586
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
574
587
|
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
|
575
588
|
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
@@ -614,7 +627,8 @@ module Files
|
|
614
627
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
615
628
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
616
629
|
# note - string - Bundle internal note
|
617
|
-
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
630
|
+
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, `strftime` directives, and any custom form data.
|
631
|
+
# path_template_time_zone - string - Timezone to use when rendering timestamps in path templates.
|
618
632
|
# permissions - string - Permissions that apply to Folders in this Share Link.
|
619
633
|
# preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
|
620
634
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
@@ -641,6 +655,7 @@ module Files
|
|
641
655
|
raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params[:max_uses] and !params[:max_uses].is_a?(Integer)
|
642
656
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
|
643
657
|
raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
|
658
|
+
raise InvalidParameterError.new("Bad parameter: path_template_time_zone must be an String") if params[:path_template_time_zone] and !params[:path_template_time_zone].is_a?(String)
|
644
659
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
645
660
|
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
646
661
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
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.41
|
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-04-
|
11
|
+
date: 2024-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|