files.com 1.1.18 → 1.1.20
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/bundle_notification.md +5 -5
- data/lib/files.com/models/bundle_notification.rb +2 -2
- data/lib/files.com/version.rb +1 -1
- data/shared/header_test_data.json +36 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79f5c31b820c33992b6d9871ba1010c62e05b8f3e2f98308e570919cefbcada7
|
4
|
+
data.tar.gz: 798a04067fe40ddaf0d8d245dddbaf53a307425656692a74c297f325ae658fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 450cfcda03afee70ae87ccc9007c3d5bc0dca59ef55b83a0f71d7cc5355f5c699e0e2b3e76907bfc8e56b547616a61f0fc5de0ee297514c71cf340e04fbd3546
|
7
|
+
data.tar.gz: bc77ec8901d4e910abf8cbfe3cc26089a2cfbc547e2e924e10420b5964cd083dd5da66075a68bdbba554d8c3d87480205e9676df816c08194498fe661a76f16a
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.20
|
data/docs/bundle_notification.md
CHANGED
@@ -56,19 +56,19 @@ Files::BundleNotification.find(id)
|
|
56
56
|
|
57
57
|
```
|
58
58
|
Files::BundleNotification.create(
|
59
|
-
notify_on_registration: true,
|
60
|
-
notify_on_upload: true,
|
61
59
|
bundle_id: 1,
|
62
|
-
user_id: 1
|
60
|
+
user_id: 1,
|
61
|
+
notify_on_registration: true,
|
62
|
+
notify_on_upload: true
|
63
63
|
)
|
64
64
|
```
|
65
65
|
|
66
66
|
### Parameters
|
67
67
|
|
68
|
-
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
69
|
-
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
70
68
|
* `bundle_id` (int64): Required - Bundle ID to notify on
|
71
69
|
* `user_id` (int64): The id of the user to notify.
|
70
|
+
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
71
|
+
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
72
72
|
|
73
73
|
|
74
74
|
---
|
@@ -130,10 +130,10 @@ module Files
|
|
130
130
|
end
|
131
131
|
|
132
132
|
# Parameters:
|
133
|
-
# notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
134
|
-
# notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
135
133
|
# bundle_id (required) - int64 - Bundle ID to notify on
|
136
134
|
# user_id - int64 - The id of the user to notify.
|
135
|
+
# notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
136
|
+
# notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
137
137
|
def self.create(params = {}, options = {})
|
138
138
|
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
|
139
139
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
data/lib/files.com/version.rb
CHANGED
@@ -0,0 +1,36 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"headers": {},
|
4
|
+
"result": null
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"headers": {
|
8
|
+
"Retry-After": ["aaaaaa"]
|
9
|
+
},
|
10
|
+
"result": null
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"headers": {
|
14
|
+
"Retry-After": ["120"]
|
15
|
+
},
|
16
|
+
"result": 120
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"headers": {
|
20
|
+
"Retry-After": ["120", "60"]
|
21
|
+
},
|
22
|
+
"result": 120
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"headers": {
|
26
|
+
"Retry-After": ["120", "aaaaaa"]
|
27
|
+
},
|
28
|
+
"result": 120
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"headers": {
|
32
|
+
"Retry-After": ["%s"]
|
33
|
+
},
|
34
|
+
"result": 60
|
35
|
+
}
|
36
|
+
]
|
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.20
|
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-
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -295,6 +295,7 @@ files:
|
|
295
295
|
- lib/files.com/util.rb
|
296
296
|
- lib/files.com/version.rb
|
297
297
|
- setup.sh
|
298
|
+
- shared/header_test_data.json
|
298
299
|
- shared/normalization_for_comparison_test_data.json
|
299
300
|
- shared/url_test_data.json
|
300
301
|
- spec/lib/api_client_spec.rb
|