files.com 1.0.474 → 1.0.475
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/site.md +4 -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: 8d21ba0970c8e89837e22a3331f55582ba72cee4b2427a5b59c48d475fb0d9e0
|
4
|
+
data.tar.gz: 77654a114b8374a0d4f9b09a30f217cde9a47565f90b74b86fc52af989983062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ca9290f18deead0e0f89c5e0df6636d389d2988ab3cada8933068d881379bca124c443a4defc298b630e41a24a57238eb81864f5a643aed5a487b90832be672
|
7
|
+
data.tar.gz: beeea188350014df0c37a08b4af452ed577251574a9cee00d3689040bb7e926f6e06e7f4787da07666a6cd5b259edc4fac89b5cb3b2dcceaf5f44f5e5262ea08
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.475
|
data/docs/site.md
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
"ask_about_overwrites": true,
|
19
19
|
"bundle_activity_notifications": "never",
|
20
20
|
"bundle_expiration": 1,
|
21
|
+
"bundle_not_found_message": "example",
|
21
22
|
"bundle_password_required": true,
|
22
23
|
"bundle_registration_notifications": "never",
|
23
24
|
"bundle_require_registration": true,
|
@@ -237,6 +238,7 @@
|
|
237
238
|
* `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
|
238
239
|
* `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
|
239
240
|
* `bundle_expiration` (int64): Site-wide Bundle expiration in days
|
241
|
+
* `bundle_not_found_message` (string): Custom error message to show when bundle is not found.
|
240
242
|
* `bundle_password_required` (boolean): Do Bundles require password protection?
|
241
243
|
* `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
|
242
244
|
* `bundle_require_registration` (boolean): Do Bundles require registration?
|
@@ -454,6 +456,7 @@ Files::Site.update(
|
|
454
456
|
disable_password_reset: true,
|
455
457
|
immutable_files: true,
|
456
458
|
session_pinned_by_ip: true,
|
459
|
+
bundle_not_found_message: "example",
|
457
460
|
bundle_password_required: true,
|
458
461
|
bundle_require_registration: true,
|
459
462
|
bundle_require_share_recipient: true,
|
@@ -588,6 +591,7 @@ Files::Site.update(
|
|
588
591
|
* `disable_password_reset` (boolean): Is password reset disabled?
|
589
592
|
* `immutable_files` (boolean): Are files protected from modification?
|
590
593
|
* `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
594
|
+
* `bundle_not_found_message` (string): Custom error message to show when bundle is not found.
|
591
595
|
* `bundle_password_required` (boolean): Do Bundles require password protection?
|
592
596
|
* `bundle_require_registration` (boolean): Do Bundles require registration?
|
593
597
|
* `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
|
@@ -79,6 +79,11 @@ module Files
|
|
79
79
|
@attributes[:bundle_expiration]
|
80
80
|
end
|
81
81
|
|
82
|
+
# string - Custom error message to show when bundle is not found.
|
83
|
+
def bundle_not_found_message
|
84
|
+
@attributes[:bundle_not_found_message]
|
85
|
+
end
|
86
|
+
|
82
87
|
# boolean - Do Bundles require password protection?
|
83
88
|
def bundle_password_required
|
84
89
|
@attributes[:bundle_password_required]
|
@@ -809,6 +814,7 @@ module Files
|
|
809
814
|
# disable_password_reset - boolean - Is password reset disabled?
|
810
815
|
# immutable_files - boolean - Are files protected from modification?
|
811
816
|
# session_pinned_by_ip - boolean - Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
817
|
+
# bundle_not_found_message - string - Custom error message to show when bundle is not found.
|
812
818
|
# bundle_password_required - boolean - Do Bundles require password protection?
|
813
819
|
# bundle_require_registration - boolean - Do Bundles require registration?
|
814
820
|
# bundle_require_share_recipient - boolean - Do Bundles require recipients for sharing?
|
@@ -918,6 +924,7 @@ module Files
|
|
918
924
|
raise InvalidParameterError.new("Bad parameter: max_prior_passwords must be an Integer") if params[:max_prior_passwords] and !params[:max_prior_passwords].is_a?(Integer)
|
919
925
|
raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
|
920
926
|
raise InvalidParameterError.new("Bad parameter: password_min_length must be an Integer") if params[:password_min_length] and !params[:password_min_length].is_a?(Integer)
|
927
|
+
raise InvalidParameterError.new("Bad parameter: bundle_not_found_message must be an String") if params[:bundle_not_found_message] and !params[:bundle_not_found_message].is_a?(String)
|
921
928
|
raise InvalidParameterError.new("Bad parameter: bundle_registration_notifications must be an String") if params[:bundle_registration_notifications] and !params[:bundle_registration_notifications].is_a?(String)
|
922
929
|
raise InvalidParameterError.new("Bad parameter: bundle_activity_notifications must be an String") if params[:bundle_activity_notifications] and !params[:bundle_activity_notifications].is_a?(String)
|
923
930
|
raise InvalidParameterError.new("Bad parameter: bundle_upload_receipt_notifications must be an String") if params[:bundle_upload_receipt_notifications] and !params[:bundle_upload_receipt_notifications].is_a?(String)
|
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.0.
|
4
|
+
version: 1.0.475
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|