<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README.markdown</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+- version: 2.0.4 (beta)
+    - Added a rake task to generate a test_harness (for use in development). From the comatose directory, run: `rake test_harness TARGET=../comatose_test_harness`. This will create an empty rails app, copy this working folder over to vendor/plugins/comatose, install acts_as_list and acts_as_tree, and run any setup needed, like script/generate comatose_migration and rake db:migrate.
+    - Bugfix in tasks/comatose.rake
+    - Comatose migration generator now adds the default comatose routes (`map.comatose_admin` and `map.comatose_root ''`) to the top of the routes.rb file. POSSIBLE GOTCHA: `map.comatose_root` should be moved to the bottom of the routes file!
+
 - version: 2.0.3 (beta)
     - Moving from alpha to beta!
     - staugaard: Added import and export of pages in admin controller</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -8,14 +8,13 @@ Be sure and install the acts_as_tree and acts_as_list plugins!
 From here you'll want to run:
 
   $ ./script/generate comatose_migration
+  
+NOTE: The generator will add the default comatose routes to the top of your routes.rb file. You'll want to move `map.comatose_root ''` to the bottom of your routes block.
 
 When that's finished, run:
 
   $ rake db:migrate
 
-That's it for the Comatose setup! Now just add the following line to the bottom of your config/routes.rb file:
-
-  map.comatose_admin
-  map.comatose_root ''
+That's it for the Comatose setup! 
 
 Be sure to read the README file, and the 'Getting Started' guide. They are located at vendor/plugins/comatose/README and http://comatose.rubyforge.org/getting-started-guide respectively.</diff>
      <filename>INSTALL</filename>
    </modified>
    <modified>
      <diff>@@ -77,7 +77,7 @@ EOGS
   puts &quot;Update GEMSPEC&quot;
 end
 
-desc &quot;Builds the admin costumizable layout, the embedded layout have the JS and CSS inlined&quot;
+desc &quot;Builds the admin customizable layout, the embedded layout have the JS and CSS inlined&quot;
 task :build do
   require 'erb'
 
@@ -120,3 +120,52 @@ task :build do
   # That's it -- we're done.
   puts &quot;Finished.&quot;
 end
+
+
+desc &quot;Creates an empty rails application for use as a test harness&quot;
+task :test_harness do
+  target = ENV['TARGET']
+  if target.nil?
+    puts &quot;You must specify a TARGET for the test harness&quot;
+    exit(1)
+  else
+    target = File.expand_path target
+    if target == File.expand_path(File.dirname(__FILE__))
+      puts &quot;You must specify a folder other than this one.&quot;
+      exit(1)
+    end
+  end
+  comatose_plugin_path = target / 'vendor' / 'plugins' / 'comatose'
+
+  puts &quot;Creating test harness at #{ target }&quot;
+  run_sh &quot;rails -d sqlite3 #{target}&quot;
+  run_sh &quot;cp -r #{ File.dirname(__FILE__) }/ #{ comatose_plugin_path }&quot;
+  run_sh &quot;ruby #{ comatose_plugin_path / 'install.rb' }&quot;
+  run_sh &quot;ruby #{ target / 'script' / 'generate' } comatose_migration&quot;
+  run_sh &quot;ruby #{ comatose_plugin_path / 'bin' / 'comatose' } --plugin #{ target }&quot;
+  run_sh &quot;cd #{ target } &amp;&amp; rake db:migrate&quot;
+
+  run_sh &quot;cp #{ target / 'db' / 'development.sqlite3' } #{target / 'db' / 'test.sqlite3'}&quot;
+  run_sh &quot;rm #{ target / 'public' / 'index.html' }&quot;
+  run_sh &quot;cp #{ comatose_plugin_path / 'views' / 'layouts' / 'comatose_content.html.erb' } #{ target / 'app' / 'views' / 'layouts' / 'comatose_content.html.erb' }&quot;
+  
+  # Remove me soon!
+  run_sh &quot;cd #{ target } &amp;&amp; ruby #{ target / 'script' / 'plugin' } install acts_as_tree&quot;
+  run_sh &quot;cd #{ target } &amp;&amp; ruby #{ target / 'script' / 'plugin' } install acts_as_list&quot;
+
+  puts &quot;Done.&quot;
+end
+
+class String
+  def /(str)
+    File.join(self, str)
+  end
+end
+
+def run_sh(command)
+  puts &quot;-------------------------------------------------------------------------------&quot;
+  puts &quot;Running `#{command}`:&quot;
+  sh command
+  puts
+  puts
+end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -3,5 +3,5 @@ summary: A micro CMS for embedding in Rails applications.
 homepage: http://comatose.rubyforge.org
 plugin: git://github.com/darthapo/comatose.git
 license: MIT
-version: 2.0.3
+version: 2.0.4
 rails_version: 2+</diff>
      <filename>about.yml</filename>
    </modified>
    <modified>
      <diff>@@ -13,21 +13,21 @@ begin
     
     opts.on(&quot;-g&quot;, &quot;--gem&quot;, &quot;Initialize to run from gem (DEFAULT)&quot;) do |s| 
       options[:action] = :gem
-      puts &quot;GEM&quot;
+      puts &quot;Configuring to run from GEM...&quot;
     end
 
     opts.on(&quot;-p&quot;, &quot;--plugin&quot;, &quot;Install as plugin&quot;) do |s| 
       options[:action] = :plugin
-      puts &quot;PLUGIN&quot;
+      puts &quot;Configuring to run from PLUGIN...&quot;
     end
 
-    opts.on(&quot;-u&quot;, &quot;--update&quot;, &quot;Update current installation (CURRENTLY UNIMPLEMENTED)&quot;) do |s| 
-      options[:action] = :update
-      puts &quot;UPDATE&quot;
-    end
+    # opts.on(&quot;-u&quot;, &quot;--update&quot;, &quot;Update current installation (CURRENTLY UNIMPLEMENTED)&quot;) do |s| 
+    #   options[:action] = :update
+    #   puts &quot;UPDATE&quot;
+    # end
 
     opts.separator &quot;&quot;
-            opts.separator &quot;Common options:&quot;
+    opts.separator &quot;Common options:&quot;
 
     # No argument, shows at tail.  This will print an options summary.
     # Try it and see!
@@ -71,34 +71,34 @@ comatose_initializer_path = RAILS_ROOT / 'config' / 'initializers' / 'comatose.r
 unless File.exists?( comatose_initializer_path )
   File.open(comatose_initializer_path, 'w') do |f|
     f.write &lt;&lt;-EOT
-    require 'comatose'
-    
-    # 1.) You should add the following snippet to your environment.rb too, probably...
-    #
-    #        gem 'comatose' 
-    #
-    # 2.) Following is an example configuration block for Comatose:    
-    #
-    Comatose.configure do |config|
-      # Includes AuthenticationSystem in the ComatoseController
-      #config.includes &lt;&lt; :authenticated_system
-
-      # admin 
-      #config.admin_title = &quot;My Content&quot;
-      #config.admin_sub_title = &quot;Content for the rest of us...&quot;
-
-      # Includes AuthenticationSystem in the ComatoseAdminController
-      #config.admin_includes &lt;&lt; :authenticated_system
-
-      # Calls :login_required as a before_filter
-      #config.admin_authorization = :login_required
-      # Returns the author name (login, in this case) for the current user
-      #config.admin_get_author do
-      #  current_user.login
-      #end
-      
-      # See the getting started guide at http://comatose.rubyforge.org for more...
-    end
+require 'comatose'
+
+# 1.) You should add the following snippet to your environment.rb too, probably...
+#
+#        gem 'comatose' 
+#
+# 2.) Following is an example configuration block for Comatose:    
+#
+Comatose.configure do |config|
+  # Includes AuthenticationSystem in the ComatoseController
+  #config.includes &lt;&lt; :authenticated_system
+
+  # admin 
+  #config.admin_title = &quot;My Content&quot;
+  #config.admin_sub_title = &quot;Content for the rest of us...&quot;
+
+  # Includes AuthenticationSystem in the ComatoseAdminController
+  #config.admin_includes &lt;&lt; :authenticated_system
+
+  # Calls :login_required as a before_filter
+  #config.admin_authorization = :login_required
+  # Returns the author name (login, in this case) for the current user
+  #config.admin_get_author do
+  #  current_user.login
+  #end
+  
+  # See the getting started guide at http://comatose.rubyforge.org for more...
+end
 EOT
   end
 else</diff>
      <filename>bin/comatose</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 # Generated on Tue May 20 20:13:12 -0500 2008
 Gem::Specification.new do |s|
   s.name = &quot;comatose&quot;
-  s.version = &quot;2.0.3&quot;
+  s.version = &quot;2.0.4&quot;
   s.date = &quot;2008-10-10&quot; # 2008-05-20
   s.summary = &quot;Micro CMS designed for being embedded into existing Rails applications&quot;
   s.email = &quot;matt@elucidata.net&quot;</diff>
      <filename>comatose.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,15 @@
+class Rails::Generator::Commands::Create
+  def new_route(name, options='')
+    sentinel = 'ActionController::Routing::Routes.draw do |map|'
+    logger.route &quot;map.#{name} #{options}&quot;
+    unless options[:pretend]
+      gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
+        &quot;#{match}\n  map.#{name} #{options}\n&quot;
+      end
+    end
+  end
+end
+
 class ComatoseMigrationGenerator &lt; Rails::Generator::Base
 
 
@@ -38,6 +50,8 @@ class ComatoseMigrationGenerator &lt; Rails::Generator::Base
       case @mode
       when :new
         m.migration_template 'migration.rb', 'db/migrate', :migration_file_name=&gt;'add_comatose_support', :assigns=&gt;{:class_name=&gt;'AddComatoseSupport'}
+        m.new_route 'comatose_root', &quot;''&quot;
+        m.new_route 'comatose_admin'
         
       when :upgrade
         from = @upgrade_from
@@ -57,3 +71,4 @@ class ComatoseMigrationGenerator &lt; Rails::Generator::Base
     end
   end
 end
+</diff>
      <filename>generators/comatose_migration/comatose_migration_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+require 'fileutils'
+
 # Copy the images (*.gif) into RAILS_ROOT/public/images/comatose
 RAILS_ROOT = File.join(File.dirname(__FILE__), '../../../')
 </diff>
      <filename>install.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 module Comatose
-  VERSION = &quot;2.0&quot;
-  VERSION_STRING = &quot;#{VERSION}  (uber-alpha)&quot;
+  VERSION = &quot;2.0.4&quot;
+  VERSION_STRING = &quot;#{VERSION}  (beta)&quot;
 end
\ No newline at end of file</diff>
      <filename>lib/comatose/version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 begin 
-  require 'comatose'
+  require 'comatose/version'
 rescue LoadError
   $: &lt;&lt; File.join(File.dirname(__FILE__), '..', 'lib')
 end</diff>
      <filename>tasks/comatose.rake</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>README.rdoc</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>57515730d5fc11c405d4aa08573a98e34096f263</id>
    </parent>
  </parents>
  <author>
    <name>M@ McCray</name>
    <email>darthapo@gmail.com</email>
  </author>
  <url>http://github.com/darthapo/comatose/commit/484adfec1985875a0fdab0df15821e972571d0c1</url>
  <id>484adfec1985875a0fdab0df15821e972571d0c1</id>
  <committed-date>2008-10-30T23:35:02-07:00</committed-date>
  <authored-date>2008-10-30T23:35:02-07:00</authored-date>
  <message>* Added a rake task to generate a test_harness (for use in development). From the comatose directory, run: `rake test_harness TARGET=../comatose_test_harness`. This will create an empty rails app, copy this working folder over to vendor/plugins/comatose, install acts_as_list and acts_as_tree, and run any setup needed, like script/generate comatose_migration and rake db:migrate.
* Bugfix in tasks/comatose.rake
* Comatose migration generator now adds the default comatose routes (`map.comatose_admin` and `map.comatose_root ''`) to the top of the routes.rb file. POSSIBLE GOTCHA: `map.comatose_root` should be moved to the bottom of the routes file!</message>
  <tree>ff9895a50e5b8e1724c6ab572955d605ab1a389a</tree>
  <committer>
    <name>M@ McCray</name>
    <email>darthapo@gmail.com</email>
  </committer>
</commit>
