mailgun-ruby 1.4.5 → 1.4.6
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 +17 -1
- data/README.md +3 -1
- data/lib/mailgun/api_keys/api_keys.rb +2 -2
- data/lib/mailgun/client.rb +1 -1
- data/lib/mailgun/domains/domain_keys.rb +5 -5
- data/lib/mailgun/domains/domains.rb +12 -9
- data/lib/mailgun/events/events.rb +1 -1
- data/lib/mailgun/helpers/api_version_checker.rb +23 -12
- data/lib/mailgun/helpers/deprecation.rb +32 -0
- data/lib/mailgun/lists/mailing_lists.rb +250 -0
- data/lib/mailgun/messages/message_builder.rb +17 -7
- data/lib/mailgun/response.rb +1 -1
- data/lib/mailgun/routes/routes.rb +98 -0
- data/lib/mailgun/tags/analytics_tags.rb +2 -2
- data/lib/mailgun/tags/tags.rb +16 -8
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun/webhooks/account_webhooks.rb +2 -2
- data/lib/mailgun/webhooks/webhooks.rb +17 -9
- data/lib/mailgun.rb +1 -0
- metadata +6 -326
- data/.github/workflows/ci.yml +0 -49
- data/.github_changelog_generator +0 -1
- data/.gitignore +0 -24
- data/.rubocop.yml +0 -68
- data/.ruby-env.yml.example +0 -13
- data/Gemfile +0 -9
- data/Rakefile +0 -32
- data/docs/AccountWebhooks.md +0 -55
- data/docs/AnalyticsTags.md +0 -63
- data/docs/ApiKeys.md +0 -65
- data/docs/DomainKeys.md +0 -49
- data/docs/Domains.md +0 -82
- data/docs/EmailValidation.md +0 -34
- data/docs/Events.md +0 -48
- data/docs/Logs.md +0 -67
- data/docs/MessageBuilder.md +0 -120
- data/docs/Metrics.md +0 -108
- data/docs/OptInHandler.md +0 -103
- data/docs/Snippets.md +0 -519
- data/docs/Subaccounts.md +0 -68
- data/docs/Suppressions.md +0 -92
- data/docs/Templates.md +0 -92
- data/docs/Webhooks.md +0 -65
- data/docs/railgun/EmailValidation.md +0 -34
- data/docs/railgun/Overview.md +0 -11
- data/docs/railgun/Parameters.md +0 -83
- data/mailgun.gemspec +0 -47
- data/spec/integration/account_webhooks_spec.rb +0 -57
- data/spec/integration/analytics_tags_spec.rb +0 -54
- data/spec/integration/api_keys_spec.rb +0 -50
- data/spec/integration/bounces_spec.rb +0 -45
- data/spec/integration/campaign_spec.rb +0 -62
- data/spec/integration/complaints_spec.rb +0 -40
- data/spec/integration/domain_keys_spec.rb +0 -124
- data/spec/integration/domains_spec.rb +0 -201
- data/spec/integration/email_validation_spec.rb +0 -73
- data/spec/integration/events_spec.rb +0 -28
- data/spec/integration/list_members_spec.rb +0 -64
- data/spec/integration/list_spec.rb +0 -59
- data/spec/integration/logs_spec.rb +0 -105
- data/spec/integration/mailer_spec.rb +0 -65
- data/spec/integration/mailgun_spec.rb +0 -198
- data/spec/integration/messages/sample_data/mime.txt +0 -38
- data/spec/integration/metrics_spec.rb +0 -224
- data/spec/integration/routes_spec.rb +0 -91
- data/spec/integration/stats_spec.rb +0 -17
- data/spec/integration/subaccounts_spec.rb +0 -57
- data/spec/integration/suppressions_spec.rb +0 -320
- data/spec/integration/templates_spec.rb +0 -137
- data/spec/integration/unsubscribes_spec.rb +0 -44
- data/spec/integration/webhook_spec.rb +0 -79
- data/spec/spec_helper.rb +0 -53
- data/spec/unit/client_spec.rb +0 -448
- data/spec/unit/connection/test_client.rb +0 -169
- data/spec/unit/events/events_spec.rb +0 -88
- data/spec/unit/exceptions/exceptions_spec.rb +0 -31
- data/spec/unit/helpers/api_version_checker_spec.rb +0 -206
- data/spec/unit/lists/opt_in_handler_spec.rb +0 -28
- data/spec/unit/mailgun_spec.rb +0 -171
- data/spec/unit/messages/batch_message_spec.rb +0 -148
- data/spec/unit/messages/message_builder_spec.rb +0 -745
- data/spec/unit/messages/sample_data/mailgun_icon.png +0 -0
- data/spec/unit/messages/sample_data/mime.txt +0 -38
- data/spec/unit/messages/sample_data/rackspace_logo.jpg +0 -0
- data/spec/unit/messages/sample_data/unknown.type +0 -0
- data/spec/unit/railgun/content_type_spec.rb +0 -89
- data/spec/unit/railgun/mailer_spec.rb +0 -391
- data/spec/unit/response_spec.rb +0 -225
- data/spec/unit/webhooks_spec.rb +0 -121
- data/vcr_cassettes/For_the_suppressions_handling_class/creates_a_single_bounce.yml +0 -55
- data/vcr_cassettes/account_webhooks.yml +0 -269
- data/vcr_cassettes/analytics_tags.yml +0 -187
- data/vcr_cassettes/api_keys.yml +0 -212
- data/vcr_cassettes/bounces.yml +0 -136
- data/vcr_cassettes/complaints.yml +0 -315
- data/vcr_cassettes/domains.todo.yml +0 -42
- data/vcr_cassettes/domains.yml +0 -1243
- data/vcr_cassettes/email_validation.yml +0 -152
- data/vcr_cassettes/events.yml +0 -69
- data/vcr_cassettes/exceptions-invalid-api-key.yml +0 -52
- data/vcr_cassettes/exceptions-invalid-data.yml +0 -52
- data/vcr_cassettes/exceptions-not-allowed.yml +0 -54
- data/vcr_cassettes/exceptions.yml +0 -92
- data/vcr_cassettes/list_members.yml +0 -328
- data/vcr_cassettes/logs.yml +0 -53
- data/vcr_cassettes/mailer_invalid_domain.yml +0 -109
- data/vcr_cassettes/mailing_list.todo.yml +0 -43
- data/vcr_cassettes/mailing_list.yml +0 -682
- data/vcr_cassettes/message_deliver.yml +0 -149
- data/vcr_cassettes/metrics.yml +0 -116
- data/vcr_cassettes/routes.yml +0 -359
- data/vcr_cassettes/send_message.yml +0 -158
- data/vcr_cassettes/stats.yml +0 -48
- data/vcr_cassettes/subaccounts.yml +0 -270
- data/vcr_cassettes/suppressions.yml +0 -1392
- data/vcr_cassettes/templates.yml +0 -1065
- data/vcr_cassettes/unsubscribes.yml +0 -401
- data/vcr_cassettes/webhooks.yml +0 -246
- data/vcr_cassettes/webhooks_v4.yml +0 -275
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.
|
|
4
|
+
version: 1.4.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mailgun
|
|
@@ -10,188 +10,6 @@ bindir: bin
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.16.2
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.16.2
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: pry
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.16.0
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.16.0
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rails
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ">="
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rake
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 13.3.1
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 13.3.1
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rspec
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 3.13.0
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 3.13.0
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rspec-its
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 2.0.0
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 2.0.0
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rubocop
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-rake
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: rubocop-rspec
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: simplecov
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - ">="
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '0'
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - ">="
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '0'
|
|
153
|
-
- !ruby/object:Gem::Dependency
|
|
154
|
-
name: simplecov-json
|
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
|
156
|
-
requirements:
|
|
157
|
-
- - ">="
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: '0'
|
|
160
|
-
type: :development
|
|
161
|
-
prerelease: false
|
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
-
requirements:
|
|
164
|
-
- - ">="
|
|
165
|
-
- !ruby/object:Gem::Version
|
|
166
|
-
version: '0'
|
|
167
|
-
- !ruby/object:Gem::Dependency
|
|
168
|
-
name: vcr
|
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
|
170
|
-
requirements:
|
|
171
|
-
- - "~>"
|
|
172
|
-
- !ruby/object:Gem::Version
|
|
173
|
-
version: 6.4.0
|
|
174
|
-
type: :development
|
|
175
|
-
prerelease: false
|
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
177
|
-
requirements:
|
|
178
|
-
- - "~>"
|
|
179
|
-
- !ruby/object:Gem::Version
|
|
180
|
-
version: 6.4.0
|
|
181
|
-
- !ruby/object:Gem::Dependency
|
|
182
|
-
name: webmock
|
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
|
184
|
-
requirements:
|
|
185
|
-
- - "~>"
|
|
186
|
-
- !ruby/object:Gem::Version
|
|
187
|
-
version: '3.7'
|
|
188
|
-
type: :development
|
|
189
|
-
prerelease: false
|
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
-
requirements:
|
|
192
|
-
- - "~>"
|
|
193
|
-
- !ruby/object:Gem::Version
|
|
194
|
-
version: '3.7'
|
|
195
13
|
- !ruby/object:Gem::Dependency
|
|
196
14
|
name: faraday
|
|
197
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -254,35 +72,9 @@ executables: []
|
|
|
254
72
|
extensions: []
|
|
255
73
|
extra_rdoc_files: []
|
|
256
74
|
files:
|
|
257
|
-
- ".github/workflows/ci.yml"
|
|
258
|
-
- ".github_changelog_generator"
|
|
259
|
-
- ".gitignore"
|
|
260
|
-
- ".rubocop.yml"
|
|
261
|
-
- ".ruby-env.yml.example"
|
|
262
75
|
- CHANGELOG.md
|
|
263
|
-
- Gemfile
|
|
264
76
|
- LICENSE
|
|
265
77
|
- README.md
|
|
266
|
-
- Rakefile
|
|
267
|
-
- docs/AccountWebhooks.md
|
|
268
|
-
- docs/AnalyticsTags.md
|
|
269
|
-
- docs/ApiKeys.md
|
|
270
|
-
- docs/DomainKeys.md
|
|
271
|
-
- docs/Domains.md
|
|
272
|
-
- docs/EmailValidation.md
|
|
273
|
-
- docs/Events.md
|
|
274
|
-
- docs/Logs.md
|
|
275
|
-
- docs/MessageBuilder.md
|
|
276
|
-
- docs/Metrics.md
|
|
277
|
-
- docs/OptInHandler.md
|
|
278
|
-
- docs/Snippets.md
|
|
279
|
-
- docs/Subaccounts.md
|
|
280
|
-
- docs/Suppressions.md
|
|
281
|
-
- docs/Templates.md
|
|
282
|
-
- docs/Webhooks.md
|
|
283
|
-
- docs/railgun/EmailValidation.md
|
|
284
|
-
- docs/railgun/Overview.md
|
|
285
|
-
- docs/railgun/Parameters.md
|
|
286
78
|
- lib/mailgun-ruby.rb
|
|
287
79
|
- lib/mailgun.rb
|
|
288
80
|
- lib/mailgun/address.rb
|
|
@@ -294,12 +86,15 @@ files:
|
|
|
294
86
|
- lib/mailgun/events/events.rb
|
|
295
87
|
- lib/mailgun/exceptions/exceptions.rb
|
|
296
88
|
- lib/mailgun/helpers/api_version_checker.rb
|
|
89
|
+
- lib/mailgun/helpers/deprecation.rb
|
|
90
|
+
- lib/mailgun/lists/mailing_lists.rb
|
|
297
91
|
- lib/mailgun/lists/opt_in_handler.rb
|
|
298
92
|
- lib/mailgun/logs/logs.rb
|
|
299
93
|
- lib/mailgun/messages/batch_message.rb
|
|
300
94
|
- lib/mailgun/messages/message_builder.rb
|
|
301
95
|
- lib/mailgun/metrics/metrics.rb
|
|
302
96
|
- lib/mailgun/response.rb
|
|
97
|
+
- lib/mailgun/routes/routes.rb
|
|
303
98
|
- lib/mailgun/subaccounts/subaccounts.rb
|
|
304
99
|
- lib/mailgun/suppressions.rb
|
|
305
100
|
- lib/mailgun/tags/analytics_tags.rb
|
|
@@ -313,79 +108,6 @@ files:
|
|
|
313
108
|
- lib/railgun/errors.rb
|
|
314
109
|
- lib/railgun/mailer.rb
|
|
315
110
|
- lib/railgun/railtie.rb
|
|
316
|
-
- mailgun.gemspec
|
|
317
|
-
- spec/integration/account_webhooks_spec.rb
|
|
318
|
-
- spec/integration/analytics_tags_spec.rb
|
|
319
|
-
- spec/integration/api_keys_spec.rb
|
|
320
|
-
- spec/integration/bounces_spec.rb
|
|
321
|
-
- spec/integration/campaign_spec.rb
|
|
322
|
-
- spec/integration/complaints_spec.rb
|
|
323
|
-
- spec/integration/domain_keys_spec.rb
|
|
324
|
-
- spec/integration/domains_spec.rb
|
|
325
|
-
- spec/integration/email_validation_spec.rb
|
|
326
|
-
- spec/integration/events_spec.rb
|
|
327
|
-
- spec/integration/list_members_spec.rb
|
|
328
|
-
- spec/integration/list_spec.rb
|
|
329
|
-
- spec/integration/logs_spec.rb
|
|
330
|
-
- spec/integration/mailer_spec.rb
|
|
331
|
-
- spec/integration/mailgun_spec.rb
|
|
332
|
-
- spec/integration/messages/sample_data/mime.txt
|
|
333
|
-
- spec/integration/metrics_spec.rb
|
|
334
|
-
- spec/integration/routes_spec.rb
|
|
335
|
-
- spec/integration/stats_spec.rb
|
|
336
|
-
- spec/integration/subaccounts_spec.rb
|
|
337
|
-
- spec/integration/suppressions_spec.rb
|
|
338
|
-
- spec/integration/templates_spec.rb
|
|
339
|
-
- spec/integration/unsubscribes_spec.rb
|
|
340
|
-
- spec/integration/webhook_spec.rb
|
|
341
|
-
- spec/spec_helper.rb
|
|
342
|
-
- spec/unit/client_spec.rb
|
|
343
|
-
- spec/unit/connection/test_client.rb
|
|
344
|
-
- spec/unit/events/events_spec.rb
|
|
345
|
-
- spec/unit/exceptions/exceptions_spec.rb
|
|
346
|
-
- spec/unit/helpers/api_version_checker_spec.rb
|
|
347
|
-
- spec/unit/lists/opt_in_handler_spec.rb
|
|
348
|
-
- spec/unit/mailgun_spec.rb
|
|
349
|
-
- spec/unit/messages/batch_message_spec.rb
|
|
350
|
-
- spec/unit/messages/message_builder_spec.rb
|
|
351
|
-
- spec/unit/messages/sample_data/mailgun_icon.png
|
|
352
|
-
- spec/unit/messages/sample_data/mime.txt
|
|
353
|
-
- spec/unit/messages/sample_data/rackspace_logo.jpg
|
|
354
|
-
- spec/unit/messages/sample_data/unknown.type
|
|
355
|
-
- spec/unit/railgun/content_type_spec.rb
|
|
356
|
-
- spec/unit/railgun/mailer_spec.rb
|
|
357
|
-
- spec/unit/response_spec.rb
|
|
358
|
-
- spec/unit/webhooks_spec.rb
|
|
359
|
-
- vcr_cassettes/For_the_suppressions_handling_class/creates_a_single_bounce.yml
|
|
360
|
-
- vcr_cassettes/account_webhooks.yml
|
|
361
|
-
- vcr_cassettes/analytics_tags.yml
|
|
362
|
-
- vcr_cassettes/api_keys.yml
|
|
363
|
-
- vcr_cassettes/bounces.yml
|
|
364
|
-
- vcr_cassettes/complaints.yml
|
|
365
|
-
- vcr_cassettes/domains.todo.yml
|
|
366
|
-
- vcr_cassettes/domains.yml
|
|
367
|
-
- vcr_cassettes/email_validation.yml
|
|
368
|
-
- vcr_cassettes/events.yml
|
|
369
|
-
- vcr_cassettes/exceptions-invalid-api-key.yml
|
|
370
|
-
- vcr_cassettes/exceptions-invalid-data.yml
|
|
371
|
-
- vcr_cassettes/exceptions-not-allowed.yml
|
|
372
|
-
- vcr_cassettes/exceptions.yml
|
|
373
|
-
- vcr_cassettes/list_members.yml
|
|
374
|
-
- vcr_cassettes/logs.yml
|
|
375
|
-
- vcr_cassettes/mailer_invalid_domain.yml
|
|
376
|
-
- vcr_cassettes/mailing_list.todo.yml
|
|
377
|
-
- vcr_cassettes/mailing_list.yml
|
|
378
|
-
- vcr_cassettes/message_deliver.yml
|
|
379
|
-
- vcr_cassettes/metrics.yml
|
|
380
|
-
- vcr_cassettes/routes.yml
|
|
381
|
-
- vcr_cassettes/send_message.yml
|
|
382
|
-
- vcr_cassettes/stats.yml
|
|
383
|
-
- vcr_cassettes/subaccounts.yml
|
|
384
|
-
- vcr_cassettes/suppressions.yml
|
|
385
|
-
- vcr_cassettes/templates.yml
|
|
386
|
-
- vcr_cassettes/unsubscribes.yml
|
|
387
|
-
- vcr_cassettes/webhooks.yml
|
|
388
|
-
- vcr_cassettes/webhooks_v4.yml
|
|
389
111
|
homepage: https://www.mailgun.com/
|
|
390
112
|
licenses:
|
|
391
113
|
- Apache-2.0
|
|
@@ -406,49 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
406
128
|
- !ruby/object:Gem::Version
|
|
407
129
|
version: '0'
|
|
408
130
|
requirements: []
|
|
409
|
-
rubygems_version:
|
|
131
|
+
rubygems_version: 3.6.9
|
|
410
132
|
specification_version: 4
|
|
411
133
|
summary: Mailgun's Official Ruby SDK
|
|
412
|
-
test_files:
|
|
413
|
-
- spec/integration/account_webhooks_spec.rb
|
|
414
|
-
- spec/integration/analytics_tags_spec.rb
|
|
415
|
-
- spec/integration/api_keys_spec.rb
|
|
416
|
-
- spec/integration/bounces_spec.rb
|
|
417
|
-
- spec/integration/campaign_spec.rb
|
|
418
|
-
- spec/integration/complaints_spec.rb
|
|
419
|
-
- spec/integration/domain_keys_spec.rb
|
|
420
|
-
- spec/integration/domains_spec.rb
|
|
421
|
-
- spec/integration/email_validation_spec.rb
|
|
422
|
-
- spec/integration/events_spec.rb
|
|
423
|
-
- spec/integration/list_members_spec.rb
|
|
424
|
-
- spec/integration/list_spec.rb
|
|
425
|
-
- spec/integration/logs_spec.rb
|
|
426
|
-
- spec/integration/mailer_spec.rb
|
|
427
|
-
- spec/integration/mailgun_spec.rb
|
|
428
|
-
- spec/integration/messages/sample_data/mime.txt
|
|
429
|
-
- spec/integration/metrics_spec.rb
|
|
430
|
-
- spec/integration/routes_spec.rb
|
|
431
|
-
- spec/integration/stats_spec.rb
|
|
432
|
-
- spec/integration/subaccounts_spec.rb
|
|
433
|
-
- spec/integration/suppressions_spec.rb
|
|
434
|
-
- spec/integration/templates_spec.rb
|
|
435
|
-
- spec/integration/unsubscribes_spec.rb
|
|
436
|
-
- spec/integration/webhook_spec.rb
|
|
437
|
-
- spec/spec_helper.rb
|
|
438
|
-
- spec/unit/client_spec.rb
|
|
439
|
-
- spec/unit/connection/test_client.rb
|
|
440
|
-
- spec/unit/events/events_spec.rb
|
|
441
|
-
- spec/unit/exceptions/exceptions_spec.rb
|
|
442
|
-
- spec/unit/helpers/api_version_checker_spec.rb
|
|
443
|
-
- spec/unit/lists/opt_in_handler_spec.rb
|
|
444
|
-
- spec/unit/mailgun_spec.rb
|
|
445
|
-
- spec/unit/messages/batch_message_spec.rb
|
|
446
|
-
- spec/unit/messages/message_builder_spec.rb
|
|
447
|
-
- spec/unit/messages/sample_data/mailgun_icon.png
|
|
448
|
-
- spec/unit/messages/sample_data/mime.txt
|
|
449
|
-
- spec/unit/messages/sample_data/rackspace_logo.jpg
|
|
450
|
-
- spec/unit/messages/sample_data/unknown.type
|
|
451
|
-
- spec/unit/railgun/content_type_spec.rb
|
|
452
|
-
- spec/unit/railgun/mailer_spec.rb
|
|
453
|
-
- spec/unit/response_spec.rb
|
|
454
|
-
- spec/unit/webhooks_spec.rb
|
|
134
|
+
test_files: []
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ "master" ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ "master" ]
|
|
8
|
-
|
|
9
|
-
permissions:
|
|
10
|
-
contents: read
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
test:
|
|
14
|
-
permissions: write-all
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
strategy:
|
|
17
|
-
matrix:
|
|
18
|
-
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4', '4.0' ]
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v6
|
|
22
|
-
- name: Set up Ruby
|
|
23
|
-
uses: ruby/setup-ruby@v1
|
|
24
|
-
with:
|
|
25
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
26
|
-
bundler-cache: true
|
|
27
|
-
- name: Run tests
|
|
28
|
-
run: bundle exec rake spec:all
|
|
29
|
-
- uses: joshmfrankel/simplecov-check-action@main
|
|
30
|
-
with:
|
|
31
|
-
minimum_suite_coverage: 95
|
|
32
|
-
minimum_file_coverage: 80
|
|
33
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
-
if: matrix.ruby-version == '4.0'
|
|
35
|
-
|
|
36
|
-
rubocop:
|
|
37
|
-
permissions: write-all
|
|
38
|
-
runs-on: ubuntu-latest
|
|
39
|
-
|
|
40
|
-
steps:
|
|
41
|
-
- uses: actions/checkout@v6
|
|
42
|
-
- name: Set up Ruby
|
|
43
|
-
uses: ruby/setup-ruby@v1
|
|
44
|
-
with:
|
|
45
|
-
ruby-version: '4.0'
|
|
46
|
-
bundler-cache: true
|
|
47
|
-
- name: Run rubocop
|
|
48
|
-
run: |
|
|
49
|
-
bundle exec rubocop --format github
|
data/.github_changelog_generator
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
unreleased=false
|
data/.gitignore
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
.bundle
|
|
4
|
-
.config
|
|
5
|
-
.yardoc
|
|
6
|
-
Gemfile.lock
|
|
7
|
-
InstalledFiles
|
|
8
|
-
_yardoc
|
|
9
|
-
coverage
|
|
10
|
-
doc/
|
|
11
|
-
lib/bundler/man
|
|
12
|
-
pkg
|
|
13
|
-
rdoc
|
|
14
|
-
spec/reports
|
|
15
|
-
test/tmp
|
|
16
|
-
test/version_tmp
|
|
17
|
-
tmp
|
|
18
|
-
.DS_Store
|
|
19
|
-
test.rb
|
|
20
|
-
ruby
|
|
21
|
-
.ruby-env.yml
|
|
22
|
-
.rspec-local
|
|
23
|
-
.tool-versions
|
|
24
|
-
.idea
|
data/.rubocop.yml
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
NewCops: disable
|
|
3
|
-
SuggestExtensions: false
|
|
4
|
-
|
|
5
|
-
plugins:
|
|
6
|
-
- rubocop-rspec
|
|
7
|
-
- rubocop-rake
|
|
8
|
-
|
|
9
|
-
# temporary disable main codebase errors
|
|
10
|
-
Metrics/MethodLength:
|
|
11
|
-
Enabled: false
|
|
12
|
-
Metrics/BlockLength:
|
|
13
|
-
Enabled: false
|
|
14
|
-
Metrics/ClassLength:
|
|
15
|
-
Enabled: false
|
|
16
|
-
Metrics/CyclomaticComplexity:
|
|
17
|
-
Enabled: false
|
|
18
|
-
Metrics/PerceivedComplexity:
|
|
19
|
-
Enabled: false
|
|
20
|
-
Metrics/AbcSize:
|
|
21
|
-
Enabled: false
|
|
22
|
-
Metrics/ParameterLists:
|
|
23
|
-
Enabled: false
|
|
24
|
-
Lint/MissingSuper:
|
|
25
|
-
Enabled: false
|
|
26
|
-
Style/Documentation:
|
|
27
|
-
Enabled: false
|
|
28
|
-
Style/OptionalBooleanParameter:
|
|
29
|
-
Enabled: false
|
|
30
|
-
Naming/FileName:
|
|
31
|
-
Exclude:
|
|
32
|
-
- 'lib/mailgun-ruby.rb'
|
|
33
|
-
|
|
34
|
-
# temporary disable rspec errors
|
|
35
|
-
RSpec/MultipleExpectations:
|
|
36
|
-
Enabled: false
|
|
37
|
-
RSpec/ExampleLength:
|
|
38
|
-
Enabled: false
|
|
39
|
-
RSpec/InstanceVariable:
|
|
40
|
-
Enabled: false
|
|
41
|
-
RSpec/MultipleMemoizedHelpers:
|
|
42
|
-
Enabled: false
|
|
43
|
-
RSpec/StubbedMock:
|
|
44
|
-
Enabled: false
|
|
45
|
-
RSpec/AnyInstance:
|
|
46
|
-
Enabled: false
|
|
47
|
-
RSpec/MessageSpies:
|
|
48
|
-
Enabled: false
|
|
49
|
-
RSpec/DescribeClass:
|
|
50
|
-
Enabled: false
|
|
51
|
-
RSpec/VerifiedDoubles:
|
|
52
|
-
Enabled: false
|
|
53
|
-
RSpec/NoExpectationExample:
|
|
54
|
-
Enabled: false
|
|
55
|
-
RSpec/RepeatedDescription:
|
|
56
|
-
Enabled: false
|
|
57
|
-
RSpec/NestedGroups:
|
|
58
|
-
Enabled: false
|
|
59
|
-
RSpec/MultipleDescribes:
|
|
60
|
-
Enabled: false
|
|
61
|
-
RSpec/BeforeAfterAll:
|
|
62
|
-
Enabled: false
|
|
63
|
-
RSpec/SpecFilePathFormat:
|
|
64
|
-
Enabled: false
|
|
65
|
-
RSpec/ContextWording:
|
|
66
|
-
Enabled: false
|
|
67
|
-
RSpec/OverwritingSetup:
|
|
68
|
-
Enabled: false
|
data/.ruby-env.yml.example
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# To assist with testing.
|
|
3
|
-
#
|
|
4
|
-
# DO NOT CHANGE AND COMMIT. YOU HAVE BEEN WARNED.
|
|
5
|
-
# Alternatively, use environment variables of the same.
|
|
6
|
-
#
|
|
7
|
-
# Replace <THESE_VALUES> with yours from
|
|
8
|
-
# https://mailgun.com/app/dashboard (don't include <brackets>)
|
|
9
|
-
# and rename to/save as: .ruby-env.yml
|
|
10
|
-
MAILGUN_APIKEY : '<MAILGUN_APIKEY>'
|
|
11
|
-
MAILGUN_PUB_APIKEY : '<MAILGUN_PUBLIC_APIKEY>'
|
|
12
|
-
MAILGUN_TESTDOMAIN : '<MAILGUN_SANDBOX_DOMAIN>'
|
|
13
|
-
|
data/Gemfile
DELETED
data/Rakefile
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'bundler/gem_tasks'
|
|
4
|
-
require 'rake'
|
|
5
|
-
require 'rspec/core/rake_task'
|
|
6
|
-
|
|
7
|
-
desc 'Build Gem'
|
|
8
|
-
task :build do
|
|
9
|
-
system 'gem build mailgun.gemspec'
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
desc 'Run unit specs'
|
|
13
|
-
RSpec::Core::RakeTask.new('spec:unit') do |t|
|
|
14
|
-
t.rspec_opts = %w[--colour --format documentation]
|
|
15
|
-
t.pattern = 'spec/unit/*_spec.rb', 'spec/unit/*/*_spec.rb'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
desc 'Run integration specs'
|
|
19
|
-
# Before running integration tests, you need to specify
|
|
20
|
-
# a valid API KEY in the spec/spec_helper.rb file.
|
|
21
|
-
RSpec::Core::RakeTask.new('spec:integration') do |t|
|
|
22
|
-
t.rspec_opts = %w[--colour --format documentation]
|
|
23
|
-
t.pattern = 'spec/integration/*_spec.rb'
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
desc 'Run all tests'
|
|
27
|
-
RSpec::Core::RakeTask.new('spec:all') do |t|
|
|
28
|
-
t.rspec_opts = %w[--colour --format documentation]
|
|
29
|
-
t.pattern = 'spec/**/*_spec.rb'
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
task default: 'spec:unit'
|
data/docs/AccountWebhooks.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
Mailgun - Account Webhooks
|
|
2
|
-
====================
|
|
3
|
-
|
|
4
|
-
This is the Mailgun Ruby *Account Webhook* utilities.
|
|
5
|
-
|
|
6
|
-
The below assumes you've already installed the Mailgun Ruby SDK in to your
|
|
7
|
-
project. If not, go back to the master README for instructions.
|
|
8
|
-
|
|
9
|
-
Usage - Account Webhooks
|
|
10
|
-
-----------------------
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
# First, instantiate the Mailgun Client with your API key
|
|
14
|
-
mg_client = Mailgun::Client.new('your-api-key')
|
|
15
|
-
hook = Mailgun::AccountWebhooks.new(mg_client)
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Account Webhooks methods:
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
# List account-level webhooks
|
|
23
|
-
hook.list
|
|
24
|
-
hook.list('id1, id2')
|
|
25
|
-
|
|
26
|
-
# Create an account-level webhook
|
|
27
|
-
hook.create(
|
|
28
|
-
description: 'desc',
|
|
29
|
-
event_types: 'accepted',
|
|
30
|
-
url: 'https://the.webhook.url/'
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
# Delete account-level webhooks
|
|
34
|
-
hook.remove(all: true)
|
|
35
|
-
hook.remove('id1, id2')
|
|
36
|
-
|
|
37
|
-
# Get account-level webhook by ID
|
|
38
|
-
hook.get('id1')
|
|
39
|
-
|
|
40
|
-
# Update an account-level webhook
|
|
41
|
-
hook.update(
|
|
42
|
-
'hook',
|
|
43
|
-
description: 'desc',
|
|
44
|
-
event_types: 'accepted',
|
|
45
|
-
url: 'https://the.webhook.url/'
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
# Delete account-level webhook by ID
|
|
49
|
-
hook.remove_by_id('id1')
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
More Documentation
|
|
53
|
-
------------------
|
|
54
|
-
See the official [Mailgun Account Webhooks Docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/account-webhooks)
|
|
55
|
-
for more information
|
data/docs/AnalyticsTags.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
Mailgun - Analytics Tags
|
|
2
|
-
====================
|
|
3
|
-
|
|
4
|
-
This is the Mailgun Ruby *Analytics Tags* utilities.
|
|
5
|
-
|
|
6
|
-
The below assumes you've already installed the Mailgun Ruby SDK in to your
|
|
7
|
-
project. If not, go back to the master README for instructions. It currently supports
|
|
8
|
-
all calls except credentials.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
Mailgun allows you to tag your email with unique identifiers. Tags are visible via our analytics tags API endpoint.
|
|
13
|
-
|
|
14
|
-
You can view additional samples in the [analytics_tags_spec.rb](/spec/integration/analytics_tags_spec.rb)
|
|
15
|
-
or the Analytics Tags client API in [analytics_tags.rb](/lib/mailgun/tags/analytics_tags.rb).
|
|
16
|
-
|
|
17
|
-
Usage
|
|
18
|
-
-----
|
|
19
|
-
|
|
20
|
-
To get an instance of the Analytics Tags client:
|
|
21
|
-
|
|
22
|
-
```ruby
|
|
23
|
-
require 'mailgun'
|
|
24
|
-
|
|
25
|
-
mg_client = Mailgun::Client.new('your-api-key', 'mailgun-api-host', 'v1')
|
|
26
|
-
tags = Mailgun::AnalyticsTags.new(mg_client)
|
|
27
|
-
````
|
|
28
|
-
---
|
|
29
|
-
Update account tag:
|
|
30
|
-
```ruby
|
|
31
|
-
tags.update('name-of-tag-to-update', 'updated tag description')
|
|
32
|
-
```
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
Post query to list account tags or search for single tag:
|
|
36
|
-
```ruby
|
|
37
|
-
options = {
|
|
38
|
-
pagination: {
|
|
39
|
-
sort: 'lastseen:desc',
|
|
40
|
-
limit: 10
|
|
41
|
-
},
|
|
42
|
-
include_subaccounts: true
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
tags.list(options)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Delete account tag:
|
|
49
|
-
```ruby
|
|
50
|
-
tags.remove('name-of-tag-to-remove')
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Get account tag limit information:
|
|
54
|
-
```ruby
|
|
55
|
-
tags.limits
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
More Documentation
|
|
61
|
-
------------------
|
|
62
|
-
See the official [Mailgun Tags New Docs](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/tags-new)
|
|
63
|
-
for more information
|