files.com 1.1.163 → 1.1.165

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: 18cb7e03317a61d70dc4fd71e92274c91f9978b4d4f830e699c1148d13ba5a97
4
- data.tar.gz: 1902bfe3788f3514db8af7ea0e3b5b04b8ce0f92bcc78df25998f60473862827
3
+ metadata.gz: cfe2a65cafc8a527f4459e5039500977f75f0bc3c5704fca5c540d1895faef3f
4
+ data.tar.gz: 073fa534e4a5952679057c7373aadd31e32fdca69971f2abbbae93378411d1ce
5
5
  SHA512:
6
- metadata.gz: 40009e48e718ca443bbe42af25702a3c3ed840a2531abee4322b63d20a033f33513fdb207b82a65007af69cdf951126bafa72ee3fc1e2f12b39b11e66b272918
7
- data.tar.gz: '09be39a6cd5085e867439a36746540e5ac26335db3166dbd4df0ff604f2cd19cb85fb81e6f4515b3dd5154753630cd76a3f5ae838e4577fb5def7ea34765ed3a'
6
+ metadata.gz: ec565831fcaf5164ca26bafd49d171a5c63121cc5093711d1d162bb53f22670be3c02ebeef9209519a4ebef6ac7e76a03cd1ed05c80af4932bd21f9d9ba74a93
7
+ data.tar.gz: 54688f985bd2abef600ebe160cd5840b1155df5fb73a0e95f1e1acff7af086a9c66b5ea28d2faf63d6ab07b5c1ad1d3941497b8e804d2ac06aef8657b178e246
data/README.md CHANGED
@@ -23,13 +23,13 @@ To install the gem, simply use Rubygems:
23
23
 
24
24
  ```bash
25
25
  gem install files.com
26
- ````
26
+ ```
27
27
 
28
28
  You can also use Bundler, by adding `files.com` to your app's `Gemfile`:
29
29
 
30
30
  ```ruby
31
31
  gem 'files.com', '~> 1.0'
32
- ````
32
+ ```
33
33
 
34
34
  ### Requirements
35
35
 
@@ -106,7 +106,7 @@ user = Files::User.new(params, session_id: session.id)
106
106
  ## You may also specify the session ID on a per-request basis in the final parameter to static methods.
107
107
  Files::Group.list({}, session_id: session.id)
108
108
 
109
- ````
109
+ ```
110
110
 
111
111
  #### Logging Out
112
112
 
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.163
1
+ 1.1.165
data/docs/file.md CHANGED
@@ -33,6 +33,8 @@ may places where a Ruby File object can be used.
33
33
  "provided_mtime": "2000-01-01T01:00:00Z",
34
34
  "crc32": "70976923",
35
35
  "md5": "17c54824e9931a4688ca032d03f6663c",
36
+ "sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
37
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
36
38
  "mime_type": "application/octet-stream",
37
39
  "region": "us-east-1",
38
40
  "permissions": "rwd",
@@ -75,6 +77,8 @@ may places where a Ruby File object can be used.
75
77
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
76
78
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
77
79
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
80
+ * `sha1` (string): File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
81
+ * `sha256` (string): File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
78
82
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
79
83
  * `region` (string): Region location
80
84
  * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
data/docs/folder.md CHANGED
@@ -35,6 +35,8 @@ Files::Dir is an alias of Files::Folder
35
35
  "provided_mtime": "2000-01-01T01:00:00Z",
36
36
  "crc32": "70976923",
37
37
  "md5": "17c54824e9931a4688ca032d03f6663c",
38
+ "sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
39
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
38
40
  "mime_type": "application/octet-stream",
39
41
  "region": "us-east-1",
40
42
  "permissions": "rwd",
@@ -77,6 +79,8 @@ Files::Dir is an alias of Files::Folder
77
79
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
78
80
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
79
81
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
82
+ * `sha1` (string): File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
83
+ * `sha256` (string): File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
80
84
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
81
85
  * `region` (string): Region location
82
86
  * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
data/docs/site.md CHANGED
@@ -44,6 +44,10 @@
44
44
  "bundle_watermark_value": {
45
45
  "key": "example value"
46
46
  },
47
+ "calculate_file_checksums_crc32": true,
48
+ "calculate_file_checksums_md5": true,
49
+ "calculate_file_checksums_sha1": true,
50
+ "calculate_file_checksums_sha256": true,
47
51
  "uploads_via_email_authentication": true,
48
52
  "color2_left": "#0066a7",
49
53
  "color2_link": "#d34f5d",
@@ -62,6 +66,7 @@
62
66
  "desktop_app": true,
63
67
  "desktop_app_session_ip_pinning": true,
64
68
  "desktop_app_session_lifetime": 1,
69
+ "legacy_checksums_mode": true,
65
70
  "mobile_app": true,
66
71
  "mobile_app_session_ip_pinning": true,
67
72
  "mobile_app_session_lifetime": 1,
@@ -170,6 +175,11 @@
170
175
  "allowed_2fa_method_totp": true,
171
176
  "allowed_2fa_method_webauthn": true,
172
177
  "allowed_2fa_method_yubi": true,
178
+ "calculate_file_checksums_crc32": true,
179
+ "calculate_file_checksums_md5": true,
180
+ "calculate_file_checksums_sha1": true,
181
+ "calculate_file_checksums_sha256": true,
182
+ "legacy_checksums_mode": true,
173
183
  "use_provided_modified_at": true,
174
184
  "windows_mode_ftp": false,
175
185
  "user_belongs_to_parent_site": false
@@ -321,6 +331,10 @@
321
331
  * `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
322
332
  * `bundle_watermark_attachment` (Image): Preview watermark image applied to all bundle items.
323
333
  * `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
334
+ * `calculate_file_checksums_crc32` (boolean): Calculate CRC32 checksums for files?
335
+ * `calculate_file_checksums_md5` (boolean): Calculate MD5 checksums for files?
336
+ * `calculate_file_checksums_sha1` (boolean): Calculate SHA1 checksums for files?
337
+ * `calculate_file_checksums_sha256` (boolean): Calculate SHA256 checksums for files?
324
338
  * `uploads_via_email_authentication` (boolean): Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
325
339
  * `color2_left` (string): Page link and button color
326
340
  * `color2_link` (string): Top bar link color
@@ -339,6 +353,7 @@
339
353
  * `desktop_app` (boolean): Is the desktop app enabled?
340
354
  * `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
341
355
  * `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
356
+ * `legacy_checksums_mode` (boolean): Use legacy checksums mode?
342
357
  * `mobile_app` (boolean): Is the mobile app enabled?
343
358
  * `mobile_app_session_ip_pinning` (boolean): Is mobile app session IP pinning enabled?
344
359
  * `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
@@ -516,6 +531,11 @@ Files::Site.update(
516
531
  additional_text_file_types: ["example"],
517
532
  bundle_require_note: true,
518
533
  bundle_send_shared_receipts: true,
534
+ calculate_file_checksums_crc32: true,
535
+ calculate_file_checksums_md5: true,
536
+ calculate_file_checksums_sha1: true,
537
+ calculate_file_checksums_sha256: true,
538
+ legacy_checksums_mode: true,
519
539
  session_expiry: 1.0,
520
540
  ssl_required: true,
521
541
  tls_disabled: true,
@@ -669,6 +689,11 @@ Files::Site.update(
669
689
  * `additional_text_file_types` (array(string)): Additional extensions that are considered text files
670
690
  * `bundle_require_note` (boolean): Do Bundles require internal notes?
671
691
  * `bundle_send_shared_receipts` (boolean): Do Bundle creators receive receipts of invitations?
692
+ * `calculate_file_checksums_crc32` (boolean): Calculate CRC32 checksums for files?
693
+ * `calculate_file_checksums_md5` (boolean): Calculate MD5 checksums for files?
694
+ * `calculate_file_checksums_sha1` (boolean): Calculate SHA1 checksums for files?
695
+ * `calculate_file_checksums_sha256` (boolean): Calculate SHA256 checksums for files?
696
+ * `legacy_checksums_mode` (boolean): Use legacy checksums mode?
672
697
  * `session_expiry` (double): Session expiry in hours
673
698
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
674
699
  * `tls_disabled` (boolean): DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
@@ -778,6 +778,24 @@ module Files
778
778
  @attributes[:md5] = value
779
779
  end
780
780
 
781
+ # string - File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
782
+ def sha1
783
+ @attributes[:sha1]
784
+ end
785
+
786
+ def sha1=(value)
787
+ @attributes[:sha1] = value
788
+ end
789
+
790
+ # string - File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
791
+ def sha256
792
+ @attributes[:sha256]
793
+ end
794
+
795
+ def sha256=(value)
796
+ @attributes[:sha256] = value
797
+ end
798
+
781
799
  # string - MIME Type. This is determined by the filename extension and is not stored separately internally.
782
800
  def mime_type
783
801
  @attributes[:mime_type]
@@ -362,6 +362,24 @@ module Files
362
362
  @attributes[:md5] = value
363
363
  end
364
364
 
365
+ # string - File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
366
+ def sha1
367
+ @attributes[:sha1]
368
+ end
369
+
370
+ def sha1=(value)
371
+ @attributes[:sha1] = value
372
+ end
373
+
374
+ # string - File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
375
+ def sha256
376
+ @attributes[:sha256]
377
+ end
378
+
379
+ def sha256=(value)
380
+ @attributes[:sha256] = value
381
+ end
382
+
365
383
  # string - MIME Type. This is determined by the filename extension and is not stored separately internally.
366
384
  def mime_type
367
385
  @attributes[:mime_type]
@@ -164,6 +164,26 @@ module Files
164
164
  @attributes[:bundle_watermark_value]
165
165
  end
166
166
 
167
+ # boolean - Calculate CRC32 checksums for files?
168
+ def calculate_file_checksums_crc32
169
+ @attributes[:calculate_file_checksums_crc32]
170
+ end
171
+
172
+ # boolean - Calculate MD5 checksums for files?
173
+ def calculate_file_checksums_md5
174
+ @attributes[:calculate_file_checksums_md5]
175
+ end
176
+
177
+ # boolean - Calculate SHA1 checksums for files?
178
+ def calculate_file_checksums_sha1
179
+ @attributes[:calculate_file_checksums_sha1]
180
+ end
181
+
182
+ # boolean - Calculate SHA256 checksums for files?
183
+ def calculate_file_checksums_sha256
184
+ @attributes[:calculate_file_checksums_sha256]
185
+ end
186
+
167
187
  # boolean - Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
168
188
  def uploads_via_email_authentication
169
189
  @attributes[:uploads_via_email_authentication]
@@ -254,6 +274,11 @@ module Files
254
274
  @attributes[:desktop_app_session_lifetime]
255
275
  end
256
276
 
277
+ # boolean - Use legacy checksums mode?
278
+ def legacy_checksums_mode
279
+ @attributes[:legacy_checksums_mode]
280
+ end
281
+
257
282
  # boolean - Is the mobile app enabled?
258
283
  def mobile_app
259
284
  @attributes[:mobile_app]
@@ -877,6 +902,11 @@ module Files
877
902
  # additional_text_file_types - array(string) - Additional extensions that are considered text files
878
903
  # bundle_require_note - boolean - Do Bundles require internal notes?
879
904
  # bundle_send_shared_receipts - boolean - Do Bundle creators receive receipts of invitations?
905
+ # calculate_file_checksums_crc32 - boolean - Calculate CRC32 checksums for files?
906
+ # calculate_file_checksums_md5 - boolean - Calculate MD5 checksums for files?
907
+ # calculate_file_checksums_sha1 - boolean - Calculate SHA1 checksums for files?
908
+ # calculate_file_checksums_sha256 - boolean - Calculate SHA256 checksums for files?
909
+ # legacy_checksums_mode - boolean - Use legacy checksums mode?
880
910
  # session_expiry - double - Session expiry in hours
881
911
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
882
912
  # tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.163"
4
+ VERSION = "1.1.165"
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.163
4
+ version: 1.1.165
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-28 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable