files.com 1.0.124 → 1.0.125
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/automation.md +3 -3
- data/docs/bundle.md +4 -0
- data/lib/files.com/models/bundle.rb +4 -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: cfa34129d6329335d7a9b4e2ba3cd49af79efd898a53c18b6b67e3db6c47d10c
|
4
|
+
data.tar.gz: eebdf00c2b5b09259af307e379490a7aaa86adea23f9fbc7650dfd649e34eb1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1054505c8630377faab11beb693421a42c382bc7513934da4e53ae4c670085aafa35c98eb0b840d90305beccf3bd9c800015953bc77ab6abc5eb89211ff5e4f
|
7
|
+
data.tar.gz: 1c1d35d0bf0d4e85b66a7d3b56a09c2994d079b822fd479ff8fa0e08649255269b2093340a4f6f35a7959f1c6060cea9d9d429e4eeac4b94742c681179f4267d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.125
|
data/docs/automation.md
CHANGED
@@ -102,7 +102,7 @@ Files::Automation.create(
|
|
102
102
|
source: "source",
|
103
103
|
destination: "destination",
|
104
104
|
interval: "year",
|
105
|
-
schedule: {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
|
105
|
+
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
106
106
|
trigger: "realtime"
|
107
107
|
)
|
108
108
|
```
|
@@ -132,7 +132,7 @@ Files::Automation.update(id,
|
|
132
132
|
source: "source",
|
133
133
|
destination: "destination",
|
134
134
|
interval: "year",
|
135
|
-
schedule: {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
|
135
|
+
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
136
136
|
trigger: "realtime"
|
137
137
|
)
|
138
138
|
```
|
@@ -178,7 +178,7 @@ automation.update(
|
|
178
178
|
source: "source",
|
179
179
|
destination: "destination",
|
180
180
|
interval: "year",
|
181
|
-
schedule: {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
|
181
|
+
schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
|
182
182
|
trigger: "realtime"
|
183
183
|
)
|
184
184
|
```
|
data/docs/bundle.md
CHANGED
@@ -149,6 +149,7 @@ Files::Bundle.share(id,
|
|
149
149
|
|
150
150
|
```
|
151
151
|
Files::Bundle.update(id,
|
152
|
+
paths: ["file.txt"],
|
152
153
|
password: "Password",
|
153
154
|
clickwrap_id: 1,
|
154
155
|
code: "abc123",
|
@@ -165,6 +166,7 @@ Files::Bundle.update(id,
|
|
165
166
|
### Parameters
|
166
167
|
|
167
168
|
* `id` (int64): Required - Bundle ID.
|
169
|
+
* `paths` (array(string)): A list of paths to include in this bundle.
|
168
170
|
* `password` (string): Password for this bundle.
|
169
171
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
170
172
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
@@ -220,6 +222,7 @@ bundle.share(
|
|
220
222
|
bundle = Files::Bundle.list_for(path).first
|
221
223
|
|
222
224
|
bundle.update(
|
225
|
+
paths: ["file.txt"],
|
223
226
|
password: "Password",
|
224
227
|
clickwrap_id: 1,
|
225
228
|
code: "abc123",
|
@@ -236,6 +239,7 @@ bundle.update(
|
|
236
239
|
### Parameters
|
237
240
|
|
238
241
|
* `id` (int64): Required - Bundle ID.
|
242
|
+
* `paths` (array(string)): A list of paths to include in this bundle.
|
239
243
|
* `password` (string): Password for this bundle.
|
240
244
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
241
245
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
@@ -197,6 +197,7 @@ module Files
|
|
197
197
|
end
|
198
198
|
|
199
199
|
# Parameters:
|
200
|
+
# paths - array(string) - A list of paths to include in this bundle.
|
200
201
|
# password - string - Password for this bundle.
|
201
202
|
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
202
203
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
@@ -212,6 +213,7 @@ module Files
|
|
212
213
|
params[:id] = @attributes[:id]
|
213
214
|
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
214
215
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
216
|
+
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
215
217
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
216
218
|
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
|
217
219
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
@@ -347,6 +349,7 @@ module Files
|
|
347
349
|
end
|
348
350
|
|
349
351
|
# Parameters:
|
352
|
+
# paths - array(string) - A list of paths to include in this bundle.
|
350
353
|
# password - string - Password for this bundle.
|
351
354
|
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
352
355
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
@@ -361,6 +364,7 @@ module Files
|
|
361
364
|
params ||= {}
|
362
365
|
params[:id] = id
|
363
366
|
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
367
|
+
raise InvalidParameterError.new("Bad parameter: paths must be an Array") if params.dig(:paths) and !params.dig(:paths).is_a?(Array)
|
364
368
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
|
365
369
|
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params.dig(:clickwrap_id) and !params.dig(:clickwrap_id).is_a?(Integer)
|
366
370
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params.dig(:code) and !params.dig(:code).is_a?(String)
|
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.125
|
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-11-
|
11
|
+
date: 2020-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|