<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-= Remarkable 3.0
+= Remarkable
 
 You can read this file nicely formatted at the Rubyforge project page:
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,6 @@
+* Deprecated validate_format_of. It does not have the same API as the respective
+  ActiveRecord macro, raising questions frequentely about its usage. [#76]
+
 * allow_mass_assignment_of when called without arguments checks if any mass
   assignment is possible [#80]
 </diff>
      <filename>remarkable_activerecord/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,9 @@
 Remarkable ActiveRecord is a collection of matchers to ActiveRecord. Why use
 Remarkable?
 
-* The only one with matchers for all ActiveRecord validations, with support to
-  all options (except :on and the option :with in validates_format_of);
+* Matchers for all ActiveRecord validations, with support to all options. The only
+  exceptions are validate_format_of (which should be invoked as allow_values_for)
+  and the :on option;
 
 * Matchers for all ActiveRecord associations. The only one which supports all
   these options:</diff>
      <filename>remarkable_activerecord/README</filename>
    </modified>
    <modified>
      <diff>@@ -87,7 +87,17 @@ module Remarkable
         options = args.extract_options!
         AllowValuesForMatcher.new(attribute, options.merge!(:in =&gt; args), &amp;block).spec(self)
       end
-      alias :validate_format_of :allow_values_for
+
+      # Deprecated. Use allow_values_for instead.
+      #
+      def validate_format_of(*args)
+        if caller[0] =~ /\macros.rb/
+          warn &quot;[DEPRECATION] should_validate_format_of is deprecated, use should_allow_values_for instead.&quot;
+        else
+          warn &quot;[DEPRECATION] validate_format_of is deprecated, use allow_values_for instead. Called from #{caller[0]}.&quot;
+        end
+        allow_values_for(*args)
+      end
 
     end
   end</diff>
      <filename>remarkable_activerecord/lib/remarkable_activerecord/matchers/allow_values_for_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -51,6 +51,11 @@ describe 'allow_values_for' do
 
     should_allow_values_for :title, 'X'
     should_not_allow_values_for :title, 'A'
+
+    describe 'deprecation' do
+      it { should validate_format_of(:title, 'X') }
+      should_not_validate_format_of :title, 'A'
+    end
   end
 end
 </diff>
      <filename>remarkable_activerecord/spec/allow_values_for_matcher_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c95d06015f9c37ea03bde19a225ea7e47fa43c66</id>
    </parent>
  </parents>
  <author>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </author>
  <url>http://github.com/carlosbrando/remarkable/commit/cb57b2c0c49c1047bac5049d0cd62cf31094b3a4</url>
  <id>cb57b2c0c49c1047bac5049d0cd62cf31094b3a4</id>
  <committed-date>2009-05-28T01:59:11-07:00</committed-date>
  <authored-date>2009-05-28T01:59:11-07:00</authored-date>
  <message>validates_format_of is deprecated [#76 status:resolved]</message>
  <tree>bf1b461da379cdfa2eeba2c22c5ee679fed98ce6</tree>
  <committer>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </committer>
</commit>
