Permalink
Commits on Aug 24, 2016
  1. @mitio

    Remove the release-version script

    The following command does the same thing just better (and also
    automatically tags the version):
    
        bundle exec rake release
    mitio committed Aug 24, 2016
  2. @mitio

    v0.8.3 - fix Rails 5 compatibility

    mitio committed Aug 24, 2016
  3. @mitio

    Don’t use attr_accessible in Rails 5 or newer

    We already had a conditional for Rails 4 but it was not
    forward-compatible.
    mitio committed Aug 24, 2016
Commits on Aug 11, 2015
  1. @mitio
  2. @mitio

    Fix unique message key initialization

    A unique per-email key is generated in QueuedMail. This key should be
    preserved once generated as it is used for interpolation in the email
    body and then copied to the FinishedMail so that the sent email can be
    tracked and so that unsubscribe works.
    
    We broke this when we added a random component in the message key in
    6ec62ea. It has been broken since June 26th, v0.8.0.
    
    The change now keeps the value of the message key, once generated. Also,
    QueuedMail#id no longer is included in the key as it will never be
    present there as the key is also generated before validation, when we
    don’t have an id yet. The secure random component should be enough for
    uniqueness.
    mitio committed Aug 11, 2015
  3. @mitio
Commits on Jul 6, 2015
  1. @mitio
  2. @mitio
  3. @bliof
  4. @bliof

    Merge branch 'reply-to'

    bliof committed Jul 6, 2015
Commits on Jun 29, 2015
  1. @bliof

    Allow adding of reply_to to emails

    The same thing as from, subject and so on
    bliof committed Jun 29, 2015
  2. @mitio

    Merge pull request #20 from livebg/fix-queued-mails-create

    Fix the behaviour of QueuedMail.new(to: …, from: …, mail_campaign: …)
    mitio committed Jun 29, 2015
  3. @bliof

    Fix the behaviour of QueuedMail.new(to: …, from: …, mail_campaign: …)

    QueuedMail#mail_campaign= and QueuedMail#mail_campaign_id= will update
    the QueuedMail#mail_template (if it is present) by filling the nil
    fields with the ones from the mail_campaign.mail_template
    
    The attachments will be copied if the one in the QueuedMail are blank.
    bliof committed Jun 29, 2015
  4. @mitio

    Merge pull request #19 from livebg/fix-queued-mail-body-text-setter

    Fix the QueuedMail#body_text=
    mitio committed Jun 29, 2015
  5. @bliof

    Fix the QueuedMail#body_text=

    There was a typo in QueuedMail and the method was not delegated to
    MailTemplate.. (the getter #body_text was..)
    bliof committed Jun 29, 2015
Commits on Jun 26, 2015
  1. @mitio
  2. @mitio

    Merge pull request #18 from livebg/oneoff_emails

    One-off emails
    mitio committed Jun 26, 2015
  3. @mitio
  4. @mitio
  5. @mitio
  6. @mitio
  7. @mitio

    Restore Ruby 1.8.7-compatibility

    mitio committed Jun 26, 2015
  8. @mitio
  9. @mitio

    Move the upgrading instructions and changes to the changelog

    Also elaborate a bit on what has been changed.
    mitio committed Jun 26, 2015
  10. @mitio

    Add a basic changelog file

    The changelog's content is populated mostly from the Git history.
    mitio committed Jun 26, 2015
  11. @bliof

    Fix links in the README

    bliof committed Jun 26, 2015
  12. @bliof
  13. @bliof
  14. @bliof
  15. @bliof

    Add creating of QueuedMail with custom template

    Renames model MailCampaignAttachment to MailAttachment
    
    Adds model MailTemplate which has MailAttachment-s
    
    MailCampaign has MailTemplate
    QueuedMail could also have a MailTemplate
    
    When you make a change like QueuedMail.body_html = '<h1>test</h1>'
    it will copy the MailTemplate from the MailCampaign and then it will
    update the copy with your changes.
    
    MailCampaign#add_attachment does not save the attachment you have to
    call MailCampaign#save, the same is for QueuedMail
    
    Usually you will work with MailCampaign or QueuedMail and you won't
    touch the MailTemplate and MailAttachment
    
    Adds QueuedMail#require_uniqueness which is a boolean and it is either
    true or nil. This allows the unique index on [:to, :mail_campaign, :require_uniqueness]
    in the database to work as expected (a.k.a. if nil then not unique).
    bliof committed Jun 25, 2015
Commits on Mar 28, 2015
  1. @mitio

    Fix link to an issue in the readme

    mitio committed Mar 28, 2015
  2. @mitio

    Add information for Rails 4 compatibility

    Closes #17
    mitio committed Mar 28, 2015
Commits on Feb 11, 2015
  1. @mitio
  2. @mitio

    Make sure the queued mail is deleted

    If a FinishedMail record is created, we have to delete the QueuedMail.
    mitio committed Feb 11, 2015
Commits on Feb 9, 2015
  1. @mitio