files.com 1.0.56 → 1.0.57

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: 381b16cfb532994ea5bee4702987ba4a0f29e9194c4341b6bd4cd2dbc92bd1f2
4
- data.tar.gz: 36fe3b2a15c1046f72e147cbc64245942cf803140355478c482a79e062834698
3
+ metadata.gz: ac6ea2ce8bcfb738a69660d7ed2ea33fb3a84d1706f214cdf651d2b1de9aa4a3
4
+ data.tar.gz: '0959698685c4e22335c5fc61f6c2b31429d95d20869f43665e2d2f8994f45fe0'
5
5
  SHA512:
6
- metadata.gz: c0a7356c4ec94d29b127c446c806824ea268b1903a81a4481c14e88fb2688a8b69ebe7350510168204538506c2328932aaf92213a279eed9eb34c8a77ff43b95
7
- data.tar.gz: c1a3cf1d3febb88765d714f22222477a17eea2cd4cb90b986e24ed4bfc50ca7a01ca223dbe122ced7f0eedcb05e6d262aa6fdb391c35c0b4de4264309563e04e
6
+ metadata.gz: 99cc494b5b40ff0ba5d33d2f83894197612cfeb75c7198493639902ff307bfe3404f39858b1449e4f71d0eb10d2f7c973e1fcc204116f40c4975b7988cf420fb
7
+ data.tar.gz: 56165d8e87ed3c819165f22520fc696c8900d83d0858f2da1bff97b148d050760ca6c51e74ddb1d6039887577f41818dff3b23ea976447c3a19ee4c3e277b840
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.56
1
+ 1.0.57
@@ -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.56
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-26 00:00:00.000000000 Z
11
+ date: 2020-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday