files.com 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/bundle.md +3 -3
- data/lib/files.com/models/bundle.rb +2 -2
- 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: ac6ea2ce8bcfb738a69660d7ed2ea33fb3a84d1706f214cdf651d2b1de9aa4a3
|
4
|
+
data.tar.gz: '0959698685c4e22335c5fc61f6c2b31429d95d20869f43665e2d2f8994f45fe0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99cc494b5b40ff0ba5d33d2f83894197612cfeb75c7198493639902ff307bfe3404f39858b1449e4f71d0eb10d2f7c973e1fcc204116f40c4975b7988cf420fb
|
7
|
+
data.tar.gz: 56165d8e87ed3c819165f22520fc696c8900d83d0858f2da1bff97b148d050760ca6c51e74ddb1d6039887577f41818dff3b23ea976447c3a19ee4c3e277b840
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.57
|
data/docs/bundle.md
CHANGED
@@ -74,24 +74,24 @@ Files::Bundle.find(id)
|
|
74
74
|
```
|
75
75
|
Files::Bundle.create(
|
76
76
|
user_id: 1,
|
77
|
+
paths: ["file.txt"],
|
77
78
|
password: "Password",
|
78
79
|
expires_at: "2000-01-01T01:00:00Z",
|
79
80
|
description: "The public description of the bundle.",
|
80
81
|
note: "The internal note on the bundle.",
|
81
|
-
code: "abc123"
|
82
|
-
paths: ["file.txt"]
|
82
|
+
code: "abc123"
|
83
83
|
)
|
84
84
|
```
|
85
85
|
|
86
86
|
### Parameters
|
87
87
|
|
88
88
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
89
|
+
* `paths` (array(string)): Required - A list of paths to include in this bundle.
|
89
90
|
* `password` (string): Password for this bundle.
|
90
91
|
* `expires_at` (string): Bundle expiration date/time
|
91
92
|
* `description` (string): Public description
|
92
93
|
* `note` (string): Bundle internal note
|
93
94
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
94
|
-
* `paths` (array(string)): Required - A list of paths to include in this bundle.
|
95
95
|
|
96
96
|
|
97
97
|
---
|
@@ -211,20 +211,20 @@ module Files
|
|
211
211
|
|
212
212
|
# Parameters:
|
213
213
|
# user_id - integer - User ID. Provide a value of `0` to operate the current session's user.
|
214
|
+
# paths (required) - array - A list of paths to include in this bundle.
|
214
215
|
# password - string - Password for this bundle.
|
215
216
|
# expires_at - string - Bundle expiration date/time
|
216
217
|
# description - string - Public description
|
217
218
|
# note - string - Bundle internal note
|
218
219
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
219
|
-
# paths (required) - array - A list of paths to include in this bundle.
|
220
220
|
def self.create(params = {}, options = {})
|
221
221
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
|
222
|
+
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
222
223
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
223
224
|
raise InvalidParameterError.new("Bad parameter: expires_at must be an String") if params.dig(:expires_at) and !params.dig(:expires_at).is_a?(String)
|
224
225
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params.dig(:description) and !params.dig(:description).is_a?(String)
|
225
226
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
|
226
227
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
227
|
-
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
228
228
|
raise MissingParameterError.new("Parameter missing: paths") unless params.dig(:paths)
|
229
229
|
|
230
230
|
response, options = Api.send_request("/bundles", :post, params, options)
|
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.57
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|