files.com 1.1.38 → 1.1.40
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/bundle.md +12 -4
- data/docs/remote_server.md +1 -1
- 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: '0840bc45ae9ac119cfb147bc94aaf569ca47c1d53d70849aa86ac2429d058459'
|
4
|
+
data.tar.gz: 213f49d62fbd0bd07ac4bbf3fba14a58f948dceddeb6f03c56252a5a863f54a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0440b394a06fbe0c2af018a119b9266c5730607553b439c97683ff5a561ee7c49786e02b2bad8b27ef295ad40e125111d60a75682033443c449d7a925a4274c8
|
7
|
+
data.tar.gz: 908d309d404424f59d5ce677a11f4199b00d2f743f80260be105776c9d39cbafecc0b8d3757ca13613c3a701634e273e9e6746aac172af52981fc0da5f41b100
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.40
|
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?
|
data/docs/remote_server.md
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
"rackspace_username": "rackspaceuser",
|
33
33
|
"rackspace_region": "dfw",
|
34
34
|
"rackspace_container": "my-container",
|
35
|
-
"auth_setup_link": "auth/:provider",
|
35
|
+
"auth_setup_link": "auth/:provider/redirect",
|
36
36
|
"auth_status": "in_setup",
|
37
37
|
"auth_account_name": "me@example.com",
|
38
38
|
"one_drive_account_type": "personal",
|
@@ -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.40
|
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
|