<feed xmlns="http://www.w3.org/2005/Atom">
  <div class="info" xmlns="http://www.w3.org/1999/xhtml">
           This is an Atom formatted XML site feed.
           It is intended to be viewed in a Newsreader or syndicated to another site.
           Please visit <a href="http://www.atomenabled.org/">atomenabled.org</a> for more info.
  </div>
  <title>Comatose</title>
  <link rel="self" href="http://comatose.rubyforge.org/atom.xml"/>
  <link href="http://comatose.rubyforge.org/index.html"/>
  <id href="http://comatose.rubyforge.org/index.html"/>
  <updated>Fri, 29 Jun 2007 00:00:00 +0000</updated>
  <author>
    <name>M@ McCray</name>
  </author>
  <entry>
    <title>Version 0.8.1 Released</title>
    <link href="http://comatose.rubyforge.org/2007/6/version-0-8-1-released.html"/>
    <id>tag:comatose.rubyforge.org,2007-06-29:2007/6/version-0-8-1-released.html</id>
    <updated>Fri, 29 Jun 2007 00:00:00 +0000</updated>
    <author>
      <name>M@ McCray</name>
    </author>
    <content type="html">&lt;p&gt;I know it's been a long time coming, but here it is: &lt;a href="http://mattmccray.com/svn/rails/plugins/comatose"&gt;Comatose 0.8.1&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;Over the next few days, I'll be transitioning from RubyForge over to &lt;a href="http://code.google.com/p/comatose-plugin"&gt;Google Code&lt;/a&gt; and &lt;a href="http://groups.google.com/group/comatose-plugin"&gt;Google Groups&lt;/a&gt; please start using them for reporting bugs and such.&lt;/p&gt;

&lt;p&gt;Here are the important URLs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/comatose-plugin"&gt;http://code.google.com/p/comatose-plugin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://groups.google.com/group/comatose-plugin"&gt;http://groups.google.com/group/comatose-plugin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I've also updated the docs to reflect the new 0.8+ way of doing things. They'll wind up on the &lt;a href="http://code.google.com/p/comatose-plugin/w/list"&gt;wiki&lt;/a&gt; so that they'll be easily maintained by all.&lt;/p&gt;

&lt;p&gt;From the changelog:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All includes and helpers are loaded at the end of the &lt;code&gt;ComatoseController&lt;/code&gt; and &lt;code&gt;ComatoseAdminController&lt;/code&gt; classes&lt;/li&gt;
&lt;li&gt;Fixed the &lt;code&gt;ComatoseController#show&lt;/code&gt; action to correctly send an HTTP status of 404 even if it finds, and renders, a page at '/404'&lt;/li&gt;
&lt;li&gt;Fixed the migration to default a page's &lt;code&gt;full_path&lt;/code&gt; to '' instead of null&lt;/li&gt;
&lt;li&gt;Formalized &lt;code&gt;ComatoseDrops&lt;/code&gt;. Use &lt;code&gt;Comatose.define_drop "drop_name", do ... end&lt;/code&gt;. Every method within that block should return a value for use with a Liquid and/or ERB template. Usage in a comatose page: &lt;code&gt;{{ drop_name.def_name }}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Added support for a &lt;code&gt;config.after_setup&lt;/code&gt; block that gets called after Comatose is setup (in the &lt;code&gt;Dispatcher#to_prepare&lt;/code&gt; event)&lt;/li&gt;
&lt;li&gt;Added HTML comment output for calls that result in a &lt;code&gt;method_missing&lt;/code&gt; on the &lt;code&gt;ProcessingContext&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Updated page tree to remember collapsed/expanded nodes between page visits&lt;/li&gt;
&lt;li&gt;Fixed some errors that were caused by null revisions (usually happened after initial installation)&lt;/li&gt;
&lt;li&gt;Added my javascript test_runner lib for testing slugs generated by JavaScript. More JS tests to come.&lt;/li&gt;
&lt;li&gt;Bugfix #8640 (rubyforge bug)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And from Version 0.8 (the version before):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now ONLY supports Rails 1.2 (not even tested in Rails 1.1)&lt;/li&gt;
&lt;li&gt;New configuration system&lt;/li&gt;
&lt;li&gt;&lt;code&gt;DEFER_COMATOSE_LOAD&lt;/code&gt; is gone -- Using &lt;code&gt;Dispatcher.to_prepare&lt;/code&gt; replaces it&lt;/li&gt;
&lt;li&gt;You no longer extend the base classes to add functionality. You configure Comatose to include modules and send it symbols for providing said functionality. e.g. &lt;code&gt;Comatose.config.includes &amp;lt;&amp;lt; :authentication_system; Comatose.config.authorization = :require_login&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The automatic loading of &lt;code&gt;RAILS_ROOT/lib/comatose/*.rb&lt;/code&gt; files is NO longer supported. &lt;/li&gt;
&lt;li&gt;In addition to mapping &lt;code&gt;comatose_root&lt;/code&gt; in your &lt;code&gt;routes.rb&lt;/code&gt;, you'll want to &lt;code&gt;map.comatose_admin&lt;/code&gt; as well&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry>
  <entry>
    <title>DevSite Updated</title>
    <link href="http://comatose.rubyforge.org/2007/5/dev-site-updated.html"/>
    <id>tag:comatose.rubyforge.org,2007-05-06:2007/5/dev-site-updated.html</id>
    <updated>Sun, 06 May 2007 00:00:00 +0000</updated>
    <author>
      <name>M@ McCray</name>
    </author>
    <content type="html">&lt;p&gt;There have been a noted lack of updates around here lately... Sorry about that. It's partially because I've been pretty busy, and partially because the tool I was using to maintain this site was rather cumbersome.&lt;/p&gt;

&lt;p&gt;So, here's the new -- and easier to update -- development site!&lt;/p&gt;

&lt;p&gt;In the next few days I'll be posting an update on version 0.8, and talk about where Comatose is heading from here. Stay tuned!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Another Day, Another Update: 0.7.1</title>
    <link href="http://comatose.rubyforge.org/2006/9/another-day-another-update.html"/>
    <id>tag:comatose.rubyforge.org,2006-09-21:2006/9/another-day-another-update.html</id>
    <updated>Thu, 21 Sep 2006 00:00:00 +0000</updated>
    <author>
      <name>M@ McCray</name>
    </author>
    <content type="html">&lt;p&gt;As most of you will know, Comatose has been having a few problems co-existing with some kinds of plugins lately. The problems seem to be caused, at least in part, because the comatose controllers extend &lt;code&gt;ApplicationController&lt;/code&gt; and therefore &lt;code&gt;require&lt;/code&gt; the &lt;code&gt;application.rb&lt;/code&gt; before the rest of the plugins load.&lt;/p&gt;


	&lt;p&gt;Plus, &lt;em&gt;some&lt;/em&gt; plugins seem to take issue with any previous plugins defining an Active Record model before they&#8217;re loaded&#8212;very picky stuff.&lt;/p&gt;


	&lt;p&gt;To combat this, I&#8217;ve added a &lt;code&gt;DEFER_COMATOSE_LOAD&lt;/code&gt; flag (it&amp;#8217;s an ENVironment variable).&lt;/p&gt;


	&lt;p&gt;When the plugin initializes it will check the flag, if it&amp;#8217;s set to  &lt;code&gt;true&lt;/code&gt; it won&#8217;t load the controllers or the models. You&#8217;ll tell Comatose to load at the bottom of your &lt;code&gt;environment.rb&lt;/code&gt; file, which will load the controllers and models &lt;em&gt;after&lt;/em&gt; the rest of your app.&lt;/p&gt;


	&lt;p&gt;By default, the flag is set to &lt;code&gt;false&lt;/code&gt; for backward compatibility.&lt;/p&gt;


	&lt;h3&gt;Test It Out!&lt;/h3&gt;


	&lt;p&gt;So if you&amp;#8217;ve been having problems using Comatose with other plugins, or applications, please give this version a shot.&lt;/p&gt;


	&lt;p&gt;After you&amp;#8217;ve re-installed the plugin, just open your &lt;code&gt;config/enviroment.rb&lt;/code&gt; and at the &lt;strong&gt;top&lt;/strong&gt;, next to where the &lt;code&gt;RAILS_ENV&lt;/code&gt; is set, add this:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;ENV['DEFER_COMATOSE_LOAD'] = 'true'&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Then, at the &lt;strong&gt;bottom&lt;/strong&gt; of your &lt;code&gt;enviroment.rb&lt;/code&gt; add:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;Comatose.load&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;That&amp;#8217;s it! Now Comatose will be loaded after the rest of your application which &lt;em&gt;should&lt;/em&gt; make it work with most plugins and applications.&lt;/p&gt;


	&lt;p style="color:maroon;"&gt;&lt;strong&gt;Update:&lt;/strong&gt; &lt;a href="http://www.crazyorgenius.com/"&gt;Sean&lt;/a&gt; recommended this much improved method of enabling &amp;#8220;compatibility mode&amp;#8221;. Thanks!&lt;/p&gt;


	&lt;h4&gt;DevBlog Update&lt;/h4&gt;


	&lt;p&gt;Oh, I&amp;#8217;ve tweaked the &lt;a href="/atom.xml"&gt;devblog feed&lt;/a&gt;, so this should be the last time you get all those duplicates in NetNewsWire&amp;#8212;Hopefully. It&amp;#8217;s funny, I don&amp;#8217;t have that problem in NewsFire.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Comatose 0.7 Released!</title>
    <link href="http://comatose.rubyforge.org/2006/9/comatose-0-7-released.html"/>
    <id>tag:comatose.rubyforge.org,2006-09-20:2006/9/comatose-0-7-released.html</id>
    <updated>Wed, 20 Sep 2006 00:00:00 +0000</updated>
    <author>
      <name>M@ McCray</name>
    </author>
    <content type="html">&lt;p&gt;Comatose version 0.7 is ready to go! This release features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Page versioning&lt;/li&gt;
&lt;li&gt;Automatic loading of comatose extension scripts from &lt;code&gt;RAILSROOT/lib/comatose/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;And, of course, bug-fixes (previewing no longer modifies the page record -- that was a big bug that slipped through the cracks)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Page Versions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Only content fields are versioned, namely: &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;body&lt;/code&gt;, &lt;code&gt;slug&lt;/code&gt;, and &lt;code&gt;keywords&lt;/code&gt;. Which is to say that they're the only ones, if changed, that will trigger the creation of a new version.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;versions&lt;/em&gt; view shows the current version on the left side, and the selected older version on the right. You can change which older version is shown, and mark the older one as the current version.&lt;/p&gt;

&lt;p&gt;There's also a new database table to support all this so... You guessed it: A new migration. But it's still as easy as ever. If you're upgrading from version 0.6.9, you can run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ ./script/plugin remove comatose
$ ./script/plugin install comatose
$ ./script/generate comatose_migration --upgrade --from=0.6
$ rake migrate
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That's it. If you're upgrading from an even older version, no big deal - just make sure and specify the version in the &lt;code&gt;from&lt;/code&gt; parameter ( &lt;code&gt;--from=#.#&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Versioning is supported using &lt;a href="http://weblog.techno-weenie.net"&gt;Rick Olsen&lt;/a&gt;'s excellent &lt;a href="http://ar-versioned.rubyforge.org"&gt;acts_as_versioned&lt;/a&gt; library (included with Comatose). &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Comatose Extension Scripts Folder&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Comatose will now automatically load all &lt;code&gt;*.rb&lt;/code&gt; files in the &lt;code&gt;RAILS_ROOT/lib/comatose&lt;/code&gt; folder (if it exists). If you put your comatose-specific customizations, tags, and filters in that folder, then you won't need to muck around in your &lt;code&gt;environment.rb&lt;/code&gt; file anymore.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Using Comatose With rForum</title>
    <link href="http://comatose.rubyforge.org/2006/8/using-comatose-with-rforum.html"/>
    <id>tag:comatose.rubyforge.org,2006-08-31:2006/8/using-comatose-with-rforum.html</id>
    <updated>Thu, 31 Aug 2006 00:00:00 +0000</updated>
    <author>
      <name>M@ McCray</name>
    </author>
    <content type="html">&lt;p&gt;Several people have been reporting issues with &lt;a href="http://rubyforge.org/projects/rforum"&gt;rForum&lt;/a&gt;. The error messages can be a little deceiving, leading you to believe the error is in &lt;code&gt;navbar.rb&lt;/code&gt; or a @Localization@ class.&lt;/p&gt;

&lt;p&gt;Actually, the problem has to do with Rails' loading sequence. Plugin code is loaded before the application code. In some applications this can lead to problems.&lt;/p&gt;

&lt;p&gt;So, you have two options for fixing the rForum problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option One&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Remembering that plugins are loaded alphabetically, we create a simple plugin that will load before Comatose that includes the appropriate rForum startup code.&lt;/p&gt;

&lt;p&gt;In the console, enter:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;./script/generate plugin 01_app_loader
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It should spit out:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  create  vendor/plugins/01_app_loader/lib
  create  vendor/plugins/01_app_loader/tasks
  create  vendor/plugins/01_app_loader/test
  create  vendor/plugins/01_app_loader/README
  create  vendor/plugins/01_app_loader/Rakefile
  create  vendor/plugins/01_app_loader/init.rb
  create  vendor/plugins/01_app_loader/install.rb
  create  vendor/plugins/01_app_loader/lib/01_app_loader.rb
  create  vendor/plugins/01_app_loader/tasks/01_app_loader_tasks.rake
  create  vendor/plugins/01_app_loader/test/01_app_loader_test.rb
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then you open the &lt;code&gt;vendor/plugins/01_app_loader/init.rb&lt;/code&gt; file and paste this into it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;require RAILS_ROOT + '/config/app'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That's it! It should work now, as you'd expect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option Two&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Update the &lt;code&gt;vendor/plugins/comatose/init.rb&lt;/code&gt; and add the same &lt;code&gt;require RAILS_ROOT + '/config/app'&lt;/code&gt; to the very top of the file.&lt;/p&gt;

&lt;p&gt;I don't really recommend this way, however. You'd have to redo it if you updated Comatose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Notes&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you've already installed Comatose, you'll need to uninstall it before you create the new plugin. After you've pasted the startup code, you can re-install Comatose, generate the migration and go to town!&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Oh, And I'm Back</title>
    <link href="http://comatose.rubyforge.org/2006/8/oh-and-im-back.html"/>
    <id>tag:comatose.rubyforge.org,2006-08-31:2006/8/oh-and-im-back.html</id>
    <updated>Thu, 31 Aug 2006 00:00:00 +0000</updated>
    <author>
      <name>M@ McCray</name>
    </author>
    <content type="html">&lt;p&gt;I forgot to mention, I made back from my vacation and seemingly requisite post-vacation sickness. For all you guys who kept an eye on the forums whilst I was away: Thanks! I really appreciate it.&lt;/p&gt;

&lt;p&gt;I mentioned somewhere that there might be an asset manager in the next version of Comatose. While I did look into it, and had it mostly working, I've reconsidered. I think that an asset manager might make a good plugin of it's own, but it's probably too much for Comatose. It wouldn't feel quite so 'Micro'.&lt;/p&gt;

&lt;p&gt;Revisions, however, are definitely on the list for version 0.7!&lt;/p&gt;</content>
  </entry>
</feed>
