<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Meta Bates &#187; genosaurus</title>
	<atom:link href="http://www.metabates.com/tag/genosaurus/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metabates.com</link>
	<description>The technical ramblings of Mark Bates.</description>
	<lastBuildDate>Sun, 15 Aug 2010 12:49:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Configatron 2.2.0 Released, now with Ruby 1.9 and JRuby support!</title>
		<link>http://www.metabates.com/2009/01/01/configatron-220-released-now-with-ruby-19-and-jruby-support/</link>
		<comments>http://www.metabates.com/2009/01/01/configatron-220-released-now-with-ruby-19-and-jruby-support/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 16:31:00 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[cachetastic]]></category>
		<category><![CDATA[configatron]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[multiruby]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby 1.9]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=210</guid>
		<description><![CDATA[Happy New Year everyone! With the help of the absolutely amazing multiruby library and an edge version of rspec from GitHub, the latest version of Configatron now supports JRuby 1.1.6 and Ruby 1.9.1rc1. There are no other functional changes to the library, so it&#8217;s a full drop in replacement for vesion 2.1.6. I highly encourage [...]]]></description>
			<content:encoded><![CDATA[<p>Happy New Year everyone!</p>
<p>With the help of the absolutely amazing <a href="http://blog.robseaman.com/2008/12/20/switching-between-ruby-1-8-1-9-with-multiruby" target="_blank">multiruby</a> library and an edge version of rspec from GitHub, the latest version of Configatron now supports JRuby 1.1.6 and Ruby 1.9.1rc1. There are no other functional changes to the library, so it&#8217;s a full drop in replacement for vesion 2.1.6.</p>
<p>I highly encourage everyone to checkout multiruby and start upgrading their libraries so we can all move to 1.9 quicker, which means more speed and more power. Once we&#8217;re all in 1.9 land we can really make use of some of the amazing features it provides.</p>
<p>Anyway, I&#8217;ll be working on upgrading all my libraries and applications to work on 1.8 and 1.9, and hopefully JRuby, over the next couple of months. So be on the look out for a new versions of Cachetastic, Genosaurus [update: Genosaurus already works with 1.9 and JRuby. Hoorah!], and, of course, Mack.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/01/01/configatron-220-released-now-with-ruby-19-and-jruby-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Release 0.7.1</title>
		<link>http://www.metabates.com/2008/09/08/release-071/</link>
		<comments>http://www.metabates.com/2008/09/08/release-071/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 15:15:50 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[cachetastic]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[data mapper]]></category>
		<category><![CDATA[diogo almeida]]></category>
		<category><![CDATA[facets]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[rack]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=167</guid>
		<description><![CDATA[Although not as sexy a release as 0.7.0, there are some very important bug fixes and some cool new little features in this release. Rack has been upgraded to v0.4.0. DataMapper to 0.9.5. Facets to 2.4.4, and a few other gems as well. There is now a much nicer session store API that will allow [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Although not as sexy a release as 0.7.0, there are some very important bug fixes and some cool new little features in this release. Rack has been upgraded to v0.4.0. DataMapper to 0.9.5. Facets to 2.4.4, and a few other gems as well.</p>
<p>There is now a much nicer session store API that will allow developers to build their own session stores. There&#8217;s also a couple of new session stores that ship with 0.7.1. There&#8217;s a DataMapper session store, and a cookie session store, which is now the default session store. The previous Cachetastic based session store can be used by requiring the mack-caching gem in gems.rb and putting the following setting in your app_config/*.yml file:</p>
<pre>mack::session_store: cachetastic</pre>
<p>There is now built-in support to help prevent cross-site scripting attacks on forms.&nbsp;Some view helper methods have nice updates such as :disable_with and :confirm, and asset hosts.</p>
<p>And a whole host of other little improvements across the board. Enjoy!</p>
<p>Changelog:</p>
<ul>
<li>[#153] Emails with just a single &#8216;part&#8217; are now being sent correctly.</li>
<li>[#147] Added :confirm to button helpers.</li>
<li>[#146] [Diogo Almeida] Added :disable_with to submit_button form helper.</li>
<li>[#145] Added rake generate:&lt;generator_name&gt;:desc task to &#8216;describe&#8217; a Genosaurus generator</li>
<li>[#144] INCOMPATIBILITY NOTICE: rake server is no more. Please use mackery server instead.</li>
<li>[#142] INCOMPATIBILITY NOTICE: rake console is no more. Please use mackery console instead.</li>
<li>[#140] Added Mack::BootLoader</li>
<li>[#139] Added ability to change the pattern for test files</li>
<li>[#137] Added subdomains method on request.</li>
<li>[#130] Added ability to &#8216;reload&#8217; the console</li>
<li>[#129] DataMapper 0.9.5 support</li>
<li>[#128] Updated json_pure to 1.1.3 and removed ruby-debug dependency</li>
<li>[#127] Moved mack-paths into core</li>
<li>[#126] XSS Prevention</li>
<li>[#125] Cookie store is now the default session store, not cachetastic</li>
<li>[#124] Opened up the session store API</li>
<li>[#122] Added DataMapper session store.</li>
<li>[#121] Cookie session store support.</li>
<li>[#120] Added PassengerGenerator to generate the necessary files to run Mack with Passenger Phusion (mod_rails)</li>
<li>[#118] Mack/mack-more can be loaded from vendor/framework/mack and vendor/framework/mack-more</li>
<li>[#117] Added rake task: mack:freeze:edge</li>
<li>[#107] Updated to Rack 0.4.0</li>
<li>[#95] Removed deprecated model_* methods</li>
<li>[#94] Removed deprecated submit_tag</li>
<li>[#40] Added Mack::Utils::ContentLengthHandler so response will now have &#8216;Content-Length&#8217; in its header.</li>
<li>[#21] Asset Hosts</li>
<li>gem: rack 0.4.0</li>
<li>gem: json_pure 1.1.3</li>
<li>gem: data_mapper 0.9.5</li>
<li>gem: genosaurus 1.2.4</li>
<li>gem: ezcrypto 0.7</li>
<li>gem: facets 2.4.4</li>
</ul>
<p>Â </p>
<p>Â </p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/09/08/release-071/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release 0.7.0</title>
		<link>http://www.metabates.com/2008/08/25/release-070/</link>
		<comments>http://www.metabates.com/2008/08/25/release-070/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 16:13:53 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[addressable]]></category>
		<category><![CDATA[data factory]]></category>
		<category><![CDATA[data_mapper]]></category>
		<category><![CDATA[distributed objects]]></category>
		<category><![CDATA[distributed routes]]></category>
		<category><![CDATA[distributed views/layouts]]></category>
		<category><![CDATA[facets]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[haml]]></category>
		<category><![CDATA[helpers]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[merb]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[rinda]]></category>
		<category><![CDATA[tell messaging]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=138</guid>
		<description><![CDATA[I know that with every release I say something like, &#8220;This is a big release&#8221;, but the fact of the matter is this is a big release. Amongst the 49 tickets that make up release 0.7.0, there are two in particular that are at the core of Mack&#8217;s very existence, they are Distributed Objects and [...]]]></description>
			<content:encoded><![CDATA[<p>I know that with every release I say something like, &#8220;This is a big release&#8221;, but the fact of the matter is this is a big release. Amongst the 49 tickets that make up release 0.7.0, there are two in particular that are at the core of Mack&#8217;s very existence, they are Distributed Objects and Distributed Views/Layouts.</p>
<p>Back on March 26th Mack 0.4.0 was released. This release brought the first of three large distributed features, Distributed Routes. With 0.7.0 Mack fully realizes it&#8217;s goal of making it easy to write fully distributed web applications.&nbsp;There is a very nice wiki page, on our new wiki, that shows in detail how to use the new distributed features. That page can found&nbsp;<a href="http://www.mackwiki.com/using_the_mack-distributed_gem" target="_blank">here</a>. Also, don&#8217;t forget to watch the screencast of the new distributed features that can be found <a href="http://screencasts.mackframework.com/Mack%20Distributed%20Demo.mov" target="_blank">here</a>.</p>
<h3>Distributed Objects</h3>
<p>Distributed objects allow you to easily distribute access to your library and model code amongst any of your other Mack applications. Allowing this access is as simple as requiring the mack-distributed gem, adding a few lines to your configuration, and starting the mack_ring_server binary. &#8216;Client&#8217; applications just need to require the mack-distributed gem.</p>
<h3>Distributed Views/Layouts</h3>
<p>With distributed views and layouts you can now share the look and feel from one application with all of your applications. Configuration and use is just as easy using distributed objects.</p>
<h3>Form and HTML Helpers</h3>
<p>People have been requesting more HTML and form helper methods, and we&#8217;re more than happy to comply. There are whole bunch of these new methods now to help you more easily build your applications. The generators have been updated to use these new methods, to make your job even easier. There is also now support for doing Date/Time drop downs, similar to Rails and Merb.</p>
<h3>&#8216;Tell&#8217; Messaging</h3>
<p>Rails folks know &#8216;tell&#8217; messaging as &#8216;flash&#8217; messaging and Merb folks know it as &#8216;message&#8217; messaging. We went with &#8216;tell&#8217;. Tell messages are cleared after any non-redirect request. They&#8217;re a great way to send a simple message down to the client.</p>
<h3>New Wiki</h3>
<p>With this release there is also a new wiki at, <a href="http://www.mackwiki.com" target="_blank">http://www.mackwiki.com</a>. This new wiki, incidentally built using Mack 0.7.0, will house all the tutorials and how-to&#8217;s for Mack. There are a few entries from the old wiki that still need to brought over during the next day or two.</p>
<p>Changelog:</p>
<ul>
<li><a href="http://mack.lighthouseapp.com/projects/11385/tickets/114-add-javascript-link_helper" target="_blank">[#114</a>] Javascript link_helper</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/112-error-generating-mack-application" target="_blank">#112</a>] Error generating mack application</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/109-update-to-datamapper-0-9-4" target="_blank">#109</a>] DataMapper 0.9.4</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/103-log-colors-for-console-output-should-be-configurable-by-level" target="_blank">#103</a>] Log colors for the console are now configurable per log level.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/102-define-association-method-in-data-factory" target="_blank">#102</a>] New association method in data_factory</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/101-update-file-upload-testing" target="_blank">#101</a>] Update to file upload testing (build_file -&gt; file_for_upload, and multipart support in put)</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/100-inline-routing-parameters-are-being-mutated" target="_blank">#100</a>] Inline routing parameters are being mutated</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/99-facets-2-4-3-support" target="_blank">#99</a>] Upgraded to facets 2.4.3</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/98-facets-don-t-seem-to-be-loaded-when-reading-app_config-files" target="_blank">#98</a>] Fixed mack-facets not being loaded before app_config files.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/97-sessions-only-work-with-local_memory-mode" target="_blank">#97</a>] Fixed sessions only working with &#8216;local_memory&#8217; mode</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/96-need-to-cache-distributed-view-files" target="_blank">#96</a>] Distributed Views module now uses file cache</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/92-remove-deprecated-orm-code-from-mack" target="_blank">#92</a>] Removed deprecated app_config.orm code.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/91-if-gems-rb-doesn-t-exist-mack-blows-up" target="_blank">#91</a>] Fixed Mack blowing up if there is no config/initializers/gems.rb file.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/90-add-deprecation-system" target="_blank">#90</a>] Added deprecation system.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/89-gems-tasks-don-t-work" target="_blank">#89</a>] rake gems:* will now only display warning if any gem required is not installed (and not break)</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/88-sqlite3-tests-in-mack-active_record" target="_blank">#88</a>] Implemented pending SQLite3 tests in mack-activerecord</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/87-refactor-common-orm-code-into-mack-orm-gem" target="_blank">#87</a>] Refactored out common ORM code from mack-active_record and mack-data_mapper into mack-orm</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/86-add-stylesheet-link-helper" target="_blank">#86</a>] stylesheet link helper</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/85-mack-viewhelpers-htmlhelpers-needs-to-be-refactored" target="_blank">#85</a>] Refactored out Mack::ViewHelpers::HtmlHelpers into Mack::ViewHelpers::HtmlHelpers, Mack::ViewHelpers::FormHelpers and&nbsp;Mack::ViewHelpers::linkHelpers</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/84-there-needs-to-be-a-way-to-lookup-a-specific-distributed-service" target="_blank">#84</a>] Added Mack::Distributed.lookup(url) to retrieve specific distributed services.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/83-mail_to-helper-needed" target="_blank">#83</a>] Added mail_to HTML helper.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/82-mack-distributed-needs-an-acl" target="_blank">#82</a>] Added ACL support to mack-distributed</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/81-session-s-don-t-carry-across-a-redirect-in-testing" target="_blank">#81</a>] Fixed sessions working with redirects in testing</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/80-original-object-s-inspect-should-be-added-to-the-distributed-proxy-object-s-inspect" target="_blank">#80</a>] Distributed objects present both the DRb::DRbObject inspect and the original object&#8217;s inspect when asked.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/79-rename-use_distributed_routes-config" target="_blank">#79</a>] Renamed app_config.mack.use_distributed_routes to app_config.mack.share_routes</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/76-move-mack_ring_server-to-mack-distributed" target="_blank">#76</a>] Move mack_ring_server to mack-distributed</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/75-there-are-still-distributed-rake-tasks-in-mack-core" target="_blank">#75</a>] Left over mack-distributed rake tasks</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/74-optional-disable-initialization-logging" target="_blank">#74</a>] Added optional feature to disable initialization logging.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/73-tests-should-no-longer-use-functional-unit-folders" target="_blank">#73</a>] Tests no longer use the functional/unit directories</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/69-generators-for-view-helpers-and-controller-helpers" target="_blank">#69</a>] Added ViewHelperGenerator and ControllerHelperGenerator</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/68-transactional-support-in-mack-activerecord" target="_blank">#68</a>] Transactional support in mack-AR</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/67-proper-test-setup-tasks-for-datamapper-and-activerecord" target="_blank">#67</a>] Added test:setup tasks for active_record and data_mapper</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/62-remove-l10n-warnings" target="_blank">#62</a>] Removed const redefined warnings if mack-l10n is used along with mack-activerecord</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/39-haml-2-x-support" target="_blank">#39</a>] HAML 2.0.2 support</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/28-refactor-out-encryption-code" target="_blank">#28</a>] Refactored out encryption into the mack-encryption gem.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/25-simple-controller-generator" target="_blank">#25</a>] Added ControllerGenerator</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/19-more-html-helpers" target="_blank">#19</a>] Added HTML form helpers</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/15-file-upload-testing" target="_blank">#15</a>] File upload testing support (ability to do multipart form post in testing)</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/11-distributed-views-layouts" target="_blank">#11</a>] Distributed Layout/Views</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/10-distributed-models" target="_blank">#10</a>] Added distributed objects to mack-distributed.</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/8-refactor-out-distributed-code" target="_blank">#8</a>]  Move distributed code from mack-core to mack-more</li>
<li>[<a href="http://mack.lighthouseapp.com/projects/11385/tickets/5-flash-messaging" target="_blank">#5</a>] Added tell messaging</li>
<li>gem: genosaurus 1.2.2</li>
<li>gem: haml 2.0.2</li>
<li>gem: addressable 1.0.4</li>
<li>gem: facets 2.4.3</li>
<li>gem: data_mapper 0.9.4</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/08/25/release-070/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
<enclosure url="http://screencasts.mackframework.com/Mack%20Distributed%20Demo.mov" length="71917914" type="video/quicktime" />
		</item>
		<item>
		<title>Ruby Opals</title>
		<link>http://www.metabates.com/2008/06/23/ruby-opals/</link>
		<comments>http://www.metabates.com/2008/06/23/ruby-opals/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 18:14:57 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cachetastic]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[ruby opals]]></category>
		<category><![CDATA[tracy flynn]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=108</guid>
		<description><![CDATA[At RubyConf a bunch of us sat around a few glasses of beer and had a &#8216;bitch&#8217; session about the state of Ruby Gems, a system we all consider be rather sub-par. At that session Tracy Flynn, friend andÂ colleague of yours truly, said we should do something about it. He suggested we write RubyOpals. Well, [...]]]></description>
			<content:encoded><![CDATA[<p>At RubyConf a bunch of us sat around a few glasses of beer and had a &#8216;bitch&#8217; session about the state of Ruby Gems, a system we all consider be rather sub-par. At that session Tracy Flynn, friend andÂ colleague of yours truly, said we should do something about it. He suggested we write RubyOpals. Well, Tracy is putting his money where his mouth is,Â <a href="http://github.com/tflynn/rubyopals/tree/master" target="_blank">http://github.com/tflynn/rubyopals/tree/master</a>. I can tell you that I for one, can&#8217;t wait for Ruby Opals! I&#8217;ve already forked the project and started contributing! As soon as the first version is ready for release, I can tell you that Mack, Cachetastic, Genosaurus, etc&#8230; will all be the first available as opals.</p>
<p>I highly encourage all of you out there to add this project to your &#8216;watch&#8217; list on GitHub. And if you have the time, and want to help write something special, I highly encourage you to fork it and start contributing! Time to get out there and start making the Ruby world a much, much, much better place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/06/23/ruby-opals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release 0.5.0</title>
		<link>http://www.metabates.com/2008/05/06/release-050/</link>
		<comments>http://www.metabates.com/2008/05/06/release-050/#comments</comments>
		<pubDate>Tue, 06 May 2008 18:33:47 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[darsono sutedja]]></category>
		<category><![CDATA[data mapper]]></category>
		<category><![CDATA[erb]]></category>
		<category><![CDATA[erub]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[rcov]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=91</guid>
		<description><![CDATA[I know I&#8217;ve been talking about this release for a while now, and here it finally is. There&#8217;s some good bug fixes in here, a few new rake tasks, and some other little things like that. The biggest thing, however, is what&#8217;s been causing a stir online now for the past few days, I&#8217;ve split [...]]]></description>
			<content:encoded><![CDATA[<p>I know I&#8217;ve been talking about this release for a while now, and here it finally is. There&#8217;s some good bug fixes in here, a few new rake tasks, and some other little things like that.</p>
<p>The biggest thing, however, is what&#8217;s been causing a stir online now for the past few days, I&#8217;ve split out the ORM support into separate gems. I&#8217;m not going to go over it again, you can find all the details here:Â <a href="http://www.mackframework.com/2008/05/04/orms-and-mack/" target="_blank">http://www.mackframework.com/2008/05/04/orms-and-mack/</a></p>
<p>Needless to say this is a good release to get, if not for the bug fixes alone, but for the great db:create rake tasks that are now in there. Thanks, again, to Darsono Sutedja for his great contributions.</p>
<p>Changelog</p>
<ul>
<li>Added rake db:create and db:create:all rake tasks.</li>
<li>Refactored out constants, such as MACK_ROOT and MACK_ENV and made them into Mack::Configuration.env, Mack::Configuration.root, etc&#8230;</li>
<li>Added test:stats and test:coverage Rake tasks.</li>
<li>Removed support for ActiveRecord and DataMapper and moved them into their own gems.</li>
<li>Fixed a bug where yields in ERB weren&#8217;t giving the desired results.</li>
<li>DataMapper database.yml file can now be nested, and is generated as such.</li>
<li>Cleaned up some tests, and refactored the HTML generation stuff.</li>
<li>Fixed a bug with the scaffold generating &#8216;bad&#8217; methods instead of &#8216;post&#8217;</li>
<li>Made error_messages_for more compatible with DataMapper.</li>
<li>Fixed a bug loading url.rb and uploaded_file.rb found by Phil Darnowsky</li>
<li>[dsutedja] Render method (in controller_base) now accepts response status code.</li>
<li>gem: mack_ruby_core_extensions 0.1.23</li>
<li>gem: genosaurus 1.1.4</li>
<li>gem: datamapper 0.3.2</li>
<li>gem: rcov 0.8.1.2.0</li>
<li>gem: mack-data_mapper 0.5.0</li>
<li>gem: erubis 2.6.0</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/05/06/release-050/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release 0.4.7</title>
		<link>http://www.metabates.com/2008/04/25/release-047/</link>
		<comments>http://www.metabates.com/2008/04/25/release-047/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 18:39:32 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[darsono sutedja]]></category>
		<category><![CDATA[data mapper]]></category>
		<category><![CDATA[file uploads]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[thin]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=84</guid>
		<description><![CDATA[0.4.7 is a MUST have release. It fixes a few good bugs, like the ability to upload files now works! Plus it introduces a few nice little goodies. File uploads are now pretty easy to do. There&#8217;s a new Mack::Request::UploadedFile that helps to wrap the Hash that Rack gives you when you upload a file. [...]]]></description>
			<content:encoded><![CDATA[<p>0.4.7 is a MUST have release. It fixes a few good bugs, like the ability to upload files now works! Plus it introduces a few nice little goodies.</p>
<p>File uploads are now pretty easy to do. There&#8217;s a new Mack::Request::UploadedFile that helps to wrap the Hash that Rack gives you when you upload a file. Here&#8217;s a simple example of it being used:</p>
<pre>class UploadsController &lt; Mack::Controller::Base
Â  def create
Â    @my_new_file = request.file(:my_new_file)
Â    @my_new_file.save_to([MACK_PUBLIC, "uploaded_files", @my_new_file.file_name])
Â  end
end</pre>
<p>That&#8217;s it! That&#8217;s all you need to upload a file! I&#8217;m going to add file uploads to the blog demo over the next few days.</p>
<p>You can now do &#8216;namespaced&#8217; routes, such as Admin::UserController. You can very simply map them in your routes.rb as:</p>
<pre>r.resource "admin/users"</pre>
<p>There&#8217;s now a new rake task, generator:list, that shows all the generators available to your app.</p>
<p>Darsono Sutedja gets the prize for being the first person, other than myself, to contribute to Mack. Thanks a ton Darsono! It&#8217;s much appreciated.</p>
<p>All of the generators now use the Genosaurus generator system. Not really that exciting, but it makes for a nice, cleaner code base.</p>
<p>There&#8217;s a few other things in there as well. The changelog below has a few more things. Enjoy!</p>
<p>Changelog:</p>
<ul>
<li>Added Mack::Request::UploadFile class to make dealing with file uploads easy.</li>
<li>Fixed bug where if a controller didn&#8217;t exist it wasn&#8217;t checking the public directory.</li>
<li>Generated DataMapper models no longer extend DataMapper::Base, but rather &#8216;include DataMapper::Persistence&#8217;. This corresponds to the 0.9.0 upcoming release of DataMapper.</li>
<li>Fixed a bug in request.params that was making file uploads into strings.</li>
<li>Namespaced resourced routes, such as Admin::UserController, now work.</li>
<li>Added rake generator:list task to list all the available generators.</li>
<li>scaffold generator now creates a stub functional test.</li>
<li>model generator now creates a stub unit test.</li>
<li>Rake tasks in plugins now show up in the Rake tasks list.</li>
<li>All generators, including the &#8216;mack&#8217; binary are now using Genosaurus.</li>
<li>[dsutedja] initializer will load MACK_APP/controllers/default_controller.rb if it exists</li>
<li>[dsutedja] added link_image_to and image_tag to html helper.</li>
<li>gem: thin 0.8.1</li>
<li>gem: genosaurus 1.1.1</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/04/25/release-047/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Genosaurus 1.1.1</title>
		<link>http://www.metabates.com/2008/04/23/genosaurus-111/</link>
		<comments>http://www.metabates.com/2008/04/23/genosaurus-111/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 16:48:48 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[genosaurus]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=83</guid>
		<description><![CDATA[So this week I took a small break away from Mack to build another library, Genosaurus. I found that in Mack I had basically written a generator system, so I extracted it out into a stand alone library that anybody can use, and I called it Genosaurus. Genosaurus is, in my opinion, an incredibly easy [...]]]></description>
			<content:encoded><![CDATA[<p>So this week I took a small break away from Mack to build another library, <a href="http://genosaurus-api.mackframework.com/" target="_blank">Genosaurus</a>. I found that in Mack I had basically written a generator system, so I extracted it out into a stand alone library that anybody can use, and I called it Genosaurus.  Genosaurus is, in my opinion, an incredibly easy to use generator framework. Let&#8217;s be honest, we&#8217;ve all basically built a generator system at one point or another, so I&#8217;ve just wrapped it up nicely. The next release of Mack, due out the end of this week, will have all it&#8217;s generators converted to use Genosaurus.  Let&#8217;s take a look at a section of the README for Genosaurus:</p>
<h3>Implied Manifests</h3>
<p>The easiest way to useÂ GenosaurusÂ is to let it do the work for you. Letâ€˜s looked at whatâ€˜s called an â€˜impliedâ€™ manifest:</p>
<pre>  dir:
    simple_generator.rb
    templates:
      hello_world.txt.template</pre>
<p>Thatâ€˜s our folder structure. Now letâ€˜s look at simple_generator.rb:</p>
<pre>  require 'rubygems'
  require 'genosaurus'

  class SimpleGenerator &lt; Genosaurus
  end</pre>
<p>Now if we run that generator:</p>
<pre>  $irb: SimpleGenerator.run</pre>
<p>We should get a file called hello_world.txt generated in the current directory. Yes, it truly is that simple!  With implied manifests our directory structure under â€˜templatesâ€™ tells the whole story, andÂ GenosaurusÂ is smart enough to figure it out. All the file names, and the same goes for folders, need to end in .template, andÂ GenosaurusÂ will do the rest.  All the files will go through ERB before they generated, so you can put all your lovely little dynamic goodies in there. File, and folder, names also get run through ERB so you can even make the file name dynamic too!  Letâ€˜s look at a more complex example:</p>
<pre>  dir:
    complex_generator.rb
    templates:
      app:
        views:
          &lt;%=param(:name).plural%&gt;.template:
            hello_world.html.erb
        models:
          &lt;%=param(:name)%&gt;.rb.template</pre>
<p>Letâ€˜s run our complex_generator.rb file:</p>
<pre>  require 'rubygems'
  require 'genosaurus'

  class ComplexGenerator &lt; Genosaurus
    require_param: name
  end</pre>
<p>Now if we run that generator:</p>
<pre>  $irb: ComplexGenerator.run("name" =&gt; "user")</pre>
<p>Now you should end up with the following:</p>
<pre>  app:
    views:
      users:
        hello_world.html.erb
    models:
      user.rb.template</pre>
<p>In the ComplexGenerator we toldÂ GenosaurusÂ that we are requiring that the parameter, name, be passed into it. We are then using that parameter to generate the names of some files and folders. Pretty cool, eh? See how simple that is.</p>
<h3>Explicit Manifests</h3>
<p>Explicit manifests are used when there is a manifest.yml supplied at the same level as the generator. If there is a manifest.yml file then implied manifests are not used. This means you have to define the entire generation process. This is great if you have a pretty complicated generator, as the manifest.yml is also sent through ERB before being loaded.  Letâ€˜s look at the manifest.yml file for our simple_generator example:</p>
<pre>  template_1:
    type: file
    template_path: &lt;%= File.join(templates_directory_path, "templates", "hello_world.txt.template")
    output_path: hello_world.txt</pre>
<p>Pretty simple. We give the template a name, template_1, it really doesnâ€˜t matter what it is, but Hash objects need keys. The â€˜typeâ€™ parameter is either file or directory. The template_path is the path to the template. Finally, the output_path is the where you want the file to be generated.  Letâ€˜s look at our more complex example. We can change the directory structure a bit, since we really donâ€˜t need ERB in the file names now:</p>
<pre>  dir:
    complex_generator.rb
    templates:
      hello_world.html.erb.template
      model.rb.template</pre>
<p>Our manifest.yml file would look like this:</p>
<pre>  hello_world_template:
    type: file
    template_path: &lt;%= File.join(templates_directory_path, "templates", "hello_world.html.erb")
    output_path: &lt;%= File.join("app", "views", param(:name).plural, "hello_world.html.erb") %&gt;
  model_template:
    type: file
    template_path: &lt;%= File.join(templates_directory_path, "templates", "model.html.erb")
    output_path: &lt;%= File.join("app", "models", "#{param(:name)}.rb") %&gt;</pre>
<p>This will generate the exact same thing as our implied manifest.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/04/23/genosaurus-111/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.464 seconds -->
