mailgun-ruby 1.3.0 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/README.md +1 -2
- data/docs/MessageBuilder.md +12 -0
- data/lib/mailgun/client.rb +1 -0
- data/lib/mailgun/domains/domains.rb +19 -0
- data/lib/mailgun/events/events.rb +4 -4
- data/lib/mailgun/version.rb +1 -1
- data/mailgun.gemspec +1 -1
- data/spec/integration/routes_spec.rb +17 -1
- data/vcr_cassettes/bounces.yml +210 -1
- data/vcr_cassettes/complaints.yml +215 -5
- data/vcr_cassettes/domains.yml +777 -45
- data/vcr_cassettes/email_validation.yml +137 -8
- data/vcr_cassettes/events.yml +735 -2
- data/vcr_cassettes/exceptions.yml +48 -1
- data/vcr_cassettes/list_members.yml +343 -7
- data/vcr_cassettes/mailing_list.yml +301 -9
- data/vcr_cassettes/routes.yml +246 -246
- data/vcr_cassettes/send_message.yml +54 -3
- data/vcr_cassettes/stats.yml +47 -2
- data/vcr_cassettes/suppressions.yml +785 -0
- data/vcr_cassettes/unsubscribes.yml +215 -5
- metadata +17 -18
- data/docs/Messages.md +0 -107
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Address
|
46
46
|
has been added to the complaints table"}'
|
47
|
-
http_version:
|
47
|
+
http_version:
|
48
48
|
recorded_at: Fri, 08 Jan 2016 20:31:59 GMT
|
49
49
|
- request:
|
50
50
|
method: get
|
@@ -86,7 +86,7 @@ http_interactions:
|
|
86
86
|
encoding: UTF-8
|
87
87
|
string: '{"address":"integration-test-email@DOMAIN.TEST","created_at":"Fri,
|
88
88
|
08 Jan 2016 20:31:59 UTC"}'
|
89
|
-
http_version:
|
89
|
+
http_version:
|
90
90
|
recorded_at: Fri, 08 Jan 2016 20:32:00 GMT
|
91
91
|
- request:
|
92
92
|
method: get
|
@@ -128,7 +128,7 @@ http_interactions:
|
|
128
128
|
encoding: UTF-8
|
129
129
|
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Fri,
|
130
130
|
08 Jan 2016 20:31:59 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?limit=100","last":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=last\u0026limit=100","next":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=next\u0026address=integration-test-email%40DOMAIN.TEST\u0026limit=100","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=previous\u0026address=integration-test-email%40DOMAIN.TEST\u0026limit=100"}}'
|
131
|
-
http_version:
|
131
|
+
http_version:
|
132
132
|
recorded_at: Fri, 08 Jan 2016 20:32:00 GMT
|
133
133
|
- request:
|
134
134
|
method: delete
|
@@ -170,6 +170,216 @@ http_interactions:
|
|
170
170
|
encoding: UTF-8
|
171
171
|
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Spam complaint
|
172
172
|
has been removed"}'
|
173
|
-
http_version:
|
173
|
+
http_version:
|
174
174
|
recorded_at: Fri, 08 Jan 2016 20:32:00 GMT
|
175
|
-
|
175
|
+
- request:
|
176
|
+
method: post
|
177
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints
|
178
|
+
body:
|
179
|
+
encoding: UTF-8
|
180
|
+
string: address=integration-test-email%40DOMAIN.TEST
|
181
|
+
headers:
|
182
|
+
User-Agent:
|
183
|
+
- mailgun-sdk-ruby/1.3.0
|
184
|
+
Accept:
|
185
|
+
- "*/*"
|
186
|
+
Authorization:
|
187
|
+
- Basic xxx==
|
188
|
+
Content-Type:
|
189
|
+
- application/x-www-form-urlencoded
|
190
|
+
Accept-Encoding:
|
191
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
192
|
+
response:
|
193
|
+
status:
|
194
|
+
code: 200
|
195
|
+
message: OK
|
196
|
+
headers:
|
197
|
+
Access-Control-Allow-Credentials:
|
198
|
+
- 'true'
|
199
|
+
Access-Control-Allow-Origin:
|
200
|
+
- "*"
|
201
|
+
Cache-Control:
|
202
|
+
- no-store
|
203
|
+
Content-Length:
|
204
|
+
- '148'
|
205
|
+
Content-Type:
|
206
|
+
- application/json; charset=utf-8
|
207
|
+
Date:
|
208
|
+
- Sun, 26 Jan 2025 07:29:06 GMT
|
209
|
+
Strict-Transport-Security:
|
210
|
+
- max-age=63072000; includeSubDomains
|
211
|
+
X-Mailgun-Key-Id:
|
212
|
+
- 90b59dea-f2d12a53
|
213
|
+
X-Request-Limit:
|
214
|
+
- '2500'
|
215
|
+
X-Request-Remaining:
|
216
|
+
- '2495'
|
217
|
+
X-Request-Reset:
|
218
|
+
- '1737876559178'
|
219
|
+
X-Xss-Protection:
|
220
|
+
- 1; mode=block
|
221
|
+
body:
|
222
|
+
encoding: UTF-8
|
223
|
+
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Address
|
224
|
+
has been added to the complaints table"}
|
225
|
+
|
226
|
+
'
|
227
|
+
http_version:
|
228
|
+
recorded_at: Sun, 26 Jan 2025 07:29:07 GMT
|
229
|
+
- request:
|
230
|
+
method: get
|
231
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
|
232
|
+
body:
|
233
|
+
encoding: US-ASCII
|
234
|
+
string: ''
|
235
|
+
headers:
|
236
|
+
User-Agent:
|
237
|
+
- mailgun-sdk-ruby/1.3.0
|
238
|
+
Accept:
|
239
|
+
- "*/*"
|
240
|
+
Authorization:
|
241
|
+
- Basic xxx==
|
242
|
+
Accept-Encoding:
|
243
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
244
|
+
response:
|
245
|
+
status:
|
246
|
+
code: 200
|
247
|
+
message: OK
|
248
|
+
headers:
|
249
|
+
Access-Control-Allow-Credentials:
|
250
|
+
- 'true'
|
251
|
+
Access-Control-Allow-Origin:
|
252
|
+
- "*"
|
253
|
+
Cache-Control:
|
254
|
+
- no-store
|
255
|
+
Content-Length:
|
256
|
+
- '134'
|
257
|
+
Content-Type:
|
258
|
+
- application/json; charset=utf-8
|
259
|
+
Date:
|
260
|
+
- Sun, 26 Jan 2025 07:29:07 GMT
|
261
|
+
Strict-Transport-Security:
|
262
|
+
- max-age=63072000; includeSubDomains
|
263
|
+
X-Mailgun-Key-Id:
|
264
|
+
- 90b59dea-f2d12a53
|
265
|
+
X-Request-Limit:
|
266
|
+
- '2500'
|
267
|
+
X-Request-Remaining:
|
268
|
+
- '2494'
|
269
|
+
X-Request-Reset:
|
270
|
+
- '1737876559178'
|
271
|
+
X-Xss-Protection:
|
272
|
+
- 1; mode=block
|
273
|
+
body:
|
274
|
+
encoding: UTF-8
|
275
|
+
string: '{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
|
276
|
+
26 Jan 2025 07:29:06 UTC"}
|
277
|
+
|
278
|
+
'
|
279
|
+
http_version:
|
280
|
+
recorded_at: Sun, 26 Jan 2025 07:29:07 GMT
|
281
|
+
- request:
|
282
|
+
method: get
|
283
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints
|
284
|
+
body:
|
285
|
+
encoding: US-ASCII
|
286
|
+
string: ''
|
287
|
+
headers:
|
288
|
+
User-Agent:
|
289
|
+
- mailgun-sdk-ruby/1.3.0
|
290
|
+
Accept:
|
291
|
+
- "*/*"
|
292
|
+
Authorization:
|
293
|
+
- Basic xxx==
|
294
|
+
Accept-Encoding:
|
295
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
296
|
+
response:
|
297
|
+
status:
|
298
|
+
code: 200
|
299
|
+
message: OK
|
300
|
+
headers:
|
301
|
+
Access-Control-Allow-Credentials:
|
302
|
+
- 'true'
|
303
|
+
Access-Control-Allow-Origin:
|
304
|
+
- "*"
|
305
|
+
Cache-Control:
|
306
|
+
- no-store
|
307
|
+
Content-Length:
|
308
|
+
- '826'
|
309
|
+
Content-Type:
|
310
|
+
- application/json; charset=utf-8
|
311
|
+
Date:
|
312
|
+
- Sun, 26 Jan 2025 07:29:08 GMT
|
313
|
+
Strict-Transport-Security:
|
314
|
+
- max-age=63072000; includeSubDomains
|
315
|
+
X-Mailgun-Key-Id:
|
316
|
+
- 90b59dea-f2d12a53
|
317
|
+
X-Request-Limit:
|
318
|
+
- '2500'
|
319
|
+
X-Request-Remaining:
|
320
|
+
- '2493'
|
321
|
+
X-Request-Reset:
|
322
|
+
- '1737876559178'
|
323
|
+
X-Xss-Protection:
|
324
|
+
- 1; mode=block
|
325
|
+
body:
|
326
|
+
encoding: UTF-8
|
327
|
+
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
|
328
|
+
26 Jan 2025 07:29:06 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=next&address=integration-test-email%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=previous&address=integration-test-email%40DOMAIN.TEST&limit=100&term="}}
|
329
|
+
|
330
|
+
'
|
331
|
+
http_version:
|
332
|
+
recorded_at: Sun, 26 Jan 2025 07:29:08 GMT
|
333
|
+
- request:
|
334
|
+
method: delete
|
335
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
|
336
|
+
body:
|
337
|
+
encoding: US-ASCII
|
338
|
+
string: ''
|
339
|
+
headers:
|
340
|
+
User-Agent:
|
341
|
+
- mailgun-sdk-ruby/1.3.0
|
342
|
+
Accept:
|
343
|
+
- "*/*"
|
344
|
+
Authorization:
|
345
|
+
- Basic xxx==
|
346
|
+
Accept-Encoding:
|
347
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
348
|
+
response:
|
349
|
+
status:
|
350
|
+
code: 200
|
351
|
+
message: OK
|
352
|
+
headers:
|
353
|
+
Access-Control-Allow-Credentials:
|
354
|
+
- 'true'
|
355
|
+
Access-Control-Allow-Origin:
|
356
|
+
- "*"
|
357
|
+
Cache-Control:
|
358
|
+
- no-store
|
359
|
+
Content-Length:
|
360
|
+
- '133'
|
361
|
+
Content-Type:
|
362
|
+
- application/json; charset=utf-8
|
363
|
+
Date:
|
364
|
+
- Sun, 26 Jan 2025 07:29:08 GMT
|
365
|
+
Strict-Transport-Security:
|
366
|
+
- max-age=63072000; includeSubDomains
|
367
|
+
X-Mailgun-Key-Id:
|
368
|
+
- 90b59dea-f2d12a53
|
369
|
+
X-Request-Limit:
|
370
|
+
- '2500'
|
371
|
+
X-Request-Remaining:
|
372
|
+
- '2492'
|
373
|
+
X-Request-Reset:
|
374
|
+
- '1737876559178'
|
375
|
+
X-Xss-Protection:
|
376
|
+
- 1; mode=block
|
377
|
+
body:
|
378
|
+
encoding: UTF-8
|
379
|
+
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Spam complaint
|
380
|
+
has been removed"}
|
381
|
+
|
382
|
+
'
|
383
|
+
http_version:
|
384
|
+
recorded_at: Sun, 26 Jan 2025 07:29:08 GMT
|
385
|
+
recorded_with: VCR 3.0.3
|