mailgun-ruby 1.1.2 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-env.yml.example +1 -1
- data/.travis.yml +6 -4
- data/README.md +46 -8
- data/{Domains.md → docs/Domains.md} +18 -0
- data/{Events.md → docs/Events.md} +0 -0
- data/{MessageBuilder.md → docs/MessageBuilder.md} +21 -5
- data/{Messages.md → docs/Messages.md} +3 -3
- data/{OptInHandler.md → docs/OptInHandler.md} +0 -0
- data/{Snippets.md → docs/Snippets.md} +21 -2
- data/docs/Suppressions.md +82 -0
- data/{Webhooks.md → docs/Webhooks.md} +0 -0
- data/lib/mailgun/client.rb +27 -3
- data/lib/mailgun/events/events.rb +23 -6
- data/lib/mailgun/messages/batch_message.rb +2 -2
- data/lib/mailgun/messages/message_builder.rb +79 -24
- data/lib/mailgun/suppressions.rb +270 -0
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun-ruby.rb +2 -1
- data/lib/railgun/attachment.rb +56 -0
- data/lib/railgun/errors.rb +27 -0
- data/lib/railgun/mailer.rb +158 -0
- data/lib/railgun/message.rb +17 -0
- data/lib/railgun/railtie.rb +9 -0
- data/lib/railgun.rb +8 -0
- data/mailgun.gemspec +1 -1
- data/spec/integration/events_spec.rb +9 -1
- data/spec/integration/mailgun_spec.rb +0 -0
- data/spec/integration/suppressions_spec.rb +126 -0
- data/spec/unit/events/events_spec.rb +17 -2
- data/spec/unit/messages/message_builder_spec.rb +44 -7
- data/vcr_cassettes/events.yml +48 -1
- data/vcr_cassettes/suppressions.yml +676 -0
- metadata +21 -10
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.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mailgun
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -134,17 +134,18 @@ files:
|
|
134
134
|
- ".rubocop_todo.yml"
|
135
135
|
- ".ruby-env.yml.example"
|
136
136
|
- ".travis.yml"
|
137
|
-
- Domains.md
|
138
|
-
- Events.md
|
139
137
|
- Gemfile
|
140
138
|
- LICENSE
|
141
|
-
- MessageBuilder.md
|
142
|
-
- Messages.md
|
143
|
-
- OptInHandler.md
|
144
139
|
- README.md
|
145
140
|
- Rakefile
|
146
|
-
-
|
147
|
-
-
|
141
|
+
- docs/Domains.md
|
142
|
+
- docs/Events.md
|
143
|
+
- docs/MessageBuilder.md
|
144
|
+
- docs/Messages.md
|
145
|
+
- docs/OptInHandler.md
|
146
|
+
- docs/Snippets.md
|
147
|
+
- docs/Suppressions.md
|
148
|
+
- docs/Webhooks.md
|
148
149
|
- lib/mailgun-ruby.rb
|
149
150
|
- lib/mailgun.rb
|
150
151
|
- lib/mailgun/address.rb
|
@@ -157,8 +158,15 @@ files:
|
|
157
158
|
- lib/mailgun/messages/batch_message.rb
|
158
159
|
- lib/mailgun/messages/message_builder.rb
|
159
160
|
- lib/mailgun/response.rb
|
161
|
+
- lib/mailgun/suppressions.rb
|
160
162
|
- lib/mailgun/version.rb
|
161
163
|
- lib/mailgun/webhooks/webhooks.rb
|
164
|
+
- lib/railgun.rb
|
165
|
+
- lib/railgun/attachment.rb
|
166
|
+
- lib/railgun/errors.rb
|
167
|
+
- lib/railgun/mailer.rb
|
168
|
+
- lib/railgun/message.rb
|
169
|
+
- lib/railgun/railtie.rb
|
162
170
|
- mailgun.gemspec
|
163
171
|
- spec/integration/bounces_spec.rb
|
164
172
|
- spec/integration/campaign_spec.rb
|
@@ -172,6 +180,7 @@ files:
|
|
172
180
|
- spec/integration/messages/sample_data/mime.txt
|
173
181
|
- spec/integration/routes_spec.rb
|
174
182
|
- spec/integration/stats_spec.rb
|
183
|
+
- spec/integration/suppressions_spec.rb
|
175
184
|
- spec/integration/unsubscribes_spec.rb
|
176
185
|
- spec/integration/webhook_spec.rb
|
177
186
|
- spec/spec_helper.rb
|
@@ -197,11 +206,12 @@ files:
|
|
197
206
|
- vcr_cassettes/routes.yml
|
198
207
|
- vcr_cassettes/send_message.yml
|
199
208
|
- vcr_cassettes/stats.yml
|
209
|
+
- vcr_cassettes/suppressions.yml
|
200
210
|
- vcr_cassettes/unsubscribes.yml
|
201
211
|
- vcr_cassettes/webhooks.yml
|
202
212
|
homepage: http://www.mailgun.com
|
203
213
|
licenses:
|
204
|
-
- Apache
|
214
|
+
- Apache-2.0
|
205
215
|
metadata: {}
|
206
216
|
post_install_message:
|
207
217
|
rdoc_options: []
|
@@ -236,6 +246,7 @@ test_files:
|
|
236
246
|
- spec/integration/messages/sample_data/mime.txt
|
237
247
|
- spec/integration/routes_spec.rb
|
238
248
|
- spec/integration/stats_spec.rb
|
249
|
+
- spec/integration/suppressions_spec.rb
|
239
250
|
- spec/integration/unsubscribes_spec.rb
|
240
251
|
- spec/integration/webhook_spec.rb
|
241
252
|
- spec/spec_helper.rb
|