mailgun-ruby 1.3.0 → 1.3.2
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.
- 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
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
},
|
57
57
|
"message": "Mailing list has been created"
|
58
58
|
}
|
59
|
-
http_version:
|
59
|
+
http_version:
|
60
60
|
recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
|
61
61
|
- request:
|
62
62
|
method: get
|
@@ -93,7 +93,7 @@ http_interactions:
|
|
93
93
|
<title>404 Not Found</title>
|
94
94
|
<h1>Not Found</h1>
|
95
95
|
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
|
96
|
-
http_version:
|
96
|
+
http_version:
|
97
97
|
recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
|
98
98
|
- request:
|
99
99
|
method: get
|
@@ -149,7 +149,7 @@ http_interactions:
|
|
149
149
|
],
|
150
150
|
"total_count": 1
|
151
151
|
}
|
152
|
-
http_version:
|
152
|
+
http_version:
|
153
153
|
recorded_at: Fri, 08 Jan 2016 20:22:44 GMT
|
154
154
|
- request:
|
155
155
|
method: put
|
@@ -190,7 +190,7 @@ http_interactions:
|
|
190
190
|
<title>404 Not Found</title>
|
191
191
|
<h1>Not Found</h1>
|
192
192
|
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
|
193
|
-
http_version:
|
193
|
+
http_version:
|
194
194
|
recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
|
195
195
|
- request:
|
196
196
|
method: delete
|
@@ -227,7 +227,7 @@ http_interactions:
|
|
227
227
|
<title>404 Not Found</title>
|
228
228
|
<h1>Not Found</h1>
|
229
229
|
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
|
230
|
-
http_version:
|
230
|
+
http_version:
|
231
231
|
recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
|
232
232
|
- request:
|
233
233
|
method: get
|
@@ -280,7 +280,7 @@ http_interactions:
|
|
280
280
|
"name": "Integration Test List"
|
281
281
|
}
|
282
282
|
}
|
283
|
-
http_version:
|
283
|
+
http_version:
|
284
284
|
recorded_at: Fri, 08 Jan 2016 20:23:02 GMT
|
285
285
|
- request:
|
286
286
|
method: put
|
@@ -338,7 +338,7 @@ http_interactions:
|
|
338
338
|
},
|
339
339
|
"message": "Mailing list has been updated"
|
340
340
|
}
|
341
|
-
http_version:
|
341
|
+
http_version:
|
342
342
|
recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
|
343
343
|
- request:
|
344
344
|
method: delete
|
@@ -385,6 +385,298 @@ http_interactions:
|
|
385
385
|
"address": "integration_test_list@DOMAIN.TEST",
|
386
386
|
"message": "Mailing list has been removed"
|
387
387
|
}
|
388
|
-
http_version:
|
388
|
+
http_version:
|
389
389
|
recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
|
390
|
-
|
390
|
+
- request:
|
391
|
+
method: post
|
392
|
+
uri: https://api.mailgun.net/v3/lists
|
393
|
+
body:
|
394
|
+
encoding: UTF-8
|
395
|
+
string: access_level=members&address=integration_test_list%40DOMAIN.TEST&description=This+list+should+be+deleted+automatically.&name=Integration+Test+List
|
396
|
+
headers:
|
397
|
+
User-Agent:
|
398
|
+
- mailgun-sdk-ruby/1.3.0
|
399
|
+
Accept:
|
400
|
+
- "*/*"
|
401
|
+
Authorization:
|
402
|
+
- Basic xxx==
|
403
|
+
Content-Type:
|
404
|
+
- application/x-www-form-urlencoded
|
405
|
+
Accept-Encoding:
|
406
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
407
|
+
response:
|
408
|
+
status:
|
409
|
+
code: 200
|
410
|
+
message: OK
|
411
|
+
headers:
|
412
|
+
Access-Control-Allow-Credentials:
|
413
|
+
- 'true'
|
414
|
+
Access-Control-Allow-Origin:
|
415
|
+
- "*"
|
416
|
+
Cache-Control:
|
417
|
+
- no-store
|
418
|
+
Content-Disposition:
|
419
|
+
- inline
|
420
|
+
Content-Length:
|
421
|
+
- '398'
|
422
|
+
Content-Type:
|
423
|
+
- application/json
|
424
|
+
Date:
|
425
|
+
- Sun, 26 Jan 2025 07:29:27 GMT
|
426
|
+
Server:
|
427
|
+
- TwistedWeb/20.3.0
|
428
|
+
Strict-Transport-Security:
|
429
|
+
- max-age=63072000; includeSubDomains
|
430
|
+
X-Mailgun-Key-Id:
|
431
|
+
- 90b59dea-f2d12a53
|
432
|
+
X-Xss-Protection:
|
433
|
+
- 1; mode=block
|
434
|
+
body:
|
435
|
+
encoding: UTF-8
|
436
|
+
string: |-
|
437
|
+
{
|
438
|
+
"list": {
|
439
|
+
"access_level": "members",
|
440
|
+
"address": "integration_test_list@DOMAIN.TEST",
|
441
|
+
"created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
|
442
|
+
"description": "This list should be deleted automatically.",
|
443
|
+
"members_count": 0,
|
444
|
+
"name": "Integration Test List",
|
445
|
+
"reply_preference": "list"
|
446
|
+
},
|
447
|
+
"message": "Mailing list has been created"
|
448
|
+
}
|
449
|
+
http_version:
|
450
|
+
recorded_at: Sun, 26 Jan 2025 07:29:27 GMT
|
451
|
+
- request:
|
452
|
+
method: get
|
453
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
454
|
+
body:
|
455
|
+
encoding: US-ASCII
|
456
|
+
string: ''
|
457
|
+
headers:
|
458
|
+
User-Agent:
|
459
|
+
- mailgun-sdk-ruby/1.3.0
|
460
|
+
Accept:
|
461
|
+
- "*/*"
|
462
|
+
Authorization:
|
463
|
+
- Basic xxx==
|
464
|
+
Accept-Encoding:
|
465
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
466
|
+
response:
|
467
|
+
status:
|
468
|
+
code: 200
|
469
|
+
message: OK
|
470
|
+
headers:
|
471
|
+
Access-Control-Allow-Credentials:
|
472
|
+
- 'true'
|
473
|
+
Access-Control-Allow-Origin:
|
474
|
+
- "*"
|
475
|
+
Cache-Control:
|
476
|
+
- no-store
|
477
|
+
Content-Disposition:
|
478
|
+
- inline
|
479
|
+
Content-Length:
|
480
|
+
- '352'
|
481
|
+
Content-Type:
|
482
|
+
- application/json
|
483
|
+
Date:
|
484
|
+
- Sun, 26 Jan 2025 07:29:27 GMT
|
485
|
+
Server:
|
486
|
+
- TwistedWeb/20.3.0
|
487
|
+
Strict-Transport-Security:
|
488
|
+
- max-age=63072000; includeSubDomains
|
489
|
+
X-Mailgun-Key-Id:
|
490
|
+
- 90b59dea-f2d12a53
|
491
|
+
X-Xss-Protection:
|
492
|
+
- 1; mode=block
|
493
|
+
body:
|
494
|
+
encoding: UTF-8
|
495
|
+
string: |-
|
496
|
+
{
|
497
|
+
"list": {
|
498
|
+
"access_level": "members",
|
499
|
+
"address": "integration_test_list@DOMAIN.TEST",
|
500
|
+
"created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
|
501
|
+
"description": "This list should be deleted automatically.",
|
502
|
+
"members_count": 0,
|
503
|
+
"name": "Integration Test List",
|
504
|
+
"reply_preference": "list"
|
505
|
+
}
|
506
|
+
}
|
507
|
+
http_version:
|
508
|
+
recorded_at: Sun, 26 Jan 2025 07:29:27 GMT
|
509
|
+
- request:
|
510
|
+
method: get
|
511
|
+
uri: https://api.mailgun.net/v3/lists?limit=50
|
512
|
+
body:
|
513
|
+
encoding: US-ASCII
|
514
|
+
string: ''
|
515
|
+
headers:
|
516
|
+
User-Agent:
|
517
|
+
- mailgun-sdk-ruby/1.3.0
|
518
|
+
Accept:
|
519
|
+
- "*/*"
|
520
|
+
Authorization:
|
521
|
+
- Basic xxx==
|
522
|
+
Accept-Encoding:
|
523
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
524
|
+
response:
|
525
|
+
status:
|
526
|
+
code: 200
|
527
|
+
message: OK
|
528
|
+
headers:
|
529
|
+
Access-Control-Allow-Credentials:
|
530
|
+
- 'true'
|
531
|
+
Access-Control-Allow-Origin:
|
532
|
+
- "*"
|
533
|
+
Cache-Control:
|
534
|
+
- no-store
|
535
|
+
Content-Disposition:
|
536
|
+
- inline
|
537
|
+
Content-Length:
|
538
|
+
- '399'
|
539
|
+
Content-Type:
|
540
|
+
- application/json
|
541
|
+
Date:
|
542
|
+
- Sun, 26 Jan 2025 07:29:28 GMT
|
543
|
+
Server:
|
544
|
+
- TwistedWeb/20.3.0
|
545
|
+
Strict-Transport-Security:
|
546
|
+
- max-age=63072000; includeSubDomains
|
547
|
+
X-Mailgun-Key-Id:
|
548
|
+
- 90b59dea-f2d12a53
|
549
|
+
X-Xss-Protection:
|
550
|
+
- 1; mode=block
|
551
|
+
body:
|
552
|
+
encoding: UTF-8
|
553
|
+
string: |-
|
554
|
+
{
|
555
|
+
"items": [
|
556
|
+
{
|
557
|
+
"access_level": "members",
|
558
|
+
"address": "integration_test_list@DOMAIN.TEST",
|
559
|
+
"created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
|
560
|
+
"description": "This list should be deleted automatically.",
|
561
|
+
"members_count": 0,
|
562
|
+
"name": "Integration Test List",
|
563
|
+
"reply_preference": "list"
|
564
|
+
}
|
565
|
+
],
|
566
|
+
"total_count": 1
|
567
|
+
}
|
568
|
+
http_version:
|
569
|
+
recorded_at: Sun, 26 Jan 2025 07:29:28 GMT
|
570
|
+
- request:
|
571
|
+
method: put
|
572
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
573
|
+
body:
|
574
|
+
encoding: UTF-8
|
575
|
+
string: access_level=readonly&address=integration_test_list%40DOMAIN.TEST&description=This+list+should+be+deleted+automatically.&name=Integration+Test+List+Update
|
576
|
+
headers:
|
577
|
+
User-Agent:
|
578
|
+
- mailgun-sdk-ruby/1.3.0
|
579
|
+
Accept:
|
580
|
+
- "*/*"
|
581
|
+
Authorization:
|
582
|
+
- Basic xxx==
|
583
|
+
Content-Type:
|
584
|
+
- application/x-www-form-urlencoded
|
585
|
+
Accept-Encoding:
|
586
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
587
|
+
response:
|
588
|
+
status:
|
589
|
+
code: 200
|
590
|
+
message: OK
|
591
|
+
headers:
|
592
|
+
Access-Control-Allow-Credentials:
|
593
|
+
- 'true'
|
594
|
+
Access-Control-Allow-Origin:
|
595
|
+
- "*"
|
596
|
+
Cache-Control:
|
597
|
+
- no-store
|
598
|
+
Content-Disposition:
|
599
|
+
- inline
|
600
|
+
Content-Length:
|
601
|
+
- '406'
|
602
|
+
Content-Type:
|
603
|
+
- application/json
|
604
|
+
Date:
|
605
|
+
- Sun, 26 Jan 2025 07:29:29 GMT
|
606
|
+
Server:
|
607
|
+
- TwistedWeb/20.3.0
|
608
|
+
Strict-Transport-Security:
|
609
|
+
- max-age=63072000; includeSubDomains
|
610
|
+
X-Mailgun-Key-Id:
|
611
|
+
- 90b59dea-f2d12a53
|
612
|
+
X-Xss-Protection:
|
613
|
+
- 1; mode=block
|
614
|
+
body:
|
615
|
+
encoding: UTF-8
|
616
|
+
string: |-
|
617
|
+
{
|
618
|
+
"list": {
|
619
|
+
"access_level": "readonly",
|
620
|
+
"address": "integration_test_list@DOMAIN.TEST",
|
621
|
+
"created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
|
622
|
+
"description": "This list should be deleted automatically.",
|
623
|
+
"members_count": 0,
|
624
|
+
"name": "Integration Test List Update",
|
625
|
+
"reply_preference": "list"
|
626
|
+
},
|
627
|
+
"message": "Mailing list has been updated"
|
628
|
+
}
|
629
|
+
http_version:
|
630
|
+
recorded_at: Sun, 26 Jan 2025 07:29:29 GMT
|
631
|
+
- request:
|
632
|
+
method: delete
|
633
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
634
|
+
body:
|
635
|
+
encoding: US-ASCII
|
636
|
+
string: ''
|
637
|
+
headers:
|
638
|
+
User-Agent:
|
639
|
+
- mailgun-sdk-ruby/1.3.0
|
640
|
+
Accept:
|
641
|
+
- "*/*"
|
642
|
+
Authorization:
|
643
|
+
- Basic xxx==
|
644
|
+
Accept-Encoding:
|
645
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
646
|
+
response:
|
647
|
+
status:
|
648
|
+
code: 200
|
649
|
+
message: OK
|
650
|
+
headers:
|
651
|
+
Access-Control-Allow-Credentials:
|
652
|
+
- 'true'
|
653
|
+
Access-Control-Allow-Origin:
|
654
|
+
- "*"
|
655
|
+
Cache-Control:
|
656
|
+
- no-store
|
657
|
+
Content-Disposition:
|
658
|
+
- inline
|
659
|
+
Content-Length:
|
660
|
+
- '138'
|
661
|
+
Content-Type:
|
662
|
+
- application/json
|
663
|
+
Date:
|
664
|
+
- Sun, 26 Jan 2025 07:29:29 GMT
|
665
|
+
Server:
|
666
|
+
- TwistedWeb/20.3.0
|
667
|
+
Strict-Transport-Security:
|
668
|
+
- max-age=63072000; includeSubDomains
|
669
|
+
X-Mailgun-Key-Id:
|
670
|
+
- 90b59dea-f2d12a53
|
671
|
+
X-Xss-Protection:
|
672
|
+
- 1; mode=block
|
673
|
+
body:
|
674
|
+
encoding: UTF-8
|
675
|
+
string: |-
|
676
|
+
{
|
677
|
+
"address": "integration_test_list@DOMAIN.TEST",
|
678
|
+
"message": "Mailing list has been removed"
|
679
|
+
}
|
680
|
+
http_version:
|
681
|
+
recorded_at: Sun, 26 Jan 2025 07:29:29 GMT
|
682
|
+
recorded_with: VCR 3.0.3
|