Added error handling when job fails permanently and failure callback raises an exception
Update rspec dependency to >= 3
Prepare 4.0.2 release
Add RuboCop
Fix RuboCop offenses
Enforce code coverage minimums
With the release of Rails 4, Rails 3.0 and 3.1 are no longer supported

See: http://weblog.rubyonrails.org/2013/2/24/maintenance-policy-for-ruby-on-rails/
Resolved merge conflicts with changes in upstream repo's master branch
Fixed Rubocop offenses with code introduced in my pull request
Changed usage of Logger::ERROR to 'error' within Delayed::Worker#failed
Merge pull request #661 from denisahearn/master

Added error handling when job fails permanently and failure callback rai...
allow mail rendering at delay time

The current solution to delayed mail delivery renders the mail template at delivery time:
    Notifier.delay.signup(@user)

When you try to explicitly delay delivery you will get an error:
    Notifier.signup(@user).delay.deliver
    > Use MyMailer.delay.mailer_action(args) to delay sending of emails.

The new approach will serialize the mail message at delay time using Mail::Message.encoded and deserialize using the constructor:
    Notifier.signup(@user).delay.deliver