mailgun-ruby 1.3.1 → 1.3.3
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/.gitignore +1 -0
- data/CHANGELOG.md +27 -0
- data/README.md +1 -2
- data/docs/MessageBuilder.md +12 -0
- data/lib/mailgun/client.rb +2 -0
- data/lib/mailgun/domains/domains.rb +19 -0
- data/lib/mailgun/messages/message_builder.rb +12 -1
- data/lib/mailgun/version.rb +1 -1
- data/mailgun.gemspec +4 -2
- data/spec/integration/domains_spec.rb +95 -92
- data/spec/integration/email_validation_spec.rb +2 -1
- data/spec/integration/list_spec.rb +1 -1
- data/spec/integration/mailer_spec.rb +5 -5
- data/spec/integration/mailgun_spec.rb +9 -7
- data/spec/integration/routes_spec.rb +17 -1
- data/spec/integration/stats_spec.rb +1 -1
- data/spec/integration/unsubscribes_spec.rb +2 -2
- data/spec/integration/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/events/events_spec.rb +1 -1
- data/spec/unit/messages/message_builder_spec.rb +1 -1
- data/vcr_cassettes/bounces.yml +29 -277
- data/vcr_cassettes/complaints.yml +66 -136
- data/vcr_cassettes/domains.yml +288 -1451
- data/vcr_cassettes/email_validation.yml +37 -229
- data/vcr_cassettes/events.yml +20 -792
- data/vcr_cassettes/exceptions.yml +1 -1
- data/vcr_cassettes/list_members.yml +66 -394
- data/vcr_cassettes/mailing_list.yml +8 -8
- data/vcr_cassettes/routes.yml +90 -398
- data/vcr_cassettes/stats.yml +3 -44
- data/vcr_cassettes/suppressions.yml +159 -1162
- data/vcr_cassettes/unsubscribes.yml +4 -4
- metadata +35 -11
- data/docs/Messages.md +0 -107
data/vcr_cassettes/stats.yml
CHANGED
@@ -1,46 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api:<APIKEY>@api.mailgun.net/v3/DOMAIN.TEST/stats?event=sent&limit=50&skip=10
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- nginx
|
23
|
-
Date:
|
24
|
-
- Thu, 07 Jan 2016 22:08:06 GMT
|
25
|
-
Content-Type:
|
26
|
-
- application/json; charset=utf-8
|
27
|
-
Content-Length:
|
28
|
-
- '32'
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Access-Control-Allow-Origin:
|
32
|
-
- "*"
|
33
|
-
Access-Control-Max-Age:
|
34
|
-
- '600'
|
35
|
-
Access-Control-Allow-Methods:
|
36
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
37
|
-
Access-Control-Allow-Headers:
|
38
|
-
- Content-Type, x-requested-with
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"items":[],"total_count":10000}'
|
42
|
-
http_version:
|
43
|
-
recorded_at: Thu, 07 Jan 2016 22:08:06 GMT
|
44
3
|
- request:
|
45
4
|
method: get
|
46
5
|
uri: https://api.mailgun.net/v3/DOMAIN.TEST/stats?event=sent&limit=50&skip=10
|
@@ -58,8 +17,8 @@ http_interactions:
|
|
58
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
18
|
response:
|
60
19
|
status:
|
61
|
-
code:
|
62
|
-
message:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
63
22
|
headers:
|
64
23
|
Access-Control-Allow-Credentials:
|
65
24
|
- 'true'
|
@@ -81,7 +40,7 @@ http_interactions:
|
|
81
40
|
- 1; mode=block
|
82
41
|
body:
|
83
42
|
encoding: UTF-8
|
84
|
-
string: '
|
43
|
+
string: '{"items":[],"total_count":10000}
|
85
44
|
|
86
45
|
'
|
87
46
|
http_version:
|