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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 040f405f394a12150ddfa364b453ef9cca7405b15d63dc4f2980be6366fd2154
4
- data.tar.gz: 225d59d839f917801a02300c1e84ee71b3a243357e7cc7cc121c14f521d8f008
3
+ metadata.gz: 13a7b2c379bd62899b25ff4bd15ce181f98478693c609d995f78acba831f07e8
4
+ data.tar.gz: 180e63a254f396bc5d936c7825c812bf728cfb339d7f984c56ec642480665c16
5
5
  SHA512:
6
- metadata.gz: 843b9405fb8f466c394f9dfcbf515ea02a516dca5792eb65cddaec0c406673d9e83cb31b334ede0043e8ff147cbb58674f507f8775d937984c7ba13f85f1be23
7
- data.tar.gz: 1c374f8874d3270d7f2fad85945587f6592b093f391e7133c7e26361bc7c179f8b9564b900629e56c7a1c4d3f1c0375b39e46453072adc2f17767444b9a9c6ee
6
+ metadata.gz: 6fb70532bebb7db9178033b5ce9d866ccbd8727b524b98dcfd7ad0df4b12ad660fa04de4c077f27e1624c9ba69d63a6314d815d4b52a2d2cbeea3e588c8aac8a
7
+ data.tar.gz: 8a6a0fe4ecc10dd7415eb17cdfe95448c0d98d6347d98b976e4d6ca14c9f3d62ae07569f3a321f9002ff12c666329954b8c94f869ccb38ee894860e5082b7880
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.408
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.0.408"
4
+ VERSION = "1.0.410"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.408
4
+ version: 1.0.410
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com