files.com 1.0.46 → 1.0.47
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/bundle.md +3 -1
- data/docs/site.md +4 -0
- data/lib/files.com/models/bundle.rb +2 -0
- data/lib/files.com/models/site.rb +6 -0
- 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: 0650df0e6a60899419ee155a83fd433f3eb94660d412c5d54657ceb19e1b4238
|
4
|
+
data.tar.gz: 295405a4a24f56bee32d933d05dc65b542ed4800ee06b23d4a1debc25f4635e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31fa63fa0a4b0cc641c35801b66ffb0f712c69f96acb781f0fbbf40a335cbd87968146a192d4ba4b0df885c627d78e2f6652b716e0d6f1212a87d22f028accd9
|
7
|
+
data.tar.gz: c387cd733684e651dd18c79b34c074d72c4280c72893ce160159be7def0b252c012e08291e34789e20c270b3ec0d12ad9d9c0b1eb3fb8104fc505e0097e09513
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.47
|
data/docs/bundle.md
CHANGED
@@ -78,7 +78,8 @@ Files::Bundle.create(
|
|
78
78
|
password: "Password",
|
79
79
|
expires_at: "2000-01-01T01:00:00Z",
|
80
80
|
description: "Public description",
|
81
|
-
note: "Internal Note"
|
81
|
+
note: "Internal Note",
|
82
|
+
code: "abc123"
|
82
83
|
)
|
83
84
|
```
|
84
85
|
|
@@ -90,6 +91,7 @@ Files::Bundle.create(
|
|
90
91
|
* `expires_at` (string): Bundle expiration date/time.
|
91
92
|
* `description` (string): Bundle public description
|
92
93
|
* `note` (string): Bundle internal note
|
94
|
+
* `code` (string): Bundle name
|
93
95
|
|
94
96
|
|
95
97
|
---
|
data/docs/site.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
"allowed_2fa_method_u2f": true,
|
11
11
|
"allowed_2fa_method_yubi": true,
|
12
12
|
"admin_user_id": 1,
|
13
|
+
"allow_bundle_names": true,
|
13
14
|
"allowed_file_types": "",
|
14
15
|
"allowed_ips": "",
|
15
16
|
"ask_about_overwrites": true,
|
@@ -118,6 +119,7 @@
|
|
118
119
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
119
120
|
* `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
|
120
121
|
* `admin_user_id` (int64): User ID for the main site administrator
|
122
|
+
* `allow_bundle_names` (boolean): Are manual Bundle names allowed?
|
121
123
|
* `allowed_file_types` (string): List of allowed file types
|
122
124
|
* `allowed_ips` (string): List of allowed IP addresses
|
123
125
|
* `ask_about_overwrites` (boolean): If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
|
@@ -247,6 +249,7 @@ Files::Site.update(
|
|
247
249
|
subdomain: "mysite",
|
248
250
|
domain: "my-custom-domain.com",
|
249
251
|
email: "john.doe@files.com",
|
252
|
+
allow_bundle_names: true,
|
250
253
|
bundle_expiration: 1,
|
251
254
|
overage_notify: true,
|
252
255
|
welcome_email_enabled: true,
|
@@ -332,6 +335,7 @@ Files::Site.update(
|
|
332
335
|
* `subdomain` (string): Site subdomain
|
333
336
|
* `domain` (string): Custom domain
|
334
337
|
* `email` (string): Main email for this site
|
338
|
+
* `allow_bundle_names` (boolean): Are manual Bundle names allowed?
|
335
339
|
* `bundle_expiration` (int64): Site-wide Bundle expiration in days
|
336
340
|
* `overage_notify` (boolean): Notify site email of overages?
|
337
341
|
* `welcome_email_enabled` (boolean): Will the welcome email be sent to new users?
|
@@ -195,6 +195,7 @@ module Files
|
|
195
195
|
# expires_at - string - Bundle expiration date/time.
|
196
196
|
# description - string - Bundle public description
|
197
197
|
# note - string - Bundle internal note
|
198
|
+
# code - string - Bundle name
|
198
199
|
def self.create(params = {}, options = {})
|
199
200
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
200
201
|
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
@@ -202,6 +203,7 @@ module Files
|
|
202
203
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params.dig(:expires_at) and !params.dig(:expires_at).is_a?(String)
|
203
204
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
204
205
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
|
206
|
+
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
205
207
|
raise MissingParameterError.new("Parameter missing: paths") unless params.dig(:paths)
|
206
208
|
|
207
209
|
response, options = Api.send_request("/bundles", :post, params, options)
|
@@ -39,6 +39,11 @@ module Files
|
|
39
39
|
@attributes[:admin_user_id]
|
40
40
|
end
|
41
41
|
|
42
|
+
# boolean - Are manual Bundle names allowed?
|
43
|
+
def allow_bundle_names
|
44
|
+
@attributes[:allow_bundle_names]
|
45
|
+
end
|
46
|
+
|
42
47
|
# string - List of allowed file types
|
43
48
|
def allowed_file_types
|
44
49
|
@attributes[:allowed_file_types]
|
@@ -549,6 +554,7 @@ module Files
|
|
549
554
|
# subdomain - string - Site subdomain
|
550
555
|
# domain - string - Custom domain
|
551
556
|
# email - string - Main email for this site
|
557
|
+
# allow_bundle_names - boolean - Are manual Bundle names allowed?
|
552
558
|
# bundle_expiration - integer - Site-wide Bundle expiration in days
|
553
559
|
# overage_notify - boolean - Notify site email of overages?
|
554
560
|
# welcome_email_enabled - boolean - Will the welcome email be sent to new users?
|
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.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|