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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 370ff07ee9b9252570725531731411b9e7ee889fdff12ef1a8302873aebbfb5b
4
- data.tar.gz: f0f6213023d8448ab54b5192e61b91f85002e8735e4f50e45f2e66c7374d7d4d
3
+ metadata.gz: 8d21ba0970c8e89837e22a3331f55582ba72cee4b2427a5b59c48d475fb0d9e0
4
+ data.tar.gz: 77654a114b8374a0d4f9b09a30f217cde9a47565f90b74b86fc52af989983062
5
5
  SHA512:
6
- metadata.gz: fe53207653ae0a14aac694fe0d51151798a8af6da7d3bb7068cbc39e6268a31867cff54baccfcef76acbc33720f5dc1f8751b2ddd9217c7e62705a676104f4a3
7
- data.tar.gz: c537fcb5dbe8e5b7b49bf7adf7df8699574794a695cc08d898ae76f89843a1f6ef88db9cb10fd97552fc05422a62797c50de0a111440c8d253e8967212dbe852
6
+ metadata.gz: 2ca9290f18deead0e0f89c5e0df6636d389d2988ab3cada8933068d881379bca124c443a4defc298b630e41a24a57238eb81864f5a643aed5a487b90832be672
7
+ data.tar.gz: beeea188350014df0c37a08b4af452ed577251574a9cee00d3689040bb7e926f6e06e7f4787da07666a6cd5b259edc4fac89b5cb3b2dcceaf5f44f5e5262ea08
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.474
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.0.474"
4
+ VERSION = "1.0.475"
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.0.474
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-15 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable