files.com 1.1.667 → 1.1.668
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 +4 -2
- data/lib/files.com/models/file.rb +6 -2
- 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: 858f605c51656c022b55e71713f259463ec01d9cf7ff1308423d13cc8190b4b7
|
|
4
|
+
data.tar.gz: d3228c5bbbe4db51cb731ee98f1375f11c36f185e269e24f077d0d06168703d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d205f8355030f7c159ee27bc900e88e97ed37c2613d7c9d251c61effcec4ee9c7b93ffbccfe0c67f92f0bc4a29dd09bd3107e5cf43e6d890b1ba6ae1c81d14bd
|
|
7
|
+
data.tar.gz: 6c0f90af9eda40448b55cb17e1b138ad25dc9e1765111d9525b5c4372cc12c2ccb9a78043ac17f1a03bb121bf06d511bedf049f9b0b6f7cfd53e41878db3e69a
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.668
|
data/docs/file.md
CHANGED
|
@@ -287,8 +287,9 @@ Files::File.transform(path,
|
|
|
287
287
|
|
|
288
288
|
* `path` (string): Required - Path to operate on.
|
|
289
289
|
* `destination` (string): Required - Destination file path for the transformed output.
|
|
290
|
-
* `transform_type` (string): Required - Transform type. Supported values are `image_convert` and `
|
|
290
|
+
* `transform_type` (string): Required - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
291
291
|
* `target_format` (string): Required - Destination format to create.
|
|
292
|
+
* `script` (string): Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
292
293
|
* `width` (int64): Maximum output width for image_convert.
|
|
293
294
|
* `height` (int64): Maximum output height for image_convert.
|
|
294
295
|
* `overwrite` (boolean): Overwrite existing file in the destination?
|
|
@@ -554,8 +555,9 @@ file.transform(
|
|
|
554
555
|
|
|
555
556
|
* `path` (string): Required - Path to operate on.
|
|
556
557
|
* `destination` (string): Required - Destination file path for the transformed output.
|
|
557
|
-
* `transform_type` (string): Required - Transform type. Supported values are `image_convert` and `
|
|
558
|
+
* `transform_type` (string): Required - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
558
559
|
* `target_format` (string): Required - Destination format to create.
|
|
560
|
+
* `script` (string): Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
559
561
|
* `width` (int64): Maximum output width for image_convert.
|
|
560
562
|
* `height` (int64): Maximum output height for image_convert.
|
|
561
563
|
* `overwrite` (boolean): Overwrite existing file in the destination?
|
|
@@ -1079,8 +1079,9 @@ module Files
|
|
|
1079
1079
|
#
|
|
1080
1080
|
# Parameters:
|
|
1081
1081
|
# destination (required) - string - Destination file path for the transformed output.
|
|
1082
|
-
# transform_type (required) - string - Transform type. Supported values are `image_convert` and `
|
|
1082
|
+
# transform_type (required) - string - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
1083
1083
|
# target_format (required) - string - Destination format to create.
|
|
1084
|
+
# script - string - Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
1084
1085
|
# width - int64 - Maximum output width for image_convert.
|
|
1085
1086
|
# height - int64 - Maximum output height for image_convert.
|
|
1086
1087
|
# overwrite - boolean - Overwrite existing file in the destination?
|
|
@@ -1092,6 +1093,7 @@ module Files
|
|
|
1092
1093
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1093
1094
|
raise InvalidParameterError.new("Bad parameter: transform_type must be an String") if params[:transform_type] and !params[:transform_type].is_a?(String)
|
|
1094
1095
|
raise InvalidParameterError.new("Bad parameter: target_format must be an String") if params[:target_format] and !params[:target_format].is_a?(String)
|
|
1096
|
+
raise InvalidParameterError.new("Bad parameter: script must be an String") if params[:script] and !params[:script].is_a?(String)
|
|
1095
1097
|
raise InvalidParameterError.new("Bad parameter: width must be an Integer") if params[:width] and !params[:width].is_a?(Integer)
|
|
1096
1098
|
raise InvalidParameterError.new("Bad parameter: height must be an Integer") if params[:height] and !params[:height].is_a?(Integer)
|
|
1097
1099
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
@@ -1362,8 +1364,9 @@ module Files
|
|
|
1362
1364
|
#
|
|
1363
1365
|
# Parameters:
|
|
1364
1366
|
# destination (required) - string - Destination file path for the transformed output.
|
|
1365
|
-
# transform_type (required) - string - Transform type. Supported values are `image_convert` and `
|
|
1367
|
+
# transform_type (required) - string - Transform type. Supported values are `image_convert`, `document_convert`, and `files_transform_script_execute`.
|
|
1366
1368
|
# target_format (required) - string - Destination format to create.
|
|
1369
|
+
# script - string - Files TransformScript source. Required when transform_type is `files_transform_script_execute`.
|
|
1367
1370
|
# width - int64 - Maximum output width for image_convert.
|
|
1368
1371
|
# height - int64 - Maximum output height for image_convert.
|
|
1369
1372
|
# overwrite - boolean - Overwrite existing file in the destination?
|
|
@@ -1374,6 +1377,7 @@ module Files
|
|
|
1374
1377
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1375
1378
|
raise InvalidParameterError.new("Bad parameter: transform_type must be an String") if params[:transform_type] and !params[:transform_type].is_a?(String)
|
|
1376
1379
|
raise InvalidParameterError.new("Bad parameter: target_format must be an String") if params[:target_format] and !params[:target_format].is_a?(String)
|
|
1380
|
+
raise InvalidParameterError.new("Bad parameter: script must be an String") if params[:script] and !params[:script].is_a?(String)
|
|
1377
1381
|
raise InvalidParameterError.new("Bad parameter: width must be an Integer") if params[:width] and !params[:width].is_a?(Integer)
|
|
1378
1382
|
raise InvalidParameterError.new("Bad parameter: height must be an Integer") if params[:height] and !params[:height].is_a?(Integer)
|
|
1379
1383
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
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.668
|
|
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-06-
|
|
11
|
+
date: 2026-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|