files.com 1.1.139 → 1.1.141
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/automation.md +3 -1
- data/lib/files.com/api_client.rb +4 -3
- data/lib/files.com/models/automation.rb +10 -1
- 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: b77edd04efc6c1da8fef4acf1fb5e9afa83104e6d93468032a3e3105034f52e3
|
4
|
+
data.tar.gz: e9a8b187095561b8cdd7f795abad690059b66fa74fecc7c08f78a8ea33673f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f9283ee0adf583c5868961365e923a6988295759f729f076a0d278e08b23ca07ee1c23581c32eb2428868519d209dcee5af2d473907f352fe1d8b07c3cc28a0
|
7
|
+
data.tar.gz: e781ec4025134754637cd08d38d7cbff4625c330aedfb8c584290ce40491d06c697d5dcf62a8e4356c9287658382bfd3e9397c34440e93ca28d438985af29d15
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.141
|
data/docs/automation.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
"destination"
|
16
16
|
],
|
17
17
|
"disabled": true,
|
18
|
+
"exclude_pattern": "example",
|
18
19
|
"flatten_destination_structure": true,
|
19
20
|
"group_ids": [
|
20
21
|
1,
|
@@ -71,6 +72,7 @@
|
|
71
72
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
72
73
|
* `destinations` (array(string)): Destination Paths
|
73
74
|
* `disabled` (boolean): If true, this automation will not run.
|
75
|
+
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
74
76
|
* `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
75
77
|
* `group_ids` (array(int64)): IDs of Groups for the Automation (i.e. who to Request File from)
|
76
78
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
@@ -87,7 +89,7 @@
|
|
87
89
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
88
90
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
89
91
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
90
|
-
* `source` (string): Source
|
92
|
+
* `source` (string): Source path. Supports globs, except on remote mounts.
|
91
93
|
* `sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
92
94
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
93
95
|
* `trigger` (string): How this automation is triggered to run.
|
data/lib/files.com/api_client.rb
CHANGED
@@ -324,11 +324,12 @@ module Files
|
|
324
324
|
}
|
325
325
|
|
326
326
|
if Files.default_headers.is_a?(Proc)
|
327
|
-
|
328
|
-
|
329
|
-
headers.merge!(Files.default_headers)
|
327
|
+
proc_headers = Files.default_headers.call
|
328
|
+
headers.merge!(proc_headers) if proc_headers.is_a?(Hash)
|
330
329
|
end
|
331
330
|
|
331
|
+
headers.merge!(Files.default_headers) if Files.default_headers.is_a?(Hash)
|
332
|
+
|
332
333
|
headers["X-FilesAPI-Key"] = api_key if api_key
|
333
334
|
headers["X-FilesAPI-Auth"] = session_id if session_id
|
334
335
|
|
@@ -90,6 +90,15 @@ module Files
|
|
90
90
|
@attributes[:disabled] = value
|
91
91
|
end
|
92
92
|
|
93
|
+
# string - If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
94
|
+
def exclude_pattern
|
95
|
+
@attributes[:exclude_pattern]
|
96
|
+
end
|
97
|
+
|
98
|
+
def exclude_pattern=(value)
|
99
|
+
@attributes[:exclude_pattern] = value
|
100
|
+
end
|
101
|
+
|
93
102
|
# boolean - Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
94
103
|
def flatten_destination_structure
|
95
104
|
@attributes[:flatten_destination_structure]
|
@@ -234,7 +243,7 @@ module Files
|
|
234
243
|
@attributes[:schedule_time_zone] = value
|
235
244
|
end
|
236
245
|
|
237
|
-
# string - Source
|
246
|
+
# string - Source path. Supports globs, except on remote mounts.
|
238
247
|
def source
|
239
248
|
@attributes[:source]
|
240
249
|
end
|
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.141
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|