<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>annotate_models.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,17 +1,17 @@
      _
-    /_|      _/__/_ 
+    /_|      _/__/_
    (  |/)/)()/(//(-
    ________________
 
 
-Add a comment summarizing the current schema to the bottom of each 
-ActiveRecord model, test file and fixture.
+Add a comment summarizing the current schema to the bottom of each
+ActiveRecord model, fixture file.
+
 If you are using Object Daddy, it`ll annotate your example files too.
 
  # == Schema Info
- # Schema version: 20081001061831
  #
- # Table name: line_item
+ # Table name: line_items
  #
  #  id                  :integer(11)    not null, primary key
  #  quantity            :integer(11)    not null
@@ -23,17 +23,16 @@ If you are using Object Daddy, it`ll annotate your example files too.
   class LineItem &lt; ActiveRecord::Base
     belongs_to :product
    . . .
-   
+
 Annotates geometrical columns, geom type and srid, when using SpatialAdapter or PostgisAdapter:
 
  # == Schema Info
- # Schema version: 20081213204851
  #
  # Table name: trips
  #
  #  local           :geometry        point, 4326
  #  path            :geometry        line_string, 4326
-          
+
 
 == INSTALL
 
@@ -41,6 +40,28 @@ Annotates geometrical columns, geom type and srid, when using SpatialAdapter or
 
 
 == HOW TO USE:
+=======
+== Warning
+
+Note that this code will blow away the initial/final comment
+block in your models if it looks like it was previously added
+by annotate models, so you don't want to add additional text
+to an automatically created comment block.
+
+       * * Back up your model files before using... * *
+
+== Install
+
+From rubyforge:
+
+  sudo gem install annotate
+
+From github:
+
+  gem sources -a http://gems.github.com
+  sudo gem install ctran-annotate
+
+== Usage
 
 To annotate all your models:
 
@@ -51,7 +72,6 @@ To annotate routes.rb:
 
   annotate -r
 
-
 More:
 
   annotate -h
@@ -66,7 +86,7 @@ Annotate on the head of the file:
 
   annotate -p [before|after]
 
-  
+
 == WARNING
 
 Note that this code will blow away the initial/final comment
@@ -75,7 +95,7 @@ by annotate models, so you don't want to add additional text
 to an automatically created comment block.
 
         * * Back up your model files before using... * *
-        
+
 == LINKS
 
 * Factory Girl =&gt; http://github.com/thoughtbot/factory_girl (NOT IMPLEMENTED)
@@ -87,18 +107,31 @@ to an automatically created comment block.
 
 == TODO
 
-* Spec 
+* Spec
 
 
 == LICENSE:
+=======
+More options:
+
+  Usage: annotate [options]
+      -d, --delete                     Remove annotations from all model files
+      -p, --position [before|after]    Place the annotations at the top (before) or the bottom (after) of the model file
+      -r, --routes                     Annotate routes.rb with the output of 'rake routes'
+      -v, --version                    Show the current version of this gem
+      -m, --show-migration             Include the migration version number in the annotation
+      -i, --show-indexes               List the table's database indexes in the annotation
+          --model-dir dir              Annotate model files stored in dir rather than app/models
 
-Original code by:
+== LICENSE:
 
-  Dave Thomas -- Pragmatic Programmers, LLC
+Released under the same license as Ruby. No Support. No Warranty.
 
-Refactored, improved and maintained by:
+== Author:
 
-  Marcos Piccinini ( http://github.com/nofxx/annotate )
+Original code by:
+
+  Dave Thomas -- Pragmatic Programmers, LLC
 
 AnnotateModels mods by:
 
@@ -112,14 +145,22 @@ AnnotateRoutes originally by:
 == Forked from:
 
   http://github.com/ctran/annotate_models
-  
+
 
 == Modifications
  - alex@pivotallabs.com
+=======
+Modifications by:
+
+ - Alex Chaffee - http://github.com/alexch - alex@pivotallabs.com
  - Cuong Tran - http://github.com/ctran
  - Jack Danger - http://github.com/JackDanger
  - Michael Bumann - http://github.com/bumi
  - Henrik Nyh - http://github.com/henrik
+ - Marcos Piccinini - http://github.com/nofxx
 
+and many others that I may have missed to add.
 
-Released under the same license as Ruby. No Support. No Warranty.
+== This fork
+
+  Marcos Piccinini ( http://github.com/nofxx/annotate )
\ No newline at end of file</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,28 +1,28 @@
-%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
-require File.dirname(__FILE__) + '/lib/annotate'
-
-# Generate all the Rake tasks
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
-$hoe = Hoe.new('annotate', Annotate::VERSION) do |p|
-  p.developer('Marcos Piccinini', 'x@nofxx.com')
-  p.changes              = p.paragraphs_of(&quot;History.txt&quot;, 0..1).join(&quot;\n\n&quot;)
-  p.rubyforge_name       = p.name 
-  p.url                  = &quot;http://github.com/nofxx/annotate&quot;
-  p.summary              = &quot;Annotates Rails Models and Routes&quot;
-  p.description          = &quot;Annotates Rails Models and Routes&quot;
-  
-  p.extra_dev_deps = [
-    ['newgem', &quot;&gt;= #{::Newgem::VERSION}&quot;]
-  ]
-  
-  p.clean_globs |= %w[**/.DS_Store tmp *.log]
-  path = (p.rubyforge_name == p.name) ? p.rubyforge_name : &quot;\#{p.rubyforge_name}/\#{p.name}&quot;
-  p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
-  p.rsync_args = '-av --delete --ignore-errors'
-end
-
-require 'newgem/tasks' # load /tasks/*.rake
-Dir['tasks/**/*.rake'].each { |t| load t }
-
-# TODO - want other tests/tasks run by default? Add them to the list
-# task :default =&gt; [:spec, :features]
+%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
+require File.dirname(__FILE__) + '/lib/annotate'
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.new('annotate', Annotate::VERSION) do |p|
+  p.developer('Cuong Tran', 'ctran@pragmaquest.com')
+  p.changes              = p.paragraphs_of(&quot;History.txt&quot;, 0..1).join(&quot;\n\n&quot;)
+  p.rubyforge_name       = 'annotate-models'
+  p.url                  = &quot;http://github.com/ctran/annotate_models&quot;
+  p.summary              = &quot;Annotates Rails Models, routes, and others&quot;
+  p.description          = &quot;Annotates Rails Models, routes, and others&quot;
+
+  p.extra_dev_deps = [
+    ['newgem', &quot;&gt;= #{::Newgem::VERSION}&quot;]
+  ]
+
+  p.clean_globs |= %w[**/.DS_Store tmp *.log]
+  path = (p.rubyforge_name == p.name) ? p.rubyforge_name : &quot;\#{p.rubyforge_name}/\#{p.name}&quot;
+  p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
+  p.rsync_args = '-av --delete --ignore-errors'
+end
+
+require 'newgem/tasks' # load /tasks/*.rake
+Dir['tasks/**/*.rake'].each { |t| load t }
+
+# TODO - want other tests/tasks run by default? Add them to the list
+# task :default =&gt; [:spec, :features]</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,7 @@
 
 Gem::Specification.new do |s|
   s.name = %q{annotate}
+&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD:annotate.gemspec
   s.version = &quot;2.2.7&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
@@ -20,12 +21,33 @@ Gem::Specification.new do |s|
   s.rubyforge_project = %q{annotate}
   s.rubygems_version = %q{1.3.1}
   s.summary = %q{Annotates Rails Models and Routes}
+=======
+  s.version = &quot;2.0.2&quot;
+
+  s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 0&quot;) if s.respond_to? :required_rubygems_version=
+  s.authors = [&quot;Cuong Tran&quot;]
+  s.date = %q{2009-05-06}
+  s.default_executable = %q{annotate}
+  s.description = %q{Annotates Rails Models, routes, and others}
+  s.email = [&quot;ctran@pragmaquest.com&quot;]
+  s.executables = [&quot;annotate&quot;]
+  s.extra_rdoc_files = [&quot;History.txt&quot;, &quot;README.rdoc&quot;]
+  s.files = [&quot;History.txt&quot;, &quot;README.rdoc&quot;, &quot;Rakefile&quot;, &quot;annotate_models.gemspec&quot;, &quot;bin/annotate&quot;, &quot;lib/annotate.rb&quot;, &quot;lib/annotate/annotate_models.rb&quot;, &quot;lib/annotate/annotate_routes.rb&quot;, &quot;lib/tasks/annotate_models.rake&quot;, &quot;lib/tasks/annotate_routes.rake&quot;]
+  s.has_rdoc = true
+  s.homepage = %q{http://github.com/ctran/annotate_models}
+  s.rdoc_options = [&quot;--main&quot;, &quot;README.rdoc&quot;]
+  s.require_paths = [&quot;lib&quot;]
+  s.rubyforge_project = %q{annotate-models}
+  s.rubygems_version = %q{1.3.1}
+  s.summary = %q{Annotates Rails Models, routes, and others}
+&gt;&gt;&gt;&gt;&gt;&gt;&gt; ctran/master:annotate.gemspec
 
   if s.respond_to? :specification_version then
     current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
     s.specification_version = 2
 
     if Gem::Version.new(Gem::RubyGemsVersion) &gt;= Gem::Version.new('1.2.0') then
+&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD:annotate.gemspec
       s.add_development_dependency(%q&lt;newgem&gt;, [&quot;&gt;= 1.3.0&quot;])
       s.add_development_dependency(%q&lt;hoe&gt;, [&quot;&gt;= 1.8.0&quot;])
     else
@@ -34,6 +56,16 @@ Gem::Specification.new do |s|
     end
   else
     s.add_dependency(%q&lt;newgem&gt;, [&quot;&gt;= 1.3.0&quot;])
+=======
+      s.add_development_dependency(%q&lt;newgem&gt;, [&quot;&gt;= 1.4.1&quot;])
+      s.add_development_dependency(%q&lt;hoe&gt;, [&quot;&gt;= 1.8.0&quot;])
+    else
+      s.add_dependency(%q&lt;newgem&gt;, [&quot;&gt;= 1.4.1&quot;])
+      s.add_dependency(%q&lt;hoe&gt;, [&quot;&gt;= 1.8.0&quot;])
+    end
+  else
+    s.add_dependency(%q&lt;newgem&gt;, [&quot;&gt;= 1.4.1&quot;])
+&gt;&gt;&gt;&gt;&gt;&gt;&gt; ctran/master:annotate.gemspec
     s.add_dependency(%q&lt;hoe&gt;, [&quot;&gt;= 1.8.0&quot;])
   end
 end</diff>
      <filename>annotate.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -7,15 +7,17 @@ task = :annotate_models
 
 OptionParser.new do |opts|
   opts.banner = &quot;Usage: annotate [options]&quot;
-  opts.on('-d', '--delete') { task = :remove_annotation }
-  opts.on('-p', '--position [before|after]', ['before', 'after']) { |p| ENV['position'] = p }
-  opts.on('-r', '--routes') { task = :annotate_routes }
-  opts.on('-v', '--version') { puts &quot;Annotate v#{Annotate::VERSION}&quot;; exit }
+  opts.on('-d', '--delete', &quot;Remove annotations from all model files&quot;) { task = :remove_annotation }
+  opts.on('-p', '--position [before|after]', ['before', 'after'], &quot;Place the annotations at the top (before) or the bottom (after) of the model file&quot;) { |p| ENV['position'] = p }
+  opts.on('-r', '--routes', &quot;Annotate routes.rb with the output of 'rake routes'&quot;) { task = :annotate_routes }
+  opts.on('-v', '--version', &quot;Show the current version of this gem&quot;) { puts &quot;Annotate v#{Annotate::VERSION}&quot;; exit }
+  opts.on('-m', '--show-migration', &quot;Include the migration version number in the annotation&quot;) { ENV['include_version'] = &quot;yes&quot; }
+  opts.on('-i', '--show-indexes', &quot;List the table's database indexes in the annotation&quot;) { ENV['show_indexes'] = &quot;yes&quot; }
+  opts.on('--model-dir dir', &quot;Annotate model files stored in dir rather than app/models&quot;) {|dir| ENV['model_dir'] = dir }
 end.parse!
 
-begin
+if Annotate.load_tasks
   Rake::Task[task].invoke
-  #TODO: rescue only rake error
-rescue NameError =&gt; e
-  puts &quot;Can`t find Rake. Are we in a Rails folder?&quot;
+else
+  STDERR.puts &quot;Can't find Rakefile. Are we in a Rails folder?&quot;
 end</diff>
      <filename>bin/annotate</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,15 @@ $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
 module Annotate
-  VERSION = '2.2.7'
-end
+  VERSION = '2.3'
 
-begin
- load 'Rakefile' 
- Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
-rescue LoadError =&gt; e
-  nil
+  def self.load_tasks
+    if File.exists?('Rakefile')
+      load 'Rakefile'
+      Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
+      return true
+    else
+      return false
+    end
+  end
 end
-</diff>
      <filename>lib/annotate.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,6 @@ module AnnotateModels
     # Annotate Models plugin use this header
     COMPAT_PREFIX = &quot;== Schema Info&quot;
     PREFIX = &quot;== Schema Information&quot;
-    
-    MODEL_DIR   = &quot;app/models&quot;
     FIXTURE_DIRS = [&quot;test/fixtures&quot;,&quot;spec/fixtures&quot;]
     # File.join for windows reverse bar compat?
     # I dont use windows, can`t test
@@ -12,7 +10,14 @@ module AnnotateModels
     SPEC_MODEL_DIR    = File.join(&quot;spec&quot;, &quot;models&quot;)
     # Object Daddy http://github.com/flogic/object_daddy/tree/master
     EXEMPLARS_DIR     = File.join(&quot;spec&quot;, &quot;exemplars&quot;)
-    
+
+    def model_dir
+      @model_dir || &quot;app/models&quot;
+    end
+
+    def model_dir=(dir)
+      @model_dir = dir
+    end
 
     # Simple quoting for the default column value
     def quote(value)
@@ -32,7 +37,7 @@ module AnnotateModels
     # to create a comment block containing a line for
     # each column. The line contains the column name,
     # the type (and length), and any optional attributes
-    def get_schema_info(klass, header)
+    def get_schema_info(klass, header, options = {})
       info = &quot;# #{header}\n#\n&quot;
       info &lt;&lt; &quot;# Table name: #{klass.table_name}\n#\n&quot;
 
@@ -49,19 +54,36 @@ module AnnotateModels
         else
           col_type &lt;&lt; &quot;(#{col.limit})&quot; if col.limit
         end
-       
+
         # Check out if we got a geometric column
         # and print the type and SRID
         if col.respond_to?(:geometry_type)
           attrs &lt;&lt; &quot;#{col.geometry_type}, #{col.srid}&quot;
-        end  
-        
+        end
+
         info &lt;&lt; sprintf(&quot;#  %-#{max_size}.#{max_size}s:%-15.15s %s&quot;, col.name, col_type, attrs.join(&quot;, &quot;)).rstrip + &quot;\n&quot;
       end
 
+      if options[:show_indexes]
+        info &lt;&lt; get_index_info(klass)
+      end
+
       info &lt;&lt; &quot;#\n\n&quot;
     end
 
+    def get_index_info(klass)
+      index_info = &quot;#\n# Indexes\n#\n&quot;
+
+      indexes = klass.connection.indexes(klass.table_name)
+      return &quot;&quot; if indexes.empty?
+
+      max_size = indexes.collect{|index| index.name.size}.max + 1
+      indexes.each do |index|
+        index_info &lt;&lt; sprintf(&quot;#  %-#{max_size}.#{max_size}s %s %s&quot;, index.name, &quot;(#{index.columns.join(&quot;,&quot;)})&quot;, index.unique ? &quot;UNIQUE&quot; : &quot;&quot;).rstrip + &quot;\n&quot;
+      end
+      return index_info
+    end
+
     # Add a schema block to a file. If the file already contains
     # a schema info block (a comment starting with &quot;== Schema Information&quot;), check if it
     # matches the block that is already there. If so, leave it be. If not, remove the old
@@ -69,7 +91,7 @@ module AnnotateModels
     # Returns true or false depending on whether the file was modified.
     #
     # === Options (opts)
-    #  :position&lt;Symbol&gt;:: where to place the annotated section in fixture or model file, 
+    #  :position&lt;Symbol&gt;:: where to place the annotated section in fixture or model file,
     #                      &quot;before&quot; or &quot;after&quot;. Default is &quot;before&quot;.
     #  :position_in_class&lt;Symbol&gt;:: where to place the annotated section in model file
     #  :position_in_fixture&lt;Symbol&gt;:: where to place the annotated section in fixture file
@@ -84,7 +106,7 @@ module AnnotateModels
         header = Regexp.new(/(^# Table name:.*?\n(#.*\n)*\n)/)
         old_header = old_content.match(header).to_s
         new_header = info_block.match(header).to_s
-        
+
         if old_header == new_header
           false
         else
@@ -92,20 +114,20 @@ module AnnotateModels
           old_content.sub!(/^# #{COMPAT_PREFIX}.*?\n(#.*\n)*\n/, '')
 
           # Write it back
-          new_content = options[:position] == &quot;before&quot; ?  (info_block + old_content) : (old_content + &quot;\n&quot; + info_block)
+          new_content = ((options[:position] || :before).to_sym == :before) ?  (info_block + old_content) : (old_content + &quot;\n&quot; + info_block)
 
           File.open(file_name, &quot;wb&quot;) { |f| f.puts new_content }
           true
         end
       end
     end
-    
+
     def remove_annotation_of_file(file_name)
       if File.exist?(file_name)
         content = File.read(file_name)
 
         content.sub!(/^# #{COMPAT_PREFIX}.*?\n(#.*\n)*\n/, '')
-        
+
         File.open(file_name, &quot;wb&quot;) { |f| f.puts content }
       end
     end
@@ -118,10 +140,10 @@ module AnnotateModels
     # files were modified.
 
     def annotate(klass, file, header,options={})
-      info = get_schema_info(klass, header)
+      info = get_schema_info(klass, header, options)
       annotated = false
       model_name = klass.name.underscore
-      model_file_name = File.join(MODEL_DIR, file)
+      model_file_name = File.join(model_dir, file)
       if annotate_one_file(model_file_name, info, options.merge(
               :position=&gt;(options[:position_in_class] || options[:position])))
         annotated = true
@@ -130,8 +152,8 @@ module AnnotateModels
       [
         File.join(UNIT_TEST_DIR,      &quot;#{model_name}_test.rb&quot;), # test
         File.join(SPEC_MODEL_DIR,     &quot;#{model_name}_spec.rb&quot;), # spec
-        File.join(EXEMPLARS_DIR,      &quot;#{model_name}_exemplar.rb&quot;), # Object Daddy
-      ].each { |file| annotate_one_file(file, info, options.merge(:position=&gt;(options[:position_in_others] || options[:position]))) }
+        File.join(EXEMPLARS_DIR,      &quot;#{model_name}_exemplar.rb&quot;),   # Object Daddy
+      ].each { |file| annotate_one_file(file, info) }
 
       FIXTURE_DIRS.each do |dir|
         fixture_file_name = File.join(dir,klass.table_name + &quot;.yml&quot;)
@@ -144,23 +166,24 @@ module AnnotateModels
     # command line arguments, they're assumed to be either
     # the underscore or CamelCase versions of model names.
     # Otherwise we take all the model files in the
-    # app/models directory.
+    # model_dir directory.
     def get_model_files
       models = ARGV.dup
       models.shift
       models.reject!{|m| m.starts_with?(&quot;position=&quot;)}
       if models.empty?
-        Dir.chdir(MODEL_DIR) do
+        Dir.chdir(model_dir) do
           models = Dir[&quot;**/*.rb&quot;]
         end
       end
       models
     end
-  
+
     # Retrieve the classes belonging to the model names we're asked to process
     # Check for namespaced models in subdirectories as well as models
     # in subdirectories without namespacing.
     def get_model_class(file)
+      require &quot;#{model_dir}/#{file}&quot; # this is for non-rails projects, which don't get Rails auto-require magic
       model = file.gsub(/\.rb$/, '').camelize
       parts = model.split('::')
       begin
@@ -176,9 +199,16 @@ module AnnotateModels
     # then pas it to the associated block
     def do_annotations(options={})
       header = PREFIX.dup
-      version = ActiveRecord::Migrator.current_version rescue 0
-      if version &gt; 0
-        header &lt;&lt; &quot;\n# Schema version: #{version}&quot;
+
+      if options[:include_version]
+        version = ActiveRecord::Migrator.current_version rescue 0
+        if version &gt; 0
+          header &lt;&lt; &quot;\n# Schema version: #{version}&quot;
+        end
+      end
+
+      if options[:model_dir]
+        self.model_dir = options[:model_dir]
       end
 
       annotated = []
@@ -191,7 +221,7 @@ module AnnotateModels
             end
           end
         rescue Exception =&gt; e
-          puts &quot;Unable to annotate #{file}: #{e.message}&quot;
+          puts &quot;Unable to annotate #{file}: #{e.message} (#{e.backtrace.first})&quot;
         end
       end
       if annotated.empty?
@@ -200,18 +230,23 @@ module AnnotateModels
         puts &quot;Annotated (#{annotated.length}): #{annotated.join(', ')}&quot;
       end
     end
-    
-    def remove_annotations
+
+    def remove_annotations(options={})
+      p options
+      if options[:model_dir]
+        puts &quot;removing&quot;
+        self.model_dir = options[:model_dir]
+      end
       deannotated = []
       get_model_files.each do |file|
         begin
           klass = get_model_class(file)
           if klass &lt; ActiveRecord::Base &amp;&amp; !klass.abstract_class?
             deannotated &lt;&lt; klass
-            
-            model_file_name = File.join(MODEL_DIR, file)
+
+            model_file_name = File.join(model_dir, file)
             remove_annotation_of_file(model_file_name)
-            
+
             FIXTURE_DIRS.each do |dir|
               fixture_file_name = File.join(dir,klass.table_name + &quot;.yml&quot;)
               remove_annotation_of_file(fixture_file_name) if File.exist?(fixture_file_name)</diff>
      <filename>lib/annotate/annotate_models.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,14 +2,18 @@ desc &quot;Add schema information (as comments) to model and fixture files&quot;
 task :annotate_models =&gt; :environment do
   require 'annotate/annotate_models'
   options={}
-  options[:position_in_class] = ENV['position_in_class'] || ENV['position']
-  options[:position_in_fixture] = ENV['position_in_fixture'] || ENV['position']
-  options[:position_in_others] = ENV['position_in_others'] || ENV['position']
+  options[:position_in_class] = ENV['position_in_class'] || ENV['position'] || :before
+  options[:position_in_fixture] = ENV['position_in_fixture'] || ENV['position']  || :before
+  options[:show_indexes] = ENV['show_indexes']
+  options[:model_dir] = ENV['model_dir']
+  options[:include_version] = ENV['include_version']
   AnnotateModels.do_annotations(options)
 end
 
 desc &quot;Remove schema information from model and fixture files&quot;
 task :remove_annotation =&gt; :environment do
-  require 'annotate_models'
-  AnnotateModels.remove_annotations
+  require 'annotate/annotate_models'
+  options={}
+  options[:model_dir] = ENV['model_dir']
+  AnnotateModels.remove_annotations(options)
 end</diff>
      <filename>lib/tasks/annotate_models.rake</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,11 @@ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
 libs =  &quot; -r irb/completion&quot;
 # Perhaps use a console_lib to store any extra methods I may want available in the cosole
 # libs &lt;&lt; &quot; -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}&quot;
+&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD:script/console
 libs &lt;&lt;  &quot; -r #{File.dirname(__FILE__) + '/../lib/annotate.rb'}&quot;
 puts &quot;Loading annotate gem&quot;
+=======
+libs &lt;&lt;  &quot; -r #{File.dirname(__FILE__) + '/../lib/annotate_models.rb'}&quot;
+puts &quot;Loading annotate_models gem&quot;
+&gt;&gt;&gt;&gt;&gt;&gt;&gt; ctran/master:script/console
 exec &quot;#{irb} #{libs} --simple-prompt&quot;
\ No newline at end of file</diff>
      <filename>script/console</filename>
    </modified>
    <modified>
      <diff>@@ -27,8 +27,16 @@ describe AnnotateModels do
       :columns =&gt; [
         mock_column(:type =&gt; &quot;integer&quot;, :default =&gt; nil, :null =&gt; false, :name =&gt; &quot;id&quot;, :limit =&gt; nil),
         mock_column(:type =&gt; &quot;string&quot;, :default =&gt; nil, :null =&gt; false, :name =&gt; &quot;name&quot;, :limit =&gt; 50)
-      ]), &quot;Hello&quot;).should eql(&quot;# Hello\n#\n# Table name: users\n#\n#  id    :integer         not null, primary key\n#  id    :integer         not null, primary key\n#\n\n&quot;)
-
+      ]), &quot;Schema Info&quot;).should eql(&lt;&lt;-EOS)
+# Schema Info
+#
+# Table name: users
+#
+#  id    :integer         not null, primary key
+#  id    :integer         not null, primary key
+#
+
+EOS
 
   end
 </diff>
      <filename>spec/annotate/annotate_models_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@ describe AnnotateRoutes do
         File.should_receive(:exists?).with(&quot;config/routes.rb&quot;).and_return(true)
         AnnotateRoutes.should_receive(:`).with(&quot;rake routes&quot;).and_return(&quot;bad line\ngood line&quot;)
         File.should_receive(:open).with(&quot;config/routes.rb&quot;, &quot;wb&quot;).and_yield(mock_file)
-        AnnotateRoutes.should_receive(:puts).with(&quot;Route map annotated.&quot;)
+        AnnotateRoutes.should_receive(:puts).with(&quot;Route file annotated.&quot;)
       end
 
       it &quot;should annotate and add a newline!&quot; do</diff>
      <filename>spec/annotate/annotate_routes_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>License.txt</filename>
    </removed>
    <removed>
      <filename>Manifest.txt</filename>
    </removed>
    <removed>
      <filename>setup.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>3d1d6a1ce77fea97b1e0efd75bd5dc21a9eabd1b</id>
    </parent>
    <parent>
      <id>8ecd23ee73b9eb281c110deac828947d67e953be</id>
    </parent>
  </parents>
  <author>
    <name>Marcos Piccinini</name>
    <email>x@nofxx.com</email>
  </author>
  <url>http://github.com/nclark/annotate_models/commit/9e3b638535e297f8f2b9696dd0aee63c1e9a33f4</url>
  <id>9e3b638535e297f8f2b9696dd0aee63c1e9a33f4</id>
  <committed-date>2009-06-11T03:22:39-07:00</committed-date>
  <authored-date>2009-06-11T03:22:39-07:00</authored-date>
  <message>merge ctran new stuff</message>
  <tree>83c99d710abed2c3c820be2d03376c08e15d3b6a</tree>
  <committer>
    <name>Marcos Piccinini</name>
    <email>x@nofxx.com</email>
  </committer>
</commit>
