files.com 1.0.407 → 1.0.409
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: 1f72982d944e1322a882fbdcc4b97d502b863827c1ab39bce98250cb90450767
|
4
|
+
data.tar.gz: 1adb64e9498cf9261a33adc6dedf7d3d67f8784ab6f56f073530f235fbb97164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d04d152cbd2b29be4c3ab9961c256d32882c7955126e29db39c5823a5c9d424aa365562964fb5639e6abf6e4ee88a900544601519ccc9a3cc5b885b878d3ff87
|
7
|
+
data.tar.gz: e003c6d9a064c5188e54c043df8241f90d4fa94ce77d1096a7633d83a4c06fb89e553134963f0a183a0c8396e5f56ad6bd56d122353ecc3f164a7b9a23d518c8
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.409
|
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