wj-mailgun-ruby 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +22 -0
- data/.ruby-env.yml.example +12 -0
- data/.ruby-version +1 -0
- data/.travis.yml +24 -0
- data/Gemfile +6 -0
- data/LICENSE +191 -0
- data/README.md +241 -0
- data/Rakefile +35 -0
- data/docs/Domains.md +54 -0
- data/docs/Events.md +46 -0
- data/docs/MessageBuilder.md +105 -0
- data/docs/Messages.md +107 -0
- data/docs/OptInHandler.md +103 -0
- data/docs/Snippets.md +526 -0
- data/docs/Suppressions.md +82 -0
- data/docs/Webhooks.md +40 -0
- data/lib/mailgun-ruby.rb +2 -0
- data/lib/mailgun.rb +39 -0
- data/lib/mailgun/address.rb +45 -0
- data/lib/mailgun/chains.rb +16 -0
- data/lib/mailgun/client.rb +199 -0
- data/lib/mailgun/domains/domains.rb +84 -0
- data/lib/mailgun/events/events.rb +120 -0
- data/lib/mailgun/exceptions/exceptions.rb +65 -0
- data/lib/mailgun/lists/opt_in_handler.rb +58 -0
- data/lib/mailgun/messages/batch_message.rb +125 -0
- data/lib/mailgun/messages/message_builder.rb +413 -0
- data/lib/mailgun/response.rb +62 -0
- data/lib/mailgun/suppressions.rb +270 -0
- data/lib/mailgun/version.rb +4 -0
- data/lib/mailgun/webhooks/webhooks.rb +101 -0
- data/lib/railgun.rb +8 -0
- data/lib/railgun/attachment.rb +56 -0
- data/lib/railgun/errors.rb +27 -0
- data/lib/railgun/mailer.rb +161 -0
- data/lib/railgun/message.rb +17 -0
- data/lib/railgun/railtie.rb +9 -0
- data/mailgun.gemspec +37 -0
- data/spec/integration/bounces_spec.rb +44 -0
- data/spec/integration/campaign_spec.rb +60 -0
- data/spec/integration/complaints_spec.rb +38 -0
- data/spec/integration/domains_spec.rb +39 -0
- data/spec/integration/email_validation_spec.rb +57 -0
- data/spec/integration/events_spec.rb +28 -0
- data/spec/integration/list_members_spec.rb +63 -0
- data/spec/integration/list_spec.rb +58 -0
- data/spec/integration/mailgun_spec.rb +121 -0
- data/spec/integration/messages/sample_data/mime.txt +38 -0
- data/spec/integration/routes_spec.rb +74 -0
- data/spec/integration/stats_spec.rb +15 -0
- data/spec/integration/suppressions_spec.rb +126 -0
- data/spec/integration/unsubscribes_spec.rb +42 -0
- data/spec/integration/webhook_spec.rb +54 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/unit/connection/test_client.rb +99 -0
- data/spec/unit/events/events_spec.rb +50 -0
- data/spec/unit/lists/opt_in_handler_spec.rb +24 -0
- data/spec/unit/mailgun_spec.rb +127 -0
- data/spec/unit/messages/batch_message_spec.rb +131 -0
- data/spec/unit/messages/message_builder_spec.rb +584 -0
- data/spec/unit/messages/sample_data/mailgun_icon.png +0 -0
- data/spec/unit/messages/sample_data/mime.txt +38 -0
- data/spec/unit/messages/sample_data/rackspace_logo.jpg +0 -0
- data/vcr_cassettes/bounces.yml +175 -0
- data/vcr_cassettes/complaints.yml +175 -0
- data/vcr_cassettes/domains.todo.yml +42 -0
- data/vcr_cassettes/domains.yml +360 -0
- data/vcr_cassettes/email_validation.yml +167 -0
- data/vcr_cassettes/events.yml +108 -0
- data/vcr_cassettes/exceptions.yml +45 -0
- data/vcr_cassettes/list_members.yml +320 -0
- data/vcr_cassettes/mailing_list.todo.yml +43 -0
- data/vcr_cassettes/mailing_list.yml +390 -0
- data/vcr_cassettes/routes.yml +359 -0
- data/vcr_cassettes/send_message.yml +107 -0
- data/vcr_cassettes/stats.yml +44 -0
- data/vcr_cassettes/suppressions.yml +676 -0
- data/vcr_cassettes/unsubscribes.yml +191 -0
- data/vcr_cassettes/webhooks.yml +276 -0
- metadata +263 -0
metadata
ADDED
@@ -0,0 +1,263 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wj-mailgun-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mailgun
|
8
|
+
- Travis Swientek
|
9
|
+
- greatmanta111
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2017-12-31 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bundler
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.5'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '1.5'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rspec
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '3.0'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '3.0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rake
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '10.0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '10.0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: webmock
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1.22'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.22'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: pry
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.9'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0.9'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: vcr
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '3.0'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3.0'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: simplecov
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0.11'
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0.11'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rest-client
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '2.0'
|
120
|
+
type: :runtime
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '2.0'
|
127
|
+
description: Mailgun's Official Ruby SDK for interacting with the Mailgun API.
|
128
|
+
email: support@mailgunhq.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rubocop.yml"
|
135
|
+
- ".rubocop_todo.yml"
|
136
|
+
- ".ruby-env.yml.example"
|
137
|
+
- ".ruby-version"
|
138
|
+
- ".travis.yml"
|
139
|
+
- Gemfile
|
140
|
+
- LICENSE
|
141
|
+
- README.md
|
142
|
+
- Rakefile
|
143
|
+
- docs/Domains.md
|
144
|
+
- docs/Events.md
|
145
|
+
- docs/MessageBuilder.md
|
146
|
+
- docs/Messages.md
|
147
|
+
- docs/OptInHandler.md
|
148
|
+
- docs/Snippets.md
|
149
|
+
- docs/Suppressions.md
|
150
|
+
- docs/Webhooks.md
|
151
|
+
- lib/mailgun-ruby.rb
|
152
|
+
- lib/mailgun.rb
|
153
|
+
- lib/mailgun/address.rb
|
154
|
+
- lib/mailgun/chains.rb
|
155
|
+
- lib/mailgun/client.rb
|
156
|
+
- lib/mailgun/domains/domains.rb
|
157
|
+
- lib/mailgun/events/events.rb
|
158
|
+
- lib/mailgun/exceptions/exceptions.rb
|
159
|
+
- lib/mailgun/lists/opt_in_handler.rb
|
160
|
+
- lib/mailgun/messages/batch_message.rb
|
161
|
+
- lib/mailgun/messages/message_builder.rb
|
162
|
+
- lib/mailgun/response.rb
|
163
|
+
- lib/mailgun/suppressions.rb
|
164
|
+
- lib/mailgun/version.rb
|
165
|
+
- lib/mailgun/webhooks/webhooks.rb
|
166
|
+
- lib/railgun.rb
|
167
|
+
- lib/railgun/attachment.rb
|
168
|
+
- lib/railgun/errors.rb
|
169
|
+
- lib/railgun/mailer.rb
|
170
|
+
- lib/railgun/message.rb
|
171
|
+
- lib/railgun/railtie.rb
|
172
|
+
- mailgun.gemspec
|
173
|
+
- spec/integration/bounces_spec.rb
|
174
|
+
- spec/integration/campaign_spec.rb
|
175
|
+
- spec/integration/complaints_spec.rb
|
176
|
+
- spec/integration/domains_spec.rb
|
177
|
+
- spec/integration/email_validation_spec.rb
|
178
|
+
- spec/integration/events_spec.rb
|
179
|
+
- spec/integration/list_members_spec.rb
|
180
|
+
- spec/integration/list_spec.rb
|
181
|
+
- spec/integration/mailgun_spec.rb
|
182
|
+
- spec/integration/messages/sample_data/mime.txt
|
183
|
+
- spec/integration/routes_spec.rb
|
184
|
+
- spec/integration/stats_spec.rb
|
185
|
+
- spec/integration/suppressions_spec.rb
|
186
|
+
- spec/integration/unsubscribes_spec.rb
|
187
|
+
- spec/integration/webhook_spec.rb
|
188
|
+
- spec/spec_helper.rb
|
189
|
+
- spec/unit/connection/test_client.rb
|
190
|
+
- spec/unit/events/events_spec.rb
|
191
|
+
- spec/unit/lists/opt_in_handler_spec.rb
|
192
|
+
- spec/unit/mailgun_spec.rb
|
193
|
+
- spec/unit/messages/batch_message_spec.rb
|
194
|
+
- spec/unit/messages/message_builder_spec.rb
|
195
|
+
- spec/unit/messages/sample_data/mailgun_icon.png
|
196
|
+
- spec/unit/messages/sample_data/mime.txt
|
197
|
+
- spec/unit/messages/sample_data/rackspace_logo.jpg
|
198
|
+
- vcr_cassettes/bounces.yml
|
199
|
+
- vcr_cassettes/complaints.yml
|
200
|
+
- vcr_cassettes/domains.todo.yml
|
201
|
+
- vcr_cassettes/domains.yml
|
202
|
+
- vcr_cassettes/email_validation.yml
|
203
|
+
- vcr_cassettes/events.yml
|
204
|
+
- vcr_cassettes/exceptions.yml
|
205
|
+
- vcr_cassettes/list_members.yml
|
206
|
+
- vcr_cassettes/mailing_list.todo.yml
|
207
|
+
- vcr_cassettes/mailing_list.yml
|
208
|
+
- vcr_cassettes/routes.yml
|
209
|
+
- vcr_cassettes/send_message.yml
|
210
|
+
- vcr_cassettes/stats.yml
|
211
|
+
- vcr_cassettes/suppressions.yml
|
212
|
+
- vcr_cassettes/unsubscribes.yml
|
213
|
+
- vcr_cassettes/webhooks.yml
|
214
|
+
homepage: http://www.mailgun.com
|
215
|
+
licenses:
|
216
|
+
- Apache-2.0
|
217
|
+
metadata: {}
|
218
|
+
post_install_message:
|
219
|
+
rdoc_options: []
|
220
|
+
require_paths:
|
221
|
+
- lib
|
222
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
223
|
+
requirements:
|
224
|
+
- - ">="
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: 2.0.0
|
227
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - ">="
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '0'
|
232
|
+
requirements: []
|
233
|
+
rubyforge_project:
|
234
|
+
rubygems_version: 2.2.5
|
235
|
+
signing_key:
|
236
|
+
specification_version: 4
|
237
|
+
summary: Mailgun's Official Ruby SDK
|
238
|
+
test_files:
|
239
|
+
- spec/integration/bounces_spec.rb
|
240
|
+
- spec/integration/campaign_spec.rb
|
241
|
+
- spec/integration/complaints_spec.rb
|
242
|
+
- spec/integration/domains_spec.rb
|
243
|
+
- spec/integration/email_validation_spec.rb
|
244
|
+
- spec/integration/events_spec.rb
|
245
|
+
- spec/integration/list_members_spec.rb
|
246
|
+
- spec/integration/list_spec.rb
|
247
|
+
- spec/integration/mailgun_spec.rb
|
248
|
+
- spec/integration/messages/sample_data/mime.txt
|
249
|
+
- spec/integration/routes_spec.rb
|
250
|
+
- spec/integration/stats_spec.rb
|
251
|
+
- spec/integration/suppressions_spec.rb
|
252
|
+
- spec/integration/unsubscribes_spec.rb
|
253
|
+
- spec/integration/webhook_spec.rb
|
254
|
+
- spec/spec_helper.rb
|
255
|
+
- spec/unit/connection/test_client.rb
|
256
|
+
- spec/unit/events/events_spec.rb
|
257
|
+
- spec/unit/lists/opt_in_handler_spec.rb
|
258
|
+
- spec/unit/mailgun_spec.rb
|
259
|
+
- spec/unit/messages/batch_message_spec.rb
|
260
|
+
- spec/unit/messages/message_builder_spec.rb
|
261
|
+
- spec/unit/messages/sample_data/mailgun_icon.png
|
262
|
+
- spec/unit/messages/sample_data/mime.txt
|
263
|
+
- spec/unit/messages/sample_data/rackspace_logo.jpg
|