ging/mailboxer — pull request #61 by daveworth (2012-06-16 21:23:19+00:00)
Title: Move Mailboxer models into Mailboxer namespace

@roendal ,

This morning I made the first pass at namespacing the Mailboxer models to avoid conflicts as we discussed in ging/mailboxer#39 yesterday. It turns out that it was not so hard to get all tests back to passing but it definitely does break backward compatibility in an apps using the 0.6.x line of Mailboxer. As such I've bumped the gemspec version to 1.0.0a in an effort to use semantic versioning well.

A few quick notes:

* Since it's a whole new version, rather than having many migrations I simply merged the migrations into one that contains the final result. This would break folks on the 0.6.x line but shouldn't affect new users.

* Namespacing of database tables required explicit table names in models but this is a small cost

* I decided to skip the namespacing of mailers but that might be a reasonable next step.

* I know this commit is large and daunting but I attempted to make each individual commit very focussed and described reasonably by the commit message. Don't look at the whole diff at once, but rather at each commit in the chain. That should make acceptance / discussion simpler.

* For the most part the changes are merely database table name changes, prefixing model names with `Mailboxer::` and updating scopes.

If you have any questions or think changes should be made before attempting some integration with the mailboxer mainline I am more than open to that. Thanks for taking the time to even consider this.