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,174 +2,136 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api
|
5
|
+
uri: https://api.mailgun.net/complaints
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: address=integration-test-email%
|
7
|
+
encoding: UTF-8
|
8
|
+
string: address=integration-test-email%40
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- mailgun-sdk-ruby/1.3.2
|
10
12
|
Accept:
|
11
|
-
- "
|
12
|
-
|
13
|
-
-
|
14
|
-
Content-Length:
|
15
|
-
- '79'
|
13
|
+
- "*/*"
|
14
|
+
Authorization:
|
15
|
+
- Basic xxx==
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
19
|
-
-
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
25
|
Date:
|
28
|
-
-
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
26
|
+
- Mon, 24 Feb 2025 23:26:19 GMT
|
31
27
|
Content-Length:
|
32
|
-
- '
|
33
|
-
Connection:
|
34
|
-
- keep-alive
|
35
|
-
Access-Control-Allow-Origin:
|
36
|
-
- "*"
|
37
|
-
Access-Control-Max-Age:
|
38
|
-
- '600'
|
39
|
-
Access-Control-Allow-Methods:
|
40
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
41
|
-
Access-Control-Allow-Headers:
|
42
|
-
- Content-Type, x-requested-with
|
28
|
+
- '0'
|
43
29
|
body:
|
44
30
|
encoding: UTF-8
|
45
|
-
string: '{"address":"integration-test-email@
|
46
|
-
|
31
|
+
string: '{"address":"integration-test-email@","message":"Address has been added
|
32
|
+
to the complaints table"}
|
33
|
+
|
34
|
+
'
|
47
35
|
http_version:
|
48
|
-
recorded_at:
|
36
|
+
recorded_at: Mon, 24 Feb 2025 23:26:19 GMT
|
49
37
|
- request:
|
50
38
|
method: get
|
51
|
-
uri: https://api
|
39
|
+
uri: https://api.mailgun.net/complaints/integration-test-email@
|
52
40
|
body:
|
53
41
|
encoding: US-ASCII
|
54
42
|
string: ''
|
55
43
|
headers:
|
44
|
+
User-Agent:
|
45
|
+
- mailgun-sdk-ruby/1.3.2
|
56
46
|
Accept:
|
57
47
|
- "*/*"
|
48
|
+
Authorization:
|
49
|
+
- Basic xxx==
|
58
50
|
Accept-Encoding:
|
59
|
-
- gzip,
|
60
|
-
User-Agent:
|
61
|
-
- Ruby
|
51
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
52
|
response:
|
63
53
|
status:
|
64
54
|
code: 200
|
65
55
|
message: OK
|
66
56
|
headers:
|
67
|
-
Server:
|
68
|
-
- nginx
|
69
57
|
Date:
|
70
|
-
-
|
71
|
-
Content-Type:
|
72
|
-
- application/json; charset=utf-8
|
58
|
+
- Mon, 24 Feb 2025 23:26:20 GMT
|
73
59
|
Content-Length:
|
74
|
-
- '
|
75
|
-
Connection:
|
76
|
-
- keep-alive
|
77
|
-
Access-Control-Allow-Origin:
|
78
|
-
- "*"
|
79
|
-
Access-Control-Max-Age:
|
80
|
-
- '600'
|
81
|
-
Access-Control-Allow-Methods:
|
82
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
83
|
-
Access-Control-Allow-Headers:
|
84
|
-
- Content-Type, x-requested-with
|
60
|
+
- '0'
|
85
61
|
body:
|
86
62
|
encoding: UTF-8
|
87
|
-
string: '{"address":"integration-test-email@
|
88
|
-
|
63
|
+
string: '{"address":"integration-test-email@","created_at":"Sun, 26 Jan 2025
|
64
|
+
07:29:06 UTC"}
|
65
|
+
|
66
|
+
'
|
89
67
|
http_version:
|
90
|
-
recorded_at:
|
68
|
+
recorded_at: Mon, 24 Feb 2025 23:26:20 GMT
|
91
69
|
- request:
|
92
70
|
method: get
|
93
|
-
uri: https://api
|
71
|
+
uri: https://api.mailgun.net/complaints
|
94
72
|
body:
|
95
73
|
encoding: US-ASCII
|
96
74
|
string: ''
|
97
75
|
headers:
|
76
|
+
User-Agent:
|
77
|
+
- mailgun-sdk-ruby/1.3.2
|
98
78
|
Accept:
|
99
79
|
- "*/*"
|
80
|
+
Authorization:
|
81
|
+
- Basic xxx
|
100
82
|
Accept-Encoding:
|
101
|
-
- gzip,
|
102
|
-
User-Agent:
|
103
|
-
- Ruby
|
83
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
84
|
response:
|
105
85
|
status:
|
106
86
|
code: 200
|
107
87
|
message: OK
|
108
88
|
headers:
|
109
|
-
Server:
|
110
|
-
- nginx
|
111
89
|
Date:
|
112
|
-
-
|
113
|
-
Content-Type:
|
114
|
-
- application/json; charset=utf-8
|
90
|
+
- Mon, 24 Feb 2025 23:26:20 GMT
|
115
91
|
Content-Length:
|
116
|
-
- '
|
117
|
-
Connection:
|
118
|
-
- keep-alive
|
119
|
-
Access-Control-Allow-Origin:
|
120
|
-
- "*"
|
121
|
-
Access-Control-Max-Age:
|
122
|
-
- '600'
|
123
|
-
Access-Control-Allow-Methods:
|
124
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
125
|
-
Access-Control-Allow-Headers:
|
126
|
-
- Content-Type, x-requested-with
|
92
|
+
- '0'
|
127
93
|
body:
|
128
94
|
encoding: UTF-8
|
129
|
-
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"
|
130
|
-
|
95
|
+
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
|
96
|
+
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="}}
|
97
|
+
|
98
|
+
'
|
131
99
|
http_version:
|
132
|
-
recorded_at:
|
100
|
+
recorded_at: Mon, 24 Feb 2025 23:26:20 GMT
|
133
101
|
- request:
|
134
102
|
method: delete
|
135
|
-
uri: https://api
|
103
|
+
uri: https://api.mailgun.net/complaints/integration-test-email@
|
136
104
|
body:
|
137
105
|
encoding: US-ASCII
|
138
106
|
string: ''
|
139
107
|
headers:
|
108
|
+
User-Agent:
|
109
|
+
- mailgun-sdk-ruby/1.3.2
|
140
110
|
Accept:
|
141
|
-
- "
|
111
|
+
- "*/*"
|
112
|
+
Authorization:
|
113
|
+
- Basic xxx==
|
142
114
|
Accept-Encoding:
|
143
|
-
- gzip,
|
144
|
-
User-Agent:
|
145
|
-
- Ruby
|
115
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
146
116
|
response:
|
147
117
|
status:
|
148
118
|
code: 200
|
149
119
|
message: OK
|
150
120
|
headers:
|
151
|
-
Server:
|
152
|
-
- nginx
|
153
|
-
Date:
|
154
|
-
- Fri, 08 Jan 2016 20:31:59 GMT
|
155
121
|
Content-Type:
|
156
|
-
-
|
122
|
+
- text/plain; charset=utf-8
|
123
|
+
X-Content-Type-Options:
|
124
|
+
- nosniff
|
125
|
+
Date:
|
126
|
+
- Mon, 24 Feb 2025 23:26:21 GMT
|
157
127
|
Content-Length:
|
158
|
-
- '
|
159
|
-
Connection:
|
160
|
-
- keep-alive
|
161
|
-
Access-Control-Allow-Origin:
|
162
|
-
- "*"
|
163
|
-
Access-Control-Max-Age:
|
164
|
-
- '600'
|
165
|
-
Access-Control-Allow-Methods:
|
166
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
167
|
-
Access-Control-Allow-Headers:
|
168
|
-
- Content-Type, x-requested-with
|
128
|
+
- '19'
|
169
129
|
body:
|
170
130
|
encoding: UTF-8
|
171
|
-
string: '{"address":"integration-test-email@
|
172
|
-
|
131
|
+
string: '{"address":"integration-test-email@","message":"Spam complaint has
|
132
|
+
been removed"}
|
133
|
+
|
134
|
+
'
|
173
135
|
http_version:
|
174
136
|
recorded_at: Fri, 08 Jan 2016 20:32:00 GMT
|
175
137
|
- request:
|
@@ -201,21 +163,13 @@ http_interactions:
|
|
201
163
|
Cache-Control:
|
202
164
|
- no-store
|
203
165
|
Content-Length:
|
204
|
-
- '
|
166
|
+
- '40'
|
205
167
|
Content-Type:
|
206
168
|
- application/json; charset=utf-8
|
207
169
|
Date:
|
208
|
-
-
|
170
|
+
- Tue, 25 Feb 2025 01:31:44 GMT
|
209
171
|
Strict-Transport-Security:
|
210
172
|
- 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
173
|
X-Xss-Protection:
|
220
174
|
- 1; mode=block
|
221
175
|
body:
|
@@ -225,7 +179,7 @@ http_interactions:
|
|
225
179
|
|
226
180
|
'
|
227
181
|
http_version:
|
228
|
-
recorded_at:
|
182
|
+
recorded_at: Tue, 25 Feb 2025 01:31:44 GMT
|
229
183
|
- request:
|
230
184
|
method: get
|
231
185
|
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
|
@@ -234,7 +188,7 @@ http_interactions:
|
|
234
188
|
string: ''
|
235
189
|
headers:
|
236
190
|
User-Agent:
|
237
|
-
- mailgun-sdk-ruby/1.3.
|
191
|
+
- mailgun-sdk-ruby/1.3.2
|
238
192
|
Accept:
|
239
193
|
- "*/*"
|
240
194
|
Authorization:
|
@@ -260,14 +214,6 @@ http_interactions:
|
|
260
214
|
- Sun, 26 Jan 2025 07:29:07 GMT
|
261
215
|
Strict-Transport-Security:
|
262
216
|
- 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
217
|
X-Xss-Protection:
|
272
218
|
- 1; mode=block
|
273
219
|
body:
|
@@ -312,14 +258,6 @@ http_interactions:
|
|
312
258
|
- Sun, 26 Jan 2025 07:29:08 GMT
|
313
259
|
Strict-Transport-Security:
|
314
260
|
- 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
261
|
X-Xss-Protection:
|
324
262
|
- 1; mode=block
|
325
263
|
body:
|
@@ -338,7 +276,7 @@ http_interactions:
|
|
338
276
|
string: ''
|
339
277
|
headers:
|
340
278
|
User-Agent:
|
341
|
-
- mailgun-sdk-ruby/1.3.
|
279
|
+
- mailgun-sdk-ruby/1.3.2
|
342
280
|
Accept:
|
343
281
|
- "*/*"
|
344
282
|
Authorization:
|
@@ -364,14 +302,6 @@ http_interactions:
|
|
364
302
|
- Sun, 26 Jan 2025 07:29:08 GMT
|
365
303
|
Strict-Transport-Security:
|
366
304
|
- 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
305
|
X-Xss-Protection:
|
376
306
|
- 1; mode=block
|
377
307
|
body:
|
@@ -381,5 +311,5 @@ http_interactions:
|
|
381
311
|
|
382
312
|
'
|
383
313
|
http_version:
|
384
|
-
recorded_at:
|
314
|
+
recorded_at: Tue, 25 Feb 2025 01:31:45 GMT
|
385
315
|
recorded_with: VCR 3.0.3
|