files.com 1.1.55 → 1.1.56
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 +4 -4
- data/_VERSION +1 -1
- data/docs/site.md +6 -0
- data/lib/files.com/models/site.rb +7 -0
- 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: 06206d38352b8d75a30e741ee42b7d7fd7afab5a545211e6f3aa0efca68bc80a
|
|
4
|
+
data.tar.gz: 7ab65c0f981cc20b520ef8dccbde4dfc797ed184132e12cceaad15a8503e8599
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08d81ef69bda43a0714983cc4750761d7b771c1d7885bcdb2d9622fdc291ecf953461f9025961d9fd267f4bcf320e4f246e220911dfe2669f03b69d5168d6ec5'
|
|
7
|
+
data.tar.gz: 5b59ec3732526c2fd8ce325fae5eb7cc0ac591ab15c0027fcc45197267ecea23024a8377fae977435816f3c8095d7834b7d2af448ba6fb4e140c4c0c222529a4
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.56
|
data/docs/site.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
7
|
"name": "My Site",
|
|
8
|
+
"additional_text_file_types": [
|
|
9
|
+
"example"
|
|
10
|
+
],
|
|
8
11
|
"allowed_2fa_method_sms": true,
|
|
9
12
|
"allowed_2fa_method_totp": true,
|
|
10
13
|
"allowed_2fa_method_u2f": true,
|
|
@@ -275,6 +278,7 @@
|
|
|
275
278
|
```
|
|
276
279
|
|
|
277
280
|
* `name` (string): Site name
|
|
281
|
+
* `additional_text_file_types` (array): Additional extensions that are considered text files
|
|
278
282
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
|
279
283
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
|
280
284
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
|
@@ -488,6 +492,7 @@ Files::Site.update(
|
|
|
488
492
|
motd_text: "example",
|
|
489
493
|
motd_use_for_ftp: true,
|
|
490
494
|
motd_use_for_sftp: true,
|
|
495
|
+
additional_text_file_types: ["example"],
|
|
491
496
|
session_expiry: 1.0,
|
|
492
497
|
ssl_required: true,
|
|
493
498
|
tls_disabled: true,
|
|
@@ -634,6 +639,7 @@ Files::Site.update(
|
|
|
634
639
|
* `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
|
|
635
640
|
* `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
|
|
636
641
|
* `left_navigation_visibility` (object): Visibility settings for account navigation
|
|
642
|
+
* `additional_text_file_types` (array(string)): Additional extensions that are considered text files
|
|
637
643
|
* `session_expiry` (double): Session expiry in hours
|
|
638
644
|
* `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
|
|
639
645
|
* `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.
|
|
@@ -14,6 +14,11 @@ module Files
|
|
|
14
14
|
@attributes[:name]
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# array - Additional extensions that are considered text files
|
|
18
|
+
def additional_text_file_types
|
|
19
|
+
@attributes[:additional_text_file_types]
|
|
20
|
+
end
|
|
21
|
+
|
|
17
22
|
# boolean - Is SMS two factor authentication allowed?
|
|
18
23
|
def allowed_2fa_method_sms
|
|
19
24
|
@attributes[:allowed_2fa_method_sms]
|
|
@@ -833,6 +838,7 @@ module Files
|
|
|
833
838
|
# motd_use_for_ftp - boolean - Show message to users connecting via FTP
|
|
834
839
|
# motd_use_for_sftp - boolean - Show message to users connecting via SFTP
|
|
835
840
|
# left_navigation_visibility - object - Visibility settings for account navigation
|
|
841
|
+
# additional_text_file_types - array(string) - Additional extensions that are considered text files
|
|
836
842
|
# session_expiry - double - Session expiry in hours
|
|
837
843
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
|
838
844
|
# 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.
|
|
@@ -970,6 +976,7 @@ module Files
|
|
|
970
976
|
raise InvalidParameterError.new("Bad parameter: office_integration_type must be an String") if params[:office_integration_type] and !params[:office_integration_type].is_a?(String)
|
|
971
977
|
raise InvalidParameterError.new("Bad parameter: motd_text must be an String") if params[:motd_text] and !params[:motd_text].is_a?(String)
|
|
972
978
|
raise InvalidParameterError.new("Bad parameter: left_navigation_visibility must be an Hash") if params[:left_navigation_visibility] and !params[:left_navigation_visibility].is_a?(Hash)
|
|
979
|
+
raise InvalidParameterError.new("Bad parameter: additional_text_file_types must be an Array") if params[:additional_text_file_types] and !params[:additional_text_file_types].is_a?(Array)
|
|
973
980
|
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params[:session_expiry] and !params[:session_expiry].is_a?(Float)
|
|
974
981
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params[:user_lockout_tries] and !params[:user_lockout_tries].is_a?(Integer)
|
|
975
982
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params[:user_lockout_within] and !params[:user_lockout_within].is_a?(Integer)
|
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.56
|
|
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-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|