files.com 1.0.408 → 1.0.409

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: 1f72982d944e1322a882fbdcc4b97d502b863827c1ab39bce98250cb90450767
4
+ data.tar.gz: 1adb64e9498cf9261a33adc6dedf7d3d67f8784ab6f56f073530f235fbb97164
5
5
  SHA512:
6
- metadata.gz: 843b9405fb8f466c394f9dfcbf515ea02a516dca5792eb65cddaec0c406673d9e83cb31b334ede0043e8ff147cbb58674f507f8775d937984c7ba13f85f1be23
7
- data.tar.gz: 1c374f8874d3270d7f2fad85945587f6592b093f391e7133c7e26361bc7c179f8b9564b900629e56c7a1c4d3f1c0375b39e46453072adc2f17767444b9a9c6ee
6
+ metadata.gz: d04d152cbd2b29be4c3ab9961c256d32882c7955126e29db39c5823a5c9d424aa365562964fb5639e6abf6e4ee88a900544601519ccc9a3cc5b885b878d3ff87
7
+ data.tar.gz: e003c6d9a064c5188e54c043df8241f90d4fa94ce77d1096a7633d83a4c06fb89e553134963f0a183a0c8396e5f56ad6bd56d122353ecc3f164a7b9a23d518c8
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.408
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)
@@ -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.409"
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.409
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com