<commit_before>h2. mq

A Rails gem that generates an MVC stack that does email queuing

h3. What it does

I got tire of crappy attempts at queuing emails, so I wrote my own. mq is a generator that generates an MVC stack for queuing emails. It has a UI too.

h3. Requirements

An existing Mailer

h3. How to Install

<pre>sudo gem install mdarby-mq</pre>

h3. How to Use

<pre>./script/generate mq EmailModelName MailerModelName</pre>

h3. How to Test

Complete Rspec specs are included automatically. Well, complete aside from view specs as you'll just change the damned things anyway.

h3. About the Author

My name is <NAME>. I'm the Lead Web Developer and IT Manager at "Dynamix Engineering":http://dynamix-ltd.com and hold a Master's Degree in Computer Science from "Franklin University":http://franklin.edu in Columbus, OH.

Feel free to check out my "blog":http://blog.matt-darby.com or to "recommend me":http://www.workingwithrails.com/recommendation/new/person/10908-matt-darby<commit_msg>Updated readme; more to follow<commit_after>h2. mq

A Rails gem that generates an MVC stack that does email queuing

h3. What it does

I got tired of dealing with crappy email queuing systems in Rails, so I wrote my own. mq is a generator that generates an MVC stack for queuing emails. It has a UI too.

h3. Requirements

An existing Mailer model

h3. How to Install

<pre>sudo gem install mdarby-mq -s http://gems.github.com</pre>

h3. How to Use

Generate the files necessary for your app:
<pre>./script/generate mq EmailModelName MailerModelName</pre>

mq requires your Mailer methods accept an email address as its first parameter, so a Mailer method should look like:
<pre>PostOffice.send_email_method(email_address)</pre>

Queue an email:
<pre>Email.queue(:send_email_method, "<EMAIL>")</pre>

h3. Delivery of queued email

<pre>
  # Assuming you choose to name your EmailModelName "Email"
  cd /path/to/your/app && ./script/runner/Email.deliver_all
</pre>

h3. How to Test

Complete Rspec specs are included automatically. Well, complete aside from view specs as you'll just change the damned things anyway.

h3. About the Author

My name is <NAME>. I'm the Lead Web Developer and IT Manager at "Dynamix Engineering":http://dynamix-ltd.com and hold a Master's Degree in Computer Science from "Franklin University":http://franklin.edu in Columbus, OH.

Feel free to check out my "blog":http://blog.matt-darby.com or to "recommend me":http://www.workingwithrails.com/recommendation/new/person/10908-matt-darby
{'fraction_non_alphanumeric': 0.08240445859872611, 'fraction_numerical': 0.009952229299363057, 'mean_word_length': 4.2573221757322175, 'pattern_counts': {'":': 8, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4897782', 'n_tokens_mistral': 811, 'n_tokens_neox': 764, 'n_words': 336}