diff --git a/README.md b/README.md index 767b4b6..e982372 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ gem install mailgun-ruby Gemfile: ```ruby -gem 'mailgun-ruby', '~>1.2.10' +gem 'mailgun-ruby', '~>1.2.11' ``` Usage @@ -97,7 +97,7 @@ class UserMailer < ApplicationMailer } end end -end +end ``` To get the Mailgun `message_id` after ActionMailer has successfully delivered the email: diff --git a/lib/mailgun/version.rb b/lib/mailgun/version.rb index c5eaeae..5132240 100644 --- a/lib/mailgun/version.rb +++ b/lib/mailgun/version.rb @@ -1,4 +1,4 @@ # It's the version. Yeay! module Mailgun - VERSION = '1.2.10' + VERSION = '1.2.11' end diff --git a/lib/mailgun/webhooks/webhooks.rb b/lib/mailgun/webhooks/webhooks.rb index d7739d8..2d179a0 100644 --- a/lib/mailgun/webhooks/webhooks.rb +++ b/lib/mailgun/webhooks/webhooks.rb @@ -58,7 +58,7 @@ def create(domain, action, url = '') # # Returns true or false def create_all(domain, url = '') - %w(bounce click deliver drop open spam unsubscribe).each do |action| + %w(accepted clicked complained delivered opened permanent_fail temporary_fail unsubscribed).each do |action| add_webhook domain, action, url end true @@ -90,7 +90,7 @@ def remove(domain, action) # Returns a Boolean on the success def remove_all(domain) fail Mailgun::ParameterError('Domain not provided to remove webhooks from') unless domain - %w(bounce click deliver drop open spam unsubscribe).each do |action| + %w(accepted clicked complained delivered opened permanent_fail temporary_fail unsubscribed).each do |action| delete_webhook domain, action end end