mailgun-ruby 1.1.9 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -0
- data/.rubocop_todo.yml +0 -0
- data/.ruby-env.yml.example +0 -0
- data/.travis.yml +6 -5
- data/CHANGELOG.md +16 -0
- data/Gemfile +1 -1
- data/README.md +27 -3
- data/docs/Domains.md +3 -0
- data/docs/OptInHandler.md +1 -1
- data/docs/Snippets.md +54 -61
- data/docs/Webhooks.md +0 -0
- data/docs/railgun/Overview.md +11 -0
- data/docs/railgun/Parameters.md +83 -0
- data/docs/railgun/Templates.md +92 -0
- data/lib/mailgun/address.rb +3 -28
- data/lib/mailgun/chains.rb +0 -0
- data/lib/mailgun/client.rb +44 -9
- data/lib/mailgun/domains/domains.rb +20 -2
- data/lib/mailgun/events/events.rb +2 -2
- data/lib/mailgun/exceptions/exceptions.rb +28 -1
- data/lib/mailgun/messages/batch_message.rb +1 -0
- data/lib/mailgun/messages/message_builder.rb +56 -8
- data/lib/mailgun/response.rb +7 -0
- data/lib/mailgun/suppressions.rb +15 -8
- data/lib/mailgun/templates/templates.rb +187 -0
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun/webhooks/webhooks.rb +2 -2
- data/lib/mailgun-ruby.rb +1 -1
- data/lib/mailgun.rb +4 -1
- data/lib/railgun/mailer.rb +83 -12
- data/lib/railgun/message.rb +2 -1
- data/lib/railgun/railtie.rb +3 -2
- data/mailgun.gemspec +15 -12
- data/spec/integration/bounces_spec.rb +3 -3
- data/spec/integration/campaign_spec.rb +0 -0
- data/spec/integration/complaints_spec.rb +0 -0
- data/spec/integration/domains_spec.rb +8 -0
- data/spec/integration/email_validation_spec.rb +10 -2
- data/spec/integration/events_spec.rb +1 -1
- data/spec/integration/list_members_spec.rb +0 -0
- data/spec/integration/list_spec.rb +0 -0
- data/spec/integration/mailer_spec.rb +67 -0
- data/spec/integration/mailgun_spec.rb +92 -1
- data/spec/integration/routes_spec.rb +0 -0
- data/spec/integration/stats_spec.rb +0 -0
- data/spec/integration/suppressions_spec.rb +18 -2
- data/spec/integration/templates_spec.rb +135 -0
- data/spec/integration/unsubscribes_spec.rb +0 -0
- data/spec/integration/webhook_spec.rb +0 -0
- data/spec/spec_helper.rb +3 -1
- data/spec/unit/connection/test_client.rb +18 -1
- data/spec/unit/events/events_spec.rb +19 -0
- data/spec/unit/mailgun_spec.rb +43 -2
- data/spec/unit/messages/batch_message_spec.rb +56 -40
- data/spec/unit/messages/message_builder_spec.rb +149 -16
- data/spec/unit/messages/sample_data/unknown.type +0 -0
- data/spec/unit/railgun/mailer_spec.rb +388 -0
- data/vcr_cassettes/bounces.yml +12 -12
- data/vcr_cassettes/complaints.yml +0 -0
- data/vcr_cassettes/domains.todo.yml +0 -0
- data/vcr_cassettes/domains.yml +51 -1
- data/vcr_cassettes/email_validation.yml +5 -5
- data/vcr_cassettes/events.yml +0 -0
- data/vcr_cassettes/exceptions-invalid-api-key.yml +52 -0
- data/vcr_cassettes/exceptions-invalid-data.yml +52 -0
- data/vcr_cassettes/exceptions-not-allowed.yml +54 -0
- data/vcr_cassettes/list_members.yml +0 -0
- data/vcr_cassettes/mailer_invalid_domain.yml +109 -0
- data/vcr_cassettes/mailing_list.todo.yml +0 -0
- data/vcr_cassettes/mailing_list.yml +0 -0
- data/vcr_cassettes/message_deliver.yml +149 -0
- data/vcr_cassettes/routes.yml +0 -0
- data/vcr_cassettes/send_message.yml +0 -0
- data/vcr_cassettes/stats.yml +0 -0
- data/vcr_cassettes/suppressions.yml +66 -15
- data/vcr_cassettes/templates.yml +1065 -0
- data/vcr_cassettes/unsubscribes.yml +0 -0
- data/vcr_cassettes/webhooks.yml +0 -0
- metadata +49 -29
- data/.ruby-version +0 -1
- /data/spec/unit/{railgun_spec.rb → railgun/content_type_spec.rb} +0 -0
File without changes
|
data/vcr_cassettes/webhooks.yml
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailgun-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mailgun
|
@@ -9,106 +9,106 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-10-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 1.16.2
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 1.16.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 3.8.0
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 3.8.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 12.3.2
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 12.3.2
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: webmock
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 3.4.2
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 3.4.2
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: pry
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 0.11.3
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: 0.11.3
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: vcr
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 3.0.3
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 3.0.3
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: simplecov
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 0.16.1
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 0.16.1
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: rails
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,16 +127,16 @@ dependencies:
|
|
127
127
|
name: rest-client
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- - "
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 2.0.2
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- - "
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: 2.0.2
|
140
140
|
description: Mailgun's Official Ruby SDK for interacting with the Mailgun API.
|
141
141
|
email: support@mailgunhq.com
|
142
142
|
executables: []
|
@@ -147,8 +147,8 @@ files:
|
|
147
147
|
- ".rubocop.yml"
|
148
148
|
- ".rubocop_todo.yml"
|
149
149
|
- ".ruby-env.yml.example"
|
150
|
-
- ".ruby-version"
|
151
150
|
- ".travis.yml"
|
151
|
+
- CHANGELOG.md
|
152
152
|
- Gemfile
|
153
153
|
- LICENSE
|
154
154
|
- README.md
|
@@ -161,6 +161,9 @@ files:
|
|
161
161
|
- docs/Snippets.md
|
162
162
|
- docs/Suppressions.md
|
163
163
|
- docs/Webhooks.md
|
164
|
+
- docs/railgun/Overview.md
|
165
|
+
- docs/railgun/Parameters.md
|
166
|
+
- docs/railgun/Templates.md
|
164
167
|
- lib/mailgun-ruby.rb
|
165
168
|
- lib/mailgun.rb
|
166
169
|
- lib/mailgun/address.rb
|
@@ -174,6 +177,7 @@ files:
|
|
174
177
|
- lib/mailgun/messages/message_builder.rb
|
175
178
|
- lib/mailgun/response.rb
|
176
179
|
- lib/mailgun/suppressions.rb
|
180
|
+
- lib/mailgun/templates/templates.rb
|
177
181
|
- lib/mailgun/version.rb
|
178
182
|
- lib/mailgun/webhooks/webhooks.rb
|
179
183
|
- lib/railgun.rb
|
@@ -191,11 +195,13 @@ files:
|
|
191
195
|
- spec/integration/events_spec.rb
|
192
196
|
- spec/integration/list_members_spec.rb
|
193
197
|
- spec/integration/list_spec.rb
|
198
|
+
- spec/integration/mailer_spec.rb
|
194
199
|
- spec/integration/mailgun_spec.rb
|
195
200
|
- spec/integration/messages/sample_data/mime.txt
|
196
201
|
- spec/integration/routes_spec.rb
|
197
202
|
- spec/integration/stats_spec.rb
|
198
203
|
- spec/integration/suppressions_spec.rb
|
204
|
+
- spec/integration/templates_spec.rb
|
199
205
|
- spec/integration/unsubscribes_spec.rb
|
200
206
|
- spec/integration/webhook_spec.rb
|
201
207
|
- spec/spec_helper.rb
|
@@ -208,27 +214,37 @@ files:
|
|
208
214
|
- spec/unit/messages/sample_data/mailgun_icon.png
|
209
215
|
- spec/unit/messages/sample_data/mime.txt
|
210
216
|
- spec/unit/messages/sample_data/rackspace_logo.jpg
|
211
|
-
- spec/unit/
|
217
|
+
- spec/unit/messages/sample_data/unknown.type
|
218
|
+
- spec/unit/railgun/content_type_spec.rb
|
219
|
+
- spec/unit/railgun/mailer_spec.rb
|
212
220
|
- vcr_cassettes/bounces.yml
|
213
221
|
- vcr_cassettes/complaints.yml
|
214
222
|
- vcr_cassettes/domains.todo.yml
|
215
223
|
- vcr_cassettes/domains.yml
|
216
224
|
- vcr_cassettes/email_validation.yml
|
217
225
|
- vcr_cassettes/events.yml
|
226
|
+
- vcr_cassettes/exceptions-invalid-api-key.yml
|
227
|
+
- vcr_cassettes/exceptions-invalid-data.yml
|
228
|
+
- vcr_cassettes/exceptions-not-allowed.yml
|
218
229
|
- vcr_cassettes/exceptions.yml
|
219
230
|
- vcr_cassettes/list_members.yml
|
231
|
+
- vcr_cassettes/mailer_invalid_domain.yml
|
220
232
|
- vcr_cassettes/mailing_list.todo.yml
|
221
233
|
- vcr_cassettes/mailing_list.yml
|
234
|
+
- vcr_cassettes/message_deliver.yml
|
222
235
|
- vcr_cassettes/routes.yml
|
223
236
|
- vcr_cassettes/send_message.yml
|
224
237
|
- vcr_cassettes/stats.yml
|
225
238
|
- vcr_cassettes/suppressions.yml
|
239
|
+
- vcr_cassettes/templates.yml
|
226
240
|
- vcr_cassettes/unsubscribes.yml
|
227
241
|
- vcr_cassettes/webhooks.yml
|
228
|
-
homepage:
|
242
|
+
homepage: https://www.mailgun.com/
|
229
243
|
licenses:
|
230
244
|
- Apache-2.0
|
231
|
-
metadata:
|
245
|
+
metadata:
|
246
|
+
documentation_uri: https://documentation.mailgun.com/
|
247
|
+
source_code_uri: https://github.com/mailgun/mailgun-ruby
|
232
248
|
post_install_message:
|
233
249
|
rdoc_options: []
|
234
250
|
require_paths:
|
@@ -237,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
253
|
requirements:
|
238
254
|
- - ">="
|
239
255
|
- !ruby/object:Gem::Version
|
240
|
-
version: 2.
|
256
|
+
version: 2.2.2
|
241
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
258
|
requirements:
|
243
259
|
- - ">="
|
@@ -245,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
261
|
version: '0'
|
246
262
|
requirements: []
|
247
263
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.7.
|
264
|
+
rubygems_version: 2.7.6
|
249
265
|
signing_key:
|
250
266
|
specification_version: 4
|
251
267
|
summary: Mailgun's Official Ruby SDK
|
@@ -258,11 +274,13 @@ test_files:
|
|
258
274
|
- spec/integration/events_spec.rb
|
259
275
|
- spec/integration/list_members_spec.rb
|
260
276
|
- spec/integration/list_spec.rb
|
277
|
+
- spec/integration/mailer_spec.rb
|
261
278
|
- spec/integration/mailgun_spec.rb
|
262
279
|
- spec/integration/messages/sample_data/mime.txt
|
263
280
|
- spec/integration/routes_spec.rb
|
264
281
|
- spec/integration/stats_spec.rb
|
265
282
|
- spec/integration/suppressions_spec.rb
|
283
|
+
- spec/integration/templates_spec.rb
|
266
284
|
- spec/integration/unsubscribes_spec.rb
|
267
285
|
- spec/integration/webhook_spec.rb
|
268
286
|
- spec/spec_helper.rb
|
@@ -275,4 +293,6 @@ test_files:
|
|
275
293
|
- spec/unit/messages/sample_data/mailgun_icon.png
|
276
294
|
- spec/unit/messages/sample_data/mime.txt
|
277
295
|
- spec/unit/messages/sample_data/rackspace_logo.jpg
|
278
|
-
- spec/unit/
|
296
|
+
- spec/unit/messages/sample_data/unknown.type
|
297
|
+
- spec/unit/railgun/content_type_spec.rb
|
298
|
+
- spec/unit/railgun/mailer_spec.rb
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0-p0
|
File without changes
|