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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2586721582cad1d4d26e6810a89aa572ba83459769d17f01b451a41cf573125
4
- data.tar.gz: 15bb7c419a0da849c3a63fbdb3e5215ac580fd2e9d0575474758861af16681a8
3
+ metadata.gz: 0650df0e6a60899419ee155a83fd433f3eb94660d412c5d54657ceb19e1b4238
4
+ data.tar.gz: 295405a4a24f56bee32d933d05dc65b542ed4800ee06b23d4a1debc25f4635e5
5
5
  SHA512:
6
- metadata.gz: e4143de2a40ba6833b1ef69a77f99c4276a11702e39d1019bd200a1461108fd874c8ff3ec4015030376088a04c7312abe0a0518763158910854790bb24ed3014
7
- data.tar.gz: 97af2c5a3e862ffba254fc58d1510ea3f60daf3aac77d7d9a3435170ba2616471b1215c55ba7781b4f5fbd6ad0dff1dcc2da3e849991a1ce3a1381b57a1678d0
6
+ metadata.gz: 31fa63fa0a4b0cc641c35801b66ffb0f712c69f96acb781f0fbbf40a335cbd87968146a192d4ba4b0df885c627d78e2f6652b716e0d6f1212a87d22f028accd9
7
+ data.tar.gz: c387cd733684e651dd18c79b34c074d72c4280c72893ce160159be7def0b252c012e08291e34789e20c270b3ec0d12ad9d9c0b1eb3fb8104fc505e0097e09513
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.46
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.46
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-14 00:00:00.000000000 Z
11
+ date: 2020-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday