files.com 1.0.14 → 1.0.15
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/behavior.md +3 -5
- data/lib/files.com/models/behavior.rb +3 -3
- 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: d33719015bdad22a7ad9ae28c3fc1e62d17b166cc1cdcac9fb961e2c9dfb9855
|
4
|
+
data.tar.gz: 4bbc134f2c96695ce5b60307ed70b592da242b09ed12e7e2d70969b86dd94d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c456e73c2f289abeb06701835cd389572634c13270de4fde9f049e273debc99cbf73dad8c45372d9e1053e63a55637e24bd153a5cb6d0447c3602435685bca96
|
7
|
+
data.tar.gz: 43857799974164dd1fb14c225e579fef94b9dd89206f52ac8b3ece91c642daee6e100b1234d49cafc711dab969d130d7e8640df4a01c8b6b2f72af108f7beba4
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.15
|
data/docs/behavior.md
CHANGED
@@ -103,19 +103,17 @@ Files::Behavior.create(
|
|
103
103
|
|
104
104
|
```
|
105
105
|
Files::Behavior.webhook_test(
|
106
|
+
url: "https://www.site.com/...",
|
106
107
|
method: "GET",
|
107
|
-
encoding: "RAW"
|
108
|
-
test_webhook[url]: "https://www.site.com/...",
|
109
|
-
url: "https://www.site.com/..."
|
108
|
+
encoding: "RAW"
|
110
109
|
)
|
111
110
|
```
|
112
111
|
|
113
112
|
### Parameters
|
114
113
|
|
114
|
+
* `url` (string): Required - URL for testing the webhook.
|
115
115
|
* `method` (string): HTTP method(GET or POST).
|
116
116
|
* `encoding` (string): HTTP encoding method. Can be JSON, XML, or RAW (form data).
|
117
|
-
* `test_webhook[url]` (string): URL for testing the webhook.
|
118
|
-
* `url` (string): URL for testing the webhook.
|
119
117
|
|
120
118
|
|
121
119
|
---
|
@@ -174,14 +174,14 @@ module Files
|
|
174
174
|
end
|
175
175
|
|
176
176
|
# Parameters:
|
177
|
+
# url (required) - string - URL for testing the webhook.
|
177
178
|
# method - string - HTTP method(GET or POST).
|
178
179
|
# encoding - string - HTTP encoding method. Can be JSON, XML, or RAW (form data).
|
179
|
-
# test_webhook[url] (required) - string - URL for testing the webhook.
|
180
|
-
# url - string - URL for testing the webhook.
|
181
180
|
def self.webhook_test(params = {}, options = {})
|
181
|
+
raise InvalidParameterError.new("Bad parameter: url must be an String") if params.dig(:url) and !params.dig(:url).is_a?(String)
|
182
182
|
raise InvalidParameterError.new("Bad parameter: method must be an String") if params.dig(:method) and !params.dig(:method).is_a?(String)
|
183
183
|
raise InvalidParameterError.new("Bad parameter: encoding must be an String") if params.dig(:encoding) and !params.dig(:encoding).is_a?(String)
|
184
|
-
raise
|
184
|
+
raise MissingParameterError.new("Parameter missing: url") unless params.dig(:url)
|
185
185
|
|
186
186
|
response, _options = Api.send_request("/behaviors/webhook/test", :post, params, options)
|
187
187
|
response.data
|
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.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|