<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/unit/validates_email_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -24,6 +24,9 @@ portnumbers and any subdomains. Instead of a domain name, you can use ip address
 This validator adds the feature to validate a hostname. Instead of a hostname, you can 
 use ip address too (version 4).
 
+== validates_email
+This validator adds the feature to validate a email address.
+
 
 Example
 =======
@@ -41,6 +44,10 @@ in your ActiveRecord class:
 in your ActiveRecord class:
   validates_host(:attribute)
 
+== validates_email
+in your ActiveRecord class:
+  validates_email(:attribute)
+
 
 
 Copyright (c) 2008 [simplificator gmbh], released under the MIT license</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
   s.name = %q{arext}
-  s.version = &quot;0.2.8&quot;
-  s.date = %q{2008-09-03}
+  s.version = &quot;0.2.9&quot;
+  s.date = %q{2008-10-09}
   s.authors = [&quot;Simplificator GmbH&quot;]
   s.email = %q{info@simplificator.com}
   s.summary = %q{provieds some extensions to ActiveRecord}</diff>
      <filename>arext.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,10 @@ module Arext
         validates_format_of(attribute, :with =&gt; /^(#{VALID_HOST}\.#{VALID_TLD}|#{VALID_IP})$/)
       end
       
+      def validates_email(attribute)
+        validates_format_of(attribute, :with =&gt; /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,5})+$/)
+      end
+      
       
       def validates_constraints(*attrs)
         attrs = column_names if attrs.blank?</diff>
      <filename>lib/arext/validations.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,6 +30,7 @@ ActiveRecord::Base.connection.create_table(:foos) do |table|
   
   table.string(:url)
   table.string(:host)
+  table.string(:email)
 end
 
 ActiveRecord::Base.logger = Logger.new(STDOUT)</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>32669b474d2eb7118c605169cee89fa1b700c9fa</id>
    </parent>
  </parents>
  <author>
    <name>marco</name>
    <email>marco@wer-sonst.local</email>
  </author>
  <url>http://github.com/simplificator/arext/commit/f8611752a45ddfcb9914b4278a00e403b0f35cfd</url>
  <id>f8611752a45ddfcb9914b4278a00e403b0f35cfd</id>
  <committed-date>2008-10-09T00:15:51-07:00</committed-date>
  <authored-date>2008-10-09T00:15:51-07:00</authored-date>
  <message>extend arext with validates_email</message>
  <tree>e664ed36be2d8bb52bec8ceb449b0ea71ae5158d</tree>
  <committer>
    <name>marco</name>
    <email>marco@wer-sonst.local</email>
  </committer>
</commit>
