files.com 1.0.316 → 1.0.318

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: af58877af11ec39e7ad56c719b5a3b68535ab15547ba54bf0bddd463d998560d
4
- data.tar.gz: fd7c1a852976b578e05964bd5d8aaf4959dd7d059627d230d2519f8a0b820c7b
3
+ metadata.gz: 385ed6a3ae32dcc114475e66bcf7ec98888b6311bef2790843e029a9315aac6f
4
+ data.tar.gz: 499d2d9661ff3067c02b87d7c522d8d0fc42ad35487123980b81cfcd1db8380b
5
5
  SHA512:
6
- metadata.gz: ee48e9d8f37dd4bb01c635af9c2924fb4cb0be2267264af9a5cb6ef52c5617a73cefa44831e359dd60fcb9fe9c7bd1cb030604bfb2eb10d074e7000e0518a5b1
7
- data.tar.gz: 421be6ae44e229d864fc6e413ac123a308d4bb37566fe2d6528d0e81e75c596a439e94c9dad3476d317d237a63ab1ad553724f147dfadd8504f430dfed0cd5a3
6
+ metadata.gz: 87c3191465e6206bc5ef67e3d39af6a593f51e3b00bbbf19f14c812f4a59bff03a784b89bf57361cf9d8603c82c9761818d1560b8b8fbf89dec4ca655bc5859c
7
+ data.tar.gz: 15d128e97240126b3e330b0edd9d0069db811d6cde2400a12d525da910afcee6f9cce9115099ffab2b9544515c5ca6e7681d64cd561ba81dd835ef3ffdec1b13
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.316
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.
@@ -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.316
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: 2022-12-23 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable