files.com 1.1.55 → 1.1.56

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: b31fa365addd85b82c892b0d6eec32a5b2aba077903ffa4e958f22c4e9f4c458
4
- data.tar.gz: cd0ca7c60173fbdf05d1d5469ec5fb813fb2286ccd50daac7d1798cb458617f0
3
+ metadata.gz: 06206d38352b8d75a30e741ee42b7d7fd7afab5a545211e6f3aa0efca68bc80a
4
+ data.tar.gz: 7ab65c0f981cc20b520ef8dccbde4dfc797ed184132e12cceaad15a8503e8599
5
5
  SHA512:
6
- metadata.gz: fa0d31e3ff4fd6981322eb0471372acb73bf82c9168eb6f1e1f9c02fecd5b04be69a2d54b46c83f19e19edab73d89534c1c243d17700695334bb4b753ecb1d5a
7
- data.tar.gz: 7a8513e8579f1fd829bff2cd33f8b5d9989c94f8e7adbb9207dc6dd0da1aff154aeea052d6c9ea1c083038f59fc3443a93b6617f2d673dc189323323f2f2ee6d
6
+ metadata.gz: '08d81ef69bda43a0714983cc4750761d7b771c1d7885bcdb2d9622fdc291ecf953461f9025961d9fd267f4bcf320e4f246e220911dfe2669f03b69d5168d6ec5'
7
+ data.tar.gz: 5b59ec3732526c2fd8ce325fae5eb7cc0ac591ab15c0027fcc45197267ecea23024a8377fae977435816f3c8095d7834b7d2af448ba6fb4e140c4c0c222529a4
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.55
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.55"
4
+ VERSION = "1.1.56"
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.55
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-28 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable