files.com 1.1.54 → 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: 5de6d4d1de25e0201363e4acf297b8c3cb2628f865281d4f7946747960bf5841
4
- data.tar.gz: 26bbe2708540cc3809fce5d01a587fbada79ecba9746e1b07b4fe9ca7f4a0196
3
+ metadata.gz: 06206d38352b8d75a30e741ee42b7d7fd7afab5a545211e6f3aa0efca68bc80a
4
+ data.tar.gz: 7ab65c0f981cc20b520ef8dccbde4dfc797ed184132e12cceaad15a8503e8599
5
5
  SHA512:
6
- metadata.gz: 06130c21efb4ef782d00147cc7de1240dd92b7c12295a7cb883ff024e1c318a68c8cc898e74908bd66dbf852144fc246d07410bc3dbf6bfe4ed3ec2064086696
7
- data.tar.gz: 189fd904fac9d329ef2528a82f8adb02b6a02b4e9f8f97efe152de7d6f10f481b5f90fbe706f15b102d2fc7ddf2050b4219fddb7f835d4ac911a4a1db3181415
6
+ metadata.gz: '08d81ef69bda43a0714983cc4750761d7b771c1d7885bcdb2d9622fdc291ecf953461f9025961d9fd267f4bcf320e4f246e220911dfe2669f03b69d5168d6ec5'
7
+ data.tar.gz: 5b59ec3732526c2fd8ce325fae5eb7cc0ac591ab15c0027fcc45197267ecea23024a8377fae977435816f3c8095d7834b7d2af448ba6fb4e140c4c0c222529a4
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.54
1
+ 1.1.56
data/docs/file.md CHANGED
@@ -178,7 +178,8 @@ Files::File.find(path,
178
178
  ```
179
179
  Files::File.copy(path,
180
180
  destination: "destination",
181
- structure: true
181
+ structure: true,
182
+ overwrite: true
182
183
  )
183
184
  ```
184
185
 
@@ -187,6 +188,7 @@ Files::File.copy(path,
187
188
  * `path` (string): Required - Path to operate on.
188
189
  * `destination` (string): Required - Copy destination path.
189
190
  * `structure` (boolean): Copy structure only?
191
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
190
192
 
191
193
 
192
194
  ---
@@ -195,7 +197,8 @@ Files::File.copy(path,
195
197
 
196
198
  ```
197
199
  Files::File.move(path,
198
- destination: "destination"
200
+ destination: "destination",
201
+ overwrite: true
199
202
  )
200
203
  ```
201
204
 
@@ -203,6 +206,7 @@ Files::File.move(path,
203
206
 
204
207
  * `path` (string): Required - Path to operate on.
205
208
  * `destination` (string): Required - Move destination path.
209
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
206
210
 
207
211
 
208
212
  ---
@@ -302,7 +306,8 @@ file = Files::File.new
302
306
 
303
307
  file.copy(
304
308
  destination: "destination",
305
- structure: true
309
+ structure: true,
310
+ overwrite: true
306
311
  )
307
312
  ```
308
313
 
@@ -311,6 +316,7 @@ file.copy(
311
316
  * `path` (string): Required - Path to operate on.
312
317
  * `destination` (string): Required - Copy destination path.
313
318
  * `structure` (boolean): Copy structure only?
319
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
314
320
 
315
321
 
316
322
  ---
@@ -321,7 +327,8 @@ file.copy(
321
327
  file = Files::File.new
322
328
 
323
329
  file.move(
324
- destination: "destination"
330
+ destination: "destination",
331
+ overwrite: true
325
332
  )
326
333
  ```
327
334
 
@@ -329,6 +336,7 @@ file.move(
329
336
 
330
337
  * `path` (string): Required - Path to operate on.
331
338
  * `destination` (string): Required - Move destination path.
339
+ * `overwrite` (boolean): Overwrite existing file(s) in the destination?
332
340
 
333
341
 
334
342
  ---
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.
@@ -860,6 +860,7 @@ module Files
860
860
  # Parameters:
861
861
  # destination (required) - string - Copy destination path.
862
862
  # structure - boolean - Copy structure only?
863
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
863
864
  def copy(params = {})
864
865
  params ||= {}
865
866
  params[:path] = @attributes[:path]
@@ -876,6 +877,7 @@ module Files
876
877
  #
877
878
  # Parameters:
878
879
  # destination (required) - string - Move destination path.
880
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
879
881
  def move(params = {})
880
882
  params ||= {}
881
883
  params[:path] = @attributes[:path]
@@ -1029,6 +1031,7 @@ module Files
1029
1031
  # Parameters:
1030
1032
  # destination (required) - string - Copy destination path.
1031
1033
  # structure - boolean - Copy structure only?
1034
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
1032
1035
  def self.copy(path, params = {}, options = {})
1033
1036
  params ||= {}
1034
1037
  params[:path] = path
@@ -1045,6 +1048,7 @@ module Files
1045
1048
  #
1046
1049
  # Parameters:
1047
1050
  # destination (required) - string - Move destination path.
1051
+ # overwrite - boolean - Overwrite existing file(s) in the destination?
1048
1052
  def self.move(path, params = {}, options = {})
1049
1053
  params ||= {}
1050
1054
  params[:path] = path
@@ -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.54"
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.54
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-27 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