mailgun-ruby 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,269 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.mailgun.net/v1/webhooks
6
+ body:
7
+ encoding: UTF-8
8
+ string: description=test&event_types=accepted&url=http%3A%2F%2Fexample.com%2Fmailgun%2Fevents
9
+ headers:
10
+ User-Agent:
11
+ - mailgun-sdk-ruby/1.4.4
12
+ Accept:
13
+ - "*/*"
14
+ Authorization:
15
+ - Basic xxx
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Credentials:
26
+ - 'true'
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Cache-Control:
30
+ - no-store
31
+ Content-Length:
32
+ - '42'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Date:
36
+ - Mon, 25 May 2026 09:11:02 GMT
37
+ Strict-Transport-Security:
38
+ - max-age=63072000; includeSubDomains
39
+ X-Mailgun-Key-Id:
40
+ - xxx
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ Server-Timing:
44
+ - cfReqDur;dur=382.358
45
+ Cf-Team:
46
+ - xxx
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"webhook_id":"test"}
50
+
51
+ '
52
+ recorded_at: Mon, 25 May 2026 09:11:02 GMT
53
+ - request:
54
+ method: get
55
+ uri: https://api.mailgun.net/v1/webhooks?webhook_ids=
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ''
59
+ headers:
60
+ User-Agent:
61
+ - mailgun-sdk-ruby/1.4.4
62
+ Accept:
63
+ - "*/*"
64
+ Authorization:
65
+ - Basic xxx
66
+ Accept-Encoding:
67
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Access-Control-Allow-Credentials:
74
+ - 'true'
75
+ Access-Control-Allow-Origin:
76
+ - "*"
77
+ Cache-Control:
78
+ - no-store
79
+ Content-Length:
80
+ - '183'
81
+ Content-Type:
82
+ - application/json; charset=utf-8
83
+ Date:
84
+ - Mon, 25 May 2026 09:16:27 GMT
85
+ Strict-Transport-Security:
86
+ - max-age=63072000; includeSubDomains
87
+ X-Mailgun-Key-Id:
88
+ - xxx
89
+ X-Xss-Protection:
90
+ - 1; mode=block
91
+ Server-Timing:
92
+ - cfReqDur;dur=201.477
93
+ Cf-Team:
94
+ - xxx
95
+ body:
96
+ encoding: UTF-8
97
+ string: '{"webhooks":[{"webhook_id":"test","description":"test","url":"http://example.com/mailgun/events","event_types":["accepted"],"created_at":"2026-05-25T09:11:02Z"}]}
98
+
99
+ '
100
+ recorded_at: Mon, 25 May 2026 09:16:27 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://api.mailgun.net/v1/webhooks/test
104
+ body:
105
+ encoding: US-ASCII
106
+ string: ''
107
+ headers:
108
+ User-Agent:
109
+ - mailgun-sdk-ruby/1.4.4
110
+ Accept:
111
+ - "*/*"
112
+ Authorization:
113
+ - Basic xxx
114
+ Accept-Encoding:
115
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
116
+ response:
117
+ status:
118
+ code: 200
119
+ message: OK
120
+ headers:
121
+ Access-Control-Allow-Credentials:
122
+ - 'true'
123
+ Access-Control-Allow-Origin:
124
+ - "*"
125
+ Cache-Control:
126
+ - no-store
127
+ Content-Length:
128
+ - '168'
129
+ Content-Type:
130
+ - application/json; charset=utf-8
131
+ Date:
132
+ - Mon, 25 May 2026 09:22:12 GMT
133
+ Strict-Transport-Security:
134
+ - max-age=63072000; includeSubDomains
135
+ X-Mailgun-Key-Id:
136
+ - xxx
137
+ X-Xss-Protection:
138
+ - 1; mode=block
139
+ Server-Timing:
140
+ - cfReqDur;dur=234.628
141
+ Cf-Team:
142
+ - xxx
143
+ body:
144
+ encoding: UTF-8
145
+ string: '{"webhook_id":"test","description":"test","url":"http://example.com/mailgun/events","event_types":["accepted"],"created_at":"2026-05-25T09:11:02Z"}
146
+
147
+ '
148
+ recorded_at: Mon, 25 May 2026 09:22:12 GMT
149
+ - request:
150
+ method: put
151
+ uri: https://api.mailgun.net/v1/webhooks/test
152
+ body:
153
+ encoding: UTF-8
154
+ string: description=test2&event_types=accepted&url=http%3A%2F%2Fexample.com%2Fmailgun%2Fevents
155
+ headers:
156
+ User-Agent:
157
+ - mailgun-sdk-ruby/1.4.4
158
+ Accept:
159
+ - "*/*"
160
+ Authorization:
161
+ - Basic xxx
162
+ Content-Type:
163
+ - application/x-www-form-urlencoded
164
+ Accept-Encoding:
165
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
166
+ response:
167
+ status:
168
+ code: 204
169
+ message: No Content
170
+ headers:
171
+ Access-Control-Allow-Credentials:
172
+ - 'true'
173
+ Access-Control-Allow-Origin:
174
+ - "*"
175
+ Cache-Control:
176
+ - no-store
177
+ Date:
178
+ - Mon, 25 May 2026 12:03:17 GMT
179
+ Strict-Transport-Security:
180
+ - max-age=63072000; includeSubDomains
181
+ X-Mailgun-Key-Id:
182
+ - xxx
183
+ X-Xss-Protection:
184
+ - 1; mode=block
185
+ body:
186
+ encoding: UTF-8
187
+ string: ''
188
+ recorded_at: Mon, 25 May 2026 12:03:17 GMT
189
+ - request:
190
+ method: delete
191
+ uri: https://api.mailgun.net/v1/webhooks/test
192
+ body:
193
+ encoding: US-ASCII
194
+ string: ''
195
+ headers:
196
+ User-Agent:
197
+ - mailgun-sdk-ruby/1.4.4
198
+ Accept:
199
+ - "*/*"
200
+ Authorization:
201
+ - Basic xxx
202
+ Accept-Encoding:
203
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
204
+ response:
205
+ status:
206
+ code: 204
207
+ message: No Content
208
+ headers:
209
+ Access-Control-Allow-Credentials:
210
+ - 'true'
211
+ Access-Control-Allow-Origin:
212
+ - "*"
213
+ Cache-Control:
214
+ - no-store
215
+ Date:
216
+ - Mon, 25 May 2026 12:08:15 GMT
217
+ Strict-Transport-Security:
218
+ - max-age=63072000; includeSubDomains
219
+ X-Mailgun-Key-Id:
220
+ - xxx
221
+ X-Xss-Protection:
222
+ - 1; mode=block
223
+ body:
224
+ encoding: UTF-8
225
+ string: ''
226
+ recorded_at: Mon, 25 May 2026 12:08:15 GMT
227
+ - request:
228
+ method: delete
229
+ uri: https://api.mailgun.net/v1/webhooks?all=true
230
+ body:
231
+ encoding: US-ASCII
232
+ string: ''
233
+ headers:
234
+ User-Agent:
235
+ - mailgun-sdk-ruby/1.4.4
236
+ Accept:
237
+ - "*/*"
238
+ Authorization:
239
+ - Basic xxx
240
+ Accept-Encoding:
241
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
242
+ response:
243
+ status:
244
+ code: 204
245
+ message: No Content
246
+ headers:
247
+ Access-Control-Allow-Credentials:
248
+ - 'true'
249
+ Access-Control-Allow-Origin:
250
+ - "*"
251
+ Cache-Control:
252
+ - no-store
253
+ Date:
254
+ - Mon, 25 May 2026 20:28:16 GMT
255
+ Strict-Transport-Security:
256
+ - max-age=63072000; includeSubDomains
257
+ X-Mailgun-Key-Id:
258
+ - xxx
259
+ X-Xss-Protection:
260
+ - 1; mode=block
261
+ Server-Timing:
262
+ - cfReqDur;dur=246.503
263
+ Cf-Team:
264
+ - xxx
265
+ body:
266
+ encoding: UTF-8
267
+ string: ''
268
+ recorded_at: Mon, 25 May 2026 20:28:16 GMT
269
+ recorded_with: VCR 6.4.0
@@ -1045,7 +1045,7 @@ http_interactions:
1045
1045
  recorded_at: Thu, 28 Aug 2025 12:45:35 GMT
1046
1046
  - request:
1047
1047
  method: delete
1048
- uri: https://api.mailgun.net/v1/dkim/keys?params=%7Bsigning_domain:%20%22integration-test.domain.invalid%22,%20selector:%20%22test%22%7D
1048
+ uri: https://api.mailgun.net/v1/dkim/keys?selector=test&signing_domain=integration-test.domain.invalid
1049
1049
  body:
1050
1050
  encoding: US-ASCII
1051
1051
  string: ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailgun-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mailgun
@@ -263,7 +263,9 @@ files:
263
263
  - LICENSE
264
264
  - README.md
265
265
  - Rakefile
266
+ - docs/AccountWebhooks.md
266
267
  - docs/AnalyticsTags.md
268
+ - docs/DomainKeys.md
267
269
  - docs/Domains.md
268
270
  - docs/EmailValidation.md
269
271
  - docs/Events.md
@@ -284,6 +286,7 @@ files:
284
286
  - lib/mailgun/address.rb
285
287
  - lib/mailgun/chains.rb
286
288
  - lib/mailgun/client.rb
289
+ - lib/mailgun/domains/domain_keys.rb
287
290
  - lib/mailgun/domains/domains.rb
288
291
  - lib/mailgun/events/events.rb
289
292
  - lib/mailgun/exceptions/exceptions.rb
@@ -300,6 +303,7 @@ files:
300
303
  - lib/mailgun/tags/tags.rb
301
304
  - lib/mailgun/templates/templates.rb
302
305
  - lib/mailgun/version.rb
306
+ - lib/mailgun/webhooks/account_webhooks.rb
303
307
  - lib/mailgun/webhooks/webhooks.rb
304
308
  - lib/railgun.rb
305
309
  - lib/railgun/attachment.rb
@@ -307,10 +311,12 @@ files:
307
311
  - lib/railgun/mailer.rb
308
312
  - lib/railgun/railtie.rb
309
313
  - mailgun.gemspec
314
+ - spec/integration/account_webhooks_spec.rb
310
315
  - spec/integration/analytics_tags_spec.rb
311
316
  - spec/integration/bounces_spec.rb
312
317
  - spec/integration/campaign_spec.rb
313
318
  - spec/integration/complaints_spec.rb
319
+ - spec/integration/domain_keys_spec.rb
314
320
  - spec/integration/domains_spec.rb
315
321
  - spec/integration/email_validation_spec.rb
316
322
  - spec/integration/events_spec.rb
@@ -346,6 +352,7 @@ files:
346
352
  - spec/unit/railgun/mailer_spec.rb
347
353
  - spec/unit/response_spec.rb
348
354
  - vcr_cassettes/For_the_suppressions_handling_class/creates_a_single_bounce.yml
355
+ - vcr_cassettes/account_webhooks.yml
349
356
  - vcr_cassettes/analytics_tags.yml
350
357
  - vcr_cassettes/bounces.yml
351
358
  - vcr_cassettes/complaints.yml
@@ -392,14 +399,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
399
  - !ruby/object:Gem::Version
393
400
  version: '0'
394
401
  requirements: []
395
- rubygems_version: 4.0.3
402
+ rubygems_version: 4.0.10
396
403
  specification_version: 4
397
404
  summary: Mailgun's Official Ruby SDK
398
405
  test_files:
406
+ - spec/integration/account_webhooks_spec.rb
399
407
  - spec/integration/analytics_tags_spec.rb
400
408
  - spec/integration/bounces_spec.rb
401
409
  - spec/integration/campaign_spec.rb
402
410
  - spec/integration/complaints_spec.rb
411
+ - spec/integration/domain_keys_spec.rb
403
412
  - spec/integration/domains_spec.rb
404
413
  - spec/integration/email_validation_spec.rb
405
414
  - spec/integration/events_spec.rb