<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>mack-orm/lib/mack-orm/genosaurus_helpers.rb</filename>
    </added>
    <added>
      <filename>mack-orm/lib/mack-orm/model_column.rb</filename>
    </added>
    <added>
      <filename>mack-orm/lib/mack-orm/orm_helpers.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/Rakefile</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/controllers/default_controller.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/controllers/people_and_users_controller.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/controllers/users_controller.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/models/person.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/models/user.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/default/index.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/layouts/application.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/people_and_users/create.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/users/_user_errors.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/users/create.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/users/edit.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/users/model_password_field_test.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/users/model_text_field_test.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/app/views/users/model_textarea_test.html.erb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/app_config/default.yml</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/app_config/development.yml</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/app_config/production.yml</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/app_config/test.yml</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/database.yml</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/initializers/gems.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/config/routes.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/public/favicon.ico</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/public/stylesheets/scaffold.css</filename>
    </added>
    <added>
      <filename>mack-orm/spec/fake_application/test/test_helper.rb</filename>
    </added>
    <added>
      <filename>mack-orm/spec/lib/orm_helpers_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -11,8 +11,6 @@ fl = File.join(File.dirname(__FILE__), &quot;mack-active_record&quot;)
 require File.join(fl, &quot;database&quot;)
 require File.join(fl, &quot;database_migrations&quot;)
 require File.join(fl, &quot;helpers&quot;, &quot;orm_helpers&quot;)
-require File.join(fl, &quot;model_column&quot;)
-require File.join(fl, &quot;genosaurus_helpers&quot;)
 
 # [:migration, :model, :scaffold].each do |gen|
 #   require File.join(fl, &quot;#{gen}_generator&quot;, &quot;#{gen}_generator&quot;)</diff>
      <filename>mack-active_record/lib/mack-active_record.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require 'pathname'
 require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'
 
 describe MigrationGenerator do
-  include Mack::Genosaurus::ActiveRecord::Helpers
+  include Mack::Genosaurus::Orm::Helpers
     
   before(:each) do
     @content_path = File.join(File.dirname(__FILE__), &quot;contents&quot;)</diff>
      <filename>mack-active_record/spec/lib/migration_generator_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require 'pathname'
 require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'
 
 describe ScaffoldGenerator do
-  include Mack::Genosaurus::ActiveRecord::Helpers
+  include Mack::Genosaurus::Orm::Helpers
 
   before(:each) do
     @view_path  = File.join(Mack.root, &quot;app&quot;, &quot;views&quot;, &quot;zoos&quot;)</diff>
      <filename>mack-active_record/spec/lib/scaffold_generator_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,9 +18,6 @@ require File.join(fl, &quot;resource&quot;)
 require File.join(fl, &quot;runner&quot;)
 require File.join(fl, &quot;test_extensions&quot;)
 
-require File.join(fl, &quot;model_column&quot;)
-require File.join(fl, &quot;genosaurus_helpers&quot;)
-
 
 [:helpers, :migration_generator, :model_generator, :scaffold_generator, :dm_patches].each do |folder|
   Dir.glob(File.join(fl, folder.to_s, &quot;**/*.rb&quot;)).each {|f| require f}</diff>
      <filename>mack-data_mapper/lib/mack-data_mapper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,28 +49,6 @@ module Mack
         end
       end
       
-      # Generates a text input tag for a given model and field
-      # 
-      # Example:
-      # model_text_field(@user, :username) # =&gt; &lt;input id=&quot;user_username&quot; name=&quot;user[username]&quot; type=&quot;text&quot; value=&quot;&lt;@user.username's value&gt;&quot; /&gt;
-      def model_text_field(model, property, options = {})
-        m_name = model.class.to_s.underscore
-        non_content_tag(:input, {:type =&gt; :text, :name =&gt; &quot;#{m_name}[#{property}]&quot;, :id =&gt; &quot;#{m_name}_#{property}&quot;, :value =&gt; model.send(property)}.merge(options))
-      end
-      
-      # Generates a password input tag for a given model and field
-      # 
-      # Example:
-      # model_password_field(@user, :password) # =&gt; &lt;input id=&quot;user_username&quot; name=&quot;user[username]&quot; type=&quot;password&quot; value=&quot;&lt;@user.username's value&gt;&quot; /&gt;
-      def model_password_field(model, property, options = {})
-        model_text_field(model, property, {:type =&gt; :password}.merge(options))
-      end
-      
-      def model_textarea(model, property, options = {})
-        m_name = model.class.to_s.underscore
-        content_tag(:textarea, {:name =&gt; &quot;#{m_name}[#{property}]&quot;, :id =&gt; &quot;#{m_name}_#{property}&quot;, :cols =&gt; 60, :rows =&gt; 20}.merge(options), model.send(property))
-      end
-
     end # OrmHelpers
   end # ViewHelpers
 end # Mack
\ No newline at end of file</diff>
      <filename>mack-data_mapper/lib/mack-data_mapper/helpers/orm_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,7 +42,7 @@ class MigrationGenerator &lt; Genosaurus
   end
   
   def migration_columns # :nodoc:
-    [Mack::Genosaurus::DataMapper::ModelColumn.new(param(:name), &quot;id:serial&quot;), columns].flatten
+    [Mack::Genosaurus::Orm::ModelColumn.new(param(:name), &quot;id:serial&quot;), columns].flatten
   end
   
   def get_column_type(column) # :nodoc:</diff>
      <filename>mack-data_mapper/lib/mack-data_mapper/migration_generator/migration_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,7 +53,7 @@ class ModelGenerator &lt; Genosaurus
   end
   
   def migration_columns # :nodoc:
-    [Mack::Genosaurus::DataMapper::ModelColumn.new(param(:name), &quot;id:serial&quot;), columns].flatten
+    [Mack::Genosaurus::Orm::ModelColumn.new(param(:name), &quot;id:serial&quot;), columns].flatten
   end
   
 end
\ No newline at end of file</diff>
      <filename>mack-data_mapper/lib/mack-data_mapper/model_generator/model_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,16 +12,4 @@ class UsersController
     render(:action, :edit)
   end
   
-  def model_text_field_test
-    @user = User.new(:username =&gt; &quot;markbates&quot;)
-  end
-  
-  def model_password_field_test
-    @user = User.new(:username =&gt; &quot;markbates&quot;)
-  end
-  
-  def model_textarea_test
-    @user = User.new(:username =&gt; &quot;markbates&quot;)
-  end
-  
 end
\ No newline at end of file</diff>
      <filename>mack-data_mapper/spec/fake_application/app/controllers/users_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,5 @@
 Mack::Routes.build do |r|
   
-  r.with_options(:controller =&gt; :users) do |c|
-    c.model_text_field_test &quot;/users/model_text_field_test&quot;, :action =&gt; :model_text_field_test
-    c.model_password_field_test &quot;/users/model_password_field_test&quot;, :action =&gt; :model_password_field_test
-    c.model_textarea_test &quot;/users/model_textarea_test&quot;, :action =&gt; :model_textarea_test
-  end
   r.resource :users
   r.resource :people_and_users
   </diff>
      <filename>mack-data_mapper/spec/fake_application/config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,8 @@ require 'pathname'
 require Pathname(__FILE__).dirname.expand_path.parent.parent + 'spec_helper'
 
 describe Mack::ViewHelpers::DataMapperHelpers do
-  include Mack::ViewHelpers::DataMapperHelpers
+  include Mack::ViewHelpers
+  
   describe &quot;error_messages_for&quot; do
     
     before(:all) do
@@ -36,31 +37,4 @@ describe Mack::ViewHelpers::DataMapperHelpers do
     
   end
   
-  describe &quot;model_text_field&quot; do
-    
-    it &quot;should generate a model_text_field tag for the model's property&quot; do
-      get model_text_field_test_url
-      response.body.should == %{&lt;input id=&quot;user_username&quot; name=&quot;user[username]&quot; type=&quot;text&quot; value=&quot;markbates&quot; /&gt;}
-    end
-    
-  end
-  
-  describe &quot;model_password_field&quot; do
-    
-    it &quot;should generate a model_password_field tag for the model's property&quot; do
-      get model_password_field_test_url
-      response.body.should == %{&lt;input id=&quot;user_username&quot; name=&quot;user[username]&quot; type=&quot;password&quot; value=&quot;markbates&quot; /&gt;}
-    end
-    
-  end
-  
-  describe &quot;model_textarea&quot; do
-    
-    it &quot;should generate a textarea tag&quot; do
-      get model_textarea_test_url
-      response.body.should == %{&lt;textarea cols=&quot;60&quot; id=&quot;user_username&quot; name=&quot;user[username]&quot; rows=&quot;20&quot;&gt;markbates&lt;/textarea&gt;}
-    end
-    
-  end
-  
 end
\ No newline at end of file</diff>
      <filename>mack-data_mapper/spec/lib/helpers/orm_helpers_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,9 @@
-require File.join(File.dirname(__FILE__), &quot;mack-orm&quot;, &quot;database&quot;)
-require File.join(File.dirname(__FILE__), &quot;mack-orm&quot;, &quot;database_migrations&quot;)
\ No newline at end of file
+require 'rubygems'
+require 'genosaurus'
+
+base = File.join(File.dirname(__FILE__), &quot;mack-orm&quot;)
+require File.join(base, &quot;database&quot;)
+require File.join(base, &quot;database_migrations&quot;)
+require File.join(base, &quot;genosaurus_helpers&quot;)
+require File.join(base, &quot;model_column&quot;)
+require File.join(base, &quot;orm_helpers&quot;)
\ No newline at end of file</diff>
      <filename>mack-orm/lib/mack-orm.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,15 @@ require 'rubygems'
 gem 'rspec'
 require 'spec'
 require 'rake'
-require 'fileutils'
\ No newline at end of file
+require 'fileutils'
+
+
+ENV[&quot;MACK_ROOT&quot;] = File.join(File.dirname(__FILE__), &quot;fake_application&quot;)
+ENV[&quot;MACK_ENV&quot;] = &quot;test&quot;
+
+$: &lt;&lt; File.expand_path(File.dirname(__FILE__) + &quot;/../lib&quot;)
+$: &lt;&lt; File.expand_path(File.dirname(__FILE__) + &quot;/../../mack-data_mapper/lib&quot;)
+
+require 'mack'
+
+require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;, &quot;mack-orm&quot;)</diff>
      <filename>mack-orm/spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>mack-active_record/lib/mack-active_record/genosaurus_helpers.rb</filename>
    </removed>
    <removed>
      <filename>mack-active_record/lib/mack-active_record/model_column.rb</filename>
    </removed>
    <removed>
      <filename>mack-data_mapper/lib/mack-data_mapper/genosaurus_helpers.rb</filename>
    </removed>
    <removed>
      <filename>mack-data_mapper/lib/mack-data_mapper/model_column.rb</filename>
    </removed>
    <removed>
      <filename>mack-data_mapper/spec/fake_application/app/views/users/model_password_field_test.html.erb</filename>
    </removed>
    <removed>
      <filename>mack-data_mapper/spec/fake_application/app/views/users/model_text_field_test.html.erb</filename>
    </removed>
    <removed>
      <filename>mack-data_mapper/spec/fake_application/app/views/users/model_textarea_test.html.erb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>920e0c8941f3518ef32f8d4b6d823a468fd5a677</id>
    </parent>
  </parents>
  <author>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </author>
  <url>http://github.com/markbates/mack-more/commit/ed02d23180e00a926bebb8490228fcdf8808cf4a</url>
  <id>ed02d23180e00a926bebb8490228fcdf8808cf4a</id>
  <committed-date>2008-08-12T13:39:56-07:00</committed-date>
  <authored-date>2008-08-12T13:39:56-07:00</authored-date>
  <message>more refactoring of the orm stuff. [#87]</message>
  <tree>1bb5900fecec63e89fd9bdb0f0cfac3d4f456ea9</tree>
  <committer>
    <name>Mark Bates</name>
    <email>mark@markbates.com</email>
  </committer>
</commit>
