files.com 1.1.39 → 1.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 629d63f425877659842b9b245181dc9612aa8ab225385d70daa1e95639c92c8c
4
- data.tar.gz: e1b6b9ff46d1aa9f5fe7d3f22d8f1452ce26960adddff71510e1d2d046cf2898
3
+ metadata.gz: '0840bc45ae9ac119cfb147bc94aaf569ca47c1d53d70849aa86ac2429d058459'
4
+ data.tar.gz: 213f49d62fbd0bd07ac4bbf3fba14a58f948dceddeb6f03c56252a5a863f54a5
5
5
  SHA512:
6
- metadata.gz: 3f0cfe9f75766d13a5772991c3c56614d6669d343793f2640c318dd2c563d2584a67be22062712f23a3440de3a43dbf508ca23be469ba79a2cbb9c46cd8ec7a8
7
- data.tar.gz: 69d333e136de0d5c98f90b1483c6d8d29e2bfcc1735a74f4cda66e2bbf1014f81bb25d28035ae0aa8380e12271c67a8f853fe4a64e23c1b46cbd712c573b4237
6
+ metadata.gz: 0440b394a06fbe0c2af018a119b9266c5730607553b439c97683ff5a561ee7c49786e02b2bad8b27ef295ad40e125111d60a75682033443c449d7a925a4274c8
7
+ data.tar.gz: 908d309d404424f59d5ce677a11f4199b00d2f743f80260be105776c9d39cbafecc0b8d3757ca13613c3a701634e273e9e6746aac172af52981fc0da5f41b100
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.39
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?
@@ -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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.39"
4
+ VERSION = "1.1.40"
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.39
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-14 00:00:00.000000000 Z
11
+ date: 2024-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable