mailgun-ruby 1.3.2 → 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/lib/mailgun/client.rb +1 -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/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/stats.yml +3 -44
- data/vcr_cassettes/suppressions.yml +159 -1162
- data/vcr_cassettes/unsubscribes.yml +4 -4
- metadata +35 -10
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api
|
5
|
+
uri: https://api.mailgun.net/v3/lists
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List&description=This%20list%20should%20be%20deleted%20automatically.&access_level=members
|
@@ -60,7 +60,7 @@ http_interactions:
|
|
60
60
|
recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
|
61
61
|
- request:
|
62
62
|
method: get
|
63
|
-
uri: https://api
|
63
|
+
uri: https://api.mailgun.net/v3/lists/
|
64
64
|
body:
|
65
65
|
encoding: US-ASCII
|
66
66
|
string: ''
|
@@ -97,7 +97,7 @@ http_interactions:
|
|
97
97
|
recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
|
98
98
|
- request:
|
99
99
|
method: get
|
100
|
-
uri: https://api
|
100
|
+
uri: https://api.mailgun.net/v3/lists?limit=50
|
101
101
|
body:
|
102
102
|
encoding: US-ASCII
|
103
103
|
string: ''
|
@@ -153,7 +153,7 @@ http_interactions:
|
|
153
153
|
recorded_at: Fri, 08 Jan 2016 20:22:44 GMT
|
154
154
|
- request:
|
155
155
|
method: put
|
156
|
-
uri: https://api
|
156
|
+
uri: https://api.mailgun.net/v3/lists/
|
157
157
|
body:
|
158
158
|
encoding: US-ASCII
|
159
159
|
string: address=&name=Integration%20Test%20List%20Update&description=This%20list%20should%20be%20deleted%20automatically.&access_level=readonly
|
@@ -194,7 +194,7 @@ http_interactions:
|
|
194
194
|
recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
|
195
195
|
- request:
|
196
196
|
method: delete
|
197
|
-
uri: https://api
|
197
|
+
uri: https://api.mailgun.net/v3/lists/
|
198
198
|
body:
|
199
199
|
encoding: US-ASCII
|
200
200
|
string: ''
|
@@ -231,7 +231,7 @@ http_interactions:
|
|
231
231
|
recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
|
232
232
|
- request:
|
233
233
|
method: get
|
234
|
-
uri: https://api
|
234
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
235
235
|
body:
|
236
236
|
encoding: US-ASCII
|
237
237
|
string: ''
|
@@ -284,7 +284,7 @@ http_interactions:
|
|
284
284
|
recorded_at: Fri, 08 Jan 2016 20:23:02 GMT
|
285
285
|
- request:
|
286
286
|
method: put
|
287
|
-
uri: https://api
|
287
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
288
288
|
body:
|
289
289
|
encoding: US-ASCII
|
290
290
|
string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List%20Update&description=This%20list%20should%20be%20deleted%20automatically.&access_level=readonly
|
@@ -342,7 +342,7 @@ http_interactions:
|
|
342
342
|
recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
|
343
343
|
- request:
|
344
344
|
method: delete
|
345
|
-
uri: https://api
|
345
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
346
346
|
body:
|
347
347
|
encoding: US-ASCII
|
348
348
|
string: ''
|
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:
|