files.com 1.0.408 → 1.0.410
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/webhook_test.md +4 -1
- data/lib/files.com/models/webhook_test.rb +10 -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: 13a7b2c379bd62899b25ff4bd15ce181f98478693c609d995f78acba831f07e8
|
4
|
+
data.tar.gz: 180e63a254f396bc5d936c7825c812bf728cfb339d7f984c56ec642480665c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fb70532bebb7db9178033b5ce9d866ccbd8727b524b98dcfd7ad0df4b12ad660fa04de4c077f27e1624c9ba69d63a6314d815d4b52a2d2cbeea3e588c8aac8a
|
7
|
+
data.tar.gz: 8a6a0fe4ecc10dd7415eb17cdfe95448c0d98d6347d98b976e4d6ca14c9f3d62ae07569f3a321f9002ff12c666329954b8c94f869ccb38ee894860e5082b7880
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.410
|
data/docs/webhook_test.md
CHANGED
@@ -26,6 +26,7 @@
|
|
26
26
|
* `file_as_body` (boolean): Send the file data as the request body?
|
27
27
|
* `file_form_field` (string): Send the file data as a named parameter in the request POST body
|
28
28
|
* `action` (string): action for test body
|
29
|
+
* `use_dedicated_ips` (boolean): Use dedicated IPs for sending the webhook?
|
29
30
|
|
30
31
|
|
31
32
|
---
|
@@ -42,7 +43,8 @@ Files::WebhookTest.create(
|
|
42
43
|
raw_body: "test body",
|
43
44
|
file_as_body: true,
|
44
45
|
file_form_field: "upload_file_data",
|
45
|
-
action: "test"
|
46
|
+
action: "test",
|
47
|
+
use_dedicated_ips: true
|
46
48
|
)
|
47
49
|
```
|
48
50
|
|
@@ -57,3 +59,4 @@ Files::WebhookTest.create(
|
|
57
59
|
* `file_as_body` (boolean): Send the file data as the request body?
|
58
60
|
* `file_form_field` (string): Send the file data as a named parameter in the request POST body
|
59
61
|
* `action` (string): action for test body
|
62
|
+
* `use_dedicated_ips` (boolean): Use dedicated IPs for sending the webhook?
|
@@ -135,6 +135,15 @@ module Files
|
|
135
135
|
@attributes[:action] = value
|
136
136
|
end
|
137
137
|
|
138
|
+
# boolean - Use dedicated IPs for sending the webhook?
|
139
|
+
def use_dedicated_ips
|
140
|
+
@attributes[:use_dedicated_ips]
|
141
|
+
end
|
142
|
+
|
143
|
+
def use_dedicated_ips=(value)
|
144
|
+
@attributes[:use_dedicated_ips] = value
|
145
|
+
end
|
146
|
+
|
138
147
|
def save
|
139
148
|
if @attributes[:id]
|
140
149
|
raise NotImplementedError.new("The WebhookTest object doesn't support updates.")
|
@@ -154,6 +163,7 @@ module Files
|
|
154
163
|
# file_as_body - boolean - Send the file data as the request body?
|
155
164
|
# file_form_field - string - Send the file data as a named parameter in the request POST body
|
156
165
|
# action - string - action for test body
|
166
|
+
# use_dedicated_ips - boolean - Use dedicated IPs for sending the webhook?
|
157
167
|
def self.create(params = {}, options = {})
|
158
168
|
raise InvalidParameterError.new("Bad parameter: url must be an String") if params[:url] and !params[:url].is_a?(String)
|
159
169
|
raise InvalidParameterError.new("Bad parameter: method must be an String") if params[:method] and !params[:method].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED