files.com 1.1.40 → 1.1.41
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/behavior.md +3 -1
- data/lib/files.com/models/behavior.rb +9 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9186da3def49e941ababb1f4e54541124dfb2d9fcd705ccc2b659b4c6aa70ae
|
|
4
|
+
data.tar.gz: 2ec1348fde1a96c1226f731a6accf4b4a2b8390d94bb2bc9c9d4f4e2c51adaa8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 126104555df89adfa421608d08bd846af50407498269e051417818be496a9fe430b8fa561158dfd8a6dc627bde3c3b6c6e6a9c80acde285b4975cda4da210980
|
|
7
|
+
data.tar.gz: 398a9477d9b3be43f767a30c93aca9e22ce2170af5a1a79ad84984aa3164a10e2b7de14635714bdce74e8b3bcb96f673b959072b66454a5c37fed489606e8e96
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.41
|
data/docs/behavior.md
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"description": "example",
|
|
13
13
|
"value": {
|
|
14
14
|
"key": "example value"
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"disable_parent_folder_behavior": true
|
|
16
17
|
}
|
|
17
18
|
```
|
|
18
19
|
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
* `name` (string): Name for this behavior.
|
|
24
25
|
* `description` (string): Description for this behavior.
|
|
25
26
|
* `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
|
|
27
|
+
* `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
|
|
26
28
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
|
27
29
|
* `attachment_delete` (boolean): If true, will delete the file stored in attachment
|
|
28
30
|
|
|
@@ -72,6 +72,15 @@ module Files
|
|
|
72
72
|
@attributes[:value] = value
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
+
# boolean - If true, the parent folder's behavior will be disabled for this folder.
|
|
76
|
+
def disable_parent_folder_behavior
|
|
77
|
+
@attributes[:disable_parent_folder_behavior]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def disable_parent_folder_behavior=(value)
|
|
81
|
+
@attributes[:disable_parent_folder_behavior] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
75
84
|
# file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
|
76
85
|
def attachment_file
|
|
77
86
|
@attributes[:attachment_file]
|
data/lib/files.com/version.rb
CHANGED