files.com 1.0.316 → 1.0.318
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/folder.md +3 -1
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/folder.rb +2 -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: 385ed6a3ae32dcc114475e66bcf7ec98888b6311bef2790843e029a9315aac6f
|
4
|
+
data.tar.gz: 499d2d9661ff3067c02b87d7c522d8d0fc42ad35487123980b81cfcd1db8380b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c3191465e6206bc5ef67e3d39af6a593f51e3b00bbbf19f14c812f4a59bff03a784b89bf57361cf9d8603c82c9761818d1560b8b8fbf89dec4ca655bc5859c
|
7
|
+
data.tar.gz: 15d128e97240126b3e330b0edd9d0069db811d6cde2400a12d525da910afcee6f9cce9115099ffab2b9544515c5ca6e7681d64cd561ba81dd835ef3ffdec1b13
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.318
|
data/docs/folder.md
CHANGED
@@ -83,7 +83,8 @@ Files::Folder.list_for(path,
|
|
83
83
|
|
84
84
|
```
|
85
85
|
Files::Folder.create(path,
|
86
|
-
mkdir_parents: true
|
86
|
+
mkdir_parents: true,
|
87
|
+
provided_mtime: "2000-01-01T01:00:00Z"
|
87
88
|
)
|
88
89
|
```
|
89
90
|
|
@@ -91,3 +92,4 @@ Files::Folder.create(path,
|
|
91
92
|
|
92
93
|
* `path` (string): Required - Path to operate on.
|
93
94
|
* `mkdir_parents` (boolean): Create parent directories if they do not exist?
|
95
|
+
* `provided_mtime` (string): User provided modification time.
|
data/lib/files.com/errors.rb
CHANGED
@@ -150,6 +150,7 @@ module Files
|
|
150
150
|
|
151
151
|
class ProcessingFailureError < APIError; end
|
152
152
|
class BundleOnlyAllowsPreviewsError < ProcessingFailureError; end
|
153
|
+
class BundleOperationRequiresSubfolderError < ProcessingFailureError; end
|
153
154
|
class CouldNotCreateParentError < ProcessingFailureError; end
|
154
155
|
class DestinationExistsError < ProcessingFailureError; end
|
155
156
|
class DestinationFolderLimitedError < ProcessingFailureError; end
|
@@ -351,10 +351,12 @@ module Files
|
|
351
351
|
# Parameters:
|
352
352
|
# path (required) - string - Path to operate on.
|
353
353
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
354
|
+
# provided_mtime - string - User provided modification time.
|
354
355
|
def self.create(path, params = {}, options = {})
|
355
356
|
params ||= {}
|
356
357
|
params[:path] = path
|
357
358
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
359
|
+
raise InvalidParameterError.new("Bad parameter: provided_mtime must be an String") if params[:provided_mtime] and !params[:provided_mtime].is_a?(String)
|
358
360
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
359
361
|
|
360
362
|
response, options = Api.send_request("/folders/#{params[:path]}", :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.318
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|