files.com 1.1.723 → 1.1.724
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/file.md +2 -0
- data/lib/files.com/models/file.rb +2 -0
- data/lib/files.com/version.rb +1 -1
- 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: e23c9113ed96b29c135b19d6386ab1db06fe9915b66bd9f7290e7557fd8d40db
|
|
4
|
+
data.tar.gz: 3c6a7fb5723b5a4448963b9efb02fc3ebe0e90c80ab1cfc051f11644c3114f91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12dff8c75085e405bcbafe375424e60a8b7907608974579a25bad627432fe38b118bfb6bc1b0e9e6eb1a55331646be3dc5e8b0e33f652689dde96ce18eac3ae5
|
|
7
|
+
data.tar.gz: 69acaf3ad0fadffd419fc3ab261e819a8c0f10bfb94e71691428866436ba325be1f819aae4e92f60709db9e7c391a1a4060c28743c56ee755d0a2fdd1e60da09
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.724
|
data/docs/file.md
CHANGED
|
@@ -140,6 +140,7 @@ Files::File.download(path,
|
|
|
140
140
|
|
|
141
141
|
```
|
|
142
142
|
Files::File.create(path,
|
|
143
|
+
custom_metadata: {"key":"value"},
|
|
143
144
|
length: 1,
|
|
144
145
|
mkdir_parents: false,
|
|
145
146
|
part: 1,
|
|
@@ -158,6 +159,7 @@ Files::File.create(path,
|
|
|
158
159
|
|
|
159
160
|
* `path` (string): Required - Path to operate on.
|
|
160
161
|
* `action` (string): The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
|
|
162
|
+
* `custom_metadata` (object): Custom metadata map to save when `action=end` completes the upload. Replaces existing metadata; an empty map clears it. No separate metadata-edit permission is required. Supported on native files and configured remote mounts, excluding remote server automount paths. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
|
161
163
|
* `etags[etag]` (array(string)): etag identifier.
|
|
162
164
|
* `etags[part]` (array(int64)): Part number.
|
|
163
165
|
* `length` (int64): Length of file.
|
|
@@ -1312,6 +1312,7 @@ module Files
|
|
|
1312
1312
|
# Parameters:
|
|
1313
1313
|
# path (required) - string - Path to operate on.
|
|
1314
1314
|
# action - string - The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
|
|
1315
|
+
# custom_metadata - object - Custom metadata map to save when `action=end` completes the upload. Replaces existing metadata; an empty map clears it. No separate metadata-edit permission is required. Supported on native files and configured remote mounts, excluding remote server automount paths. Limited to 32 keys, 256 characters per key and 1024 characters per value.
|
|
1315
1316
|
# etags[etag] (required) - array(string) - etag identifier.
|
|
1316
1317
|
# etags[part] (required) - array(int64) - Part number.
|
|
1317
1318
|
# length - int64 - Length of file.
|
|
@@ -1332,6 +1333,7 @@ module Files
|
|
|
1332
1333
|
params[:path] = path
|
|
1333
1334
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1334
1335
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
|
1336
|
+
raise InvalidParameterError.new("Bad parameter: custom_metadata must be an Hash") if params[:custom_metadata] and !params[:custom_metadata].is_a?(Hash)
|
|
1335
1337
|
raise InvalidParameterError.new("Bad parameter: length must be an Integer") if params[:length] and !params[:length].is_a?(Integer)
|
|
1336
1338
|
raise InvalidParameterError.new("Bad parameter: part must be an Integer") if params[:part] and !params[:part].is_a?(Integer)
|
|
1337
1339
|
raise InvalidParameterError.new("Bad parameter: parts must be an Integer") if params[:parts] and !params[:parts].is_a?(Integer)
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
|
4
|
+
version: 1.1.724
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|