<commit_before>Validates email format
======================

Validate various formats of email address against RFC 2822.

Usage
-----

    class Person < ActiveRecord::Base
      validates_email_format_of :email
    end

Options
-------

    :message
      String. A custom error message (default is: " does not appear to be a valid e-mail address")
    :on
      Symbol. Specifies when this validation is active (default is :save, other options :create, :update)
    :allow_nil
      Boolean. Allow nil values (default is false)
    :allow_blank
      Boolean. Allow blank values (default is false)
    :if
      Specifies a method, proc or string to call to determine if the validation should occur 
      (e.g. :if => :allow_validation, or :if => Proc.new { |user| user.signup_step > 2 }). The method, 
      proc or string should return or evaluate to a true or false value. 
    :unless
      See :if option.

Testing
-------

To execute the unit tests run <tt>rake test</tt>.

The unit tests for this plugin use an in-memory sqlite3 database.

Installing the gem
------------------

* gem sources -a http://gems.github.com (only needed once)<commit_msg>more readme cleanups<commit_after>Validates email format
======================

Validate various formats of email address against RFC 2822.

Usage
-----

    class Person < ActiveRecord::Base
      validates_email_format_of :email
    end

Options
-------

<dl>
	<dt>:message</dt>
    <dd>String. A custom error message (default is: " does not appear to be a valid e-mail address")
  <dt>:on</dt>
    <dd>Symbol. Specifies when this validation is active (default is :save, other options :create, :update)</dd>
  <dt>:allow_nil</dt>
    <dd>Boolean. Allow nil values (default is false)</dd>
  <dt>:allow_blank</dt>
    <dd>Boolean. Allow blank values (default is false)</dd>
  <dt>:if</dt>
    <dd>Specifies a method, proc or string to call to determine if the validation should occur (e.g. :if => :allow_validation, or :if => Proc.new { |user| user.signup_step > 2 }). The method, proc or string should return or evaluate to a true or false value.</dd>
  <dt>:unless</dt>
    <dd>See :if option.</dd>
</dl>

Testing
-------

To execute the unit tests run <tt>rake test</tt>.

The unit tests for this plugin use an in-memory sqlite3 database.

Installing the gem
------------------

* gem sources -a http://gems.github.com (only needed once)
{'fraction_non_alphanumeric': 0.13910870470637235, 'fraction_numerical': 0.0049979175343606835, 'mean_word_length': 2.9966722129783694, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1624986', 'n_tokens_mistral': 712, 'n_tokens_neox': 684, 'n_words': 287}