<?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; Releases</title>
	<atom:link href="http://www.metabates.com/category/releases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metabates.com</link>
	<description>The technical ramblings of Mark Bates.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Project, Issue, and Error Tracking United!</title>
		<link>http://www.metabates.com/2011/04/25/project-issue-and-error-tracking-united/</link>
		<comments>http://www.metabates.com/2011/04/25/project-issue-and-error-tracking-united/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 12:00:45 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[basecamp]]></category>
		<category><![CDATA[error tracking]]></category>
		<category><![CDATA[fluxtracker]]></category>
		<category><![CDATA[hoptoad]]></category>
		<category><![CDATA[issue tracking]]></category>
		<category><![CDATA[lighthouse]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=436</guid>
		<description><![CDATA[For the last few years every project or company I&#8217;ve worked for has started the same way, by setting up Basecamp, Lighthouse and Hoptoad (or similar ones anyway). Why? Basecamp  - so we could share documents and todos. Lighthouse &#8211; so we could track our issues and bugs. Hoptoad &#8211; so we could track the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.metabates.com/wp-content/uploads/2011/04/issue_list_big.png"><img class="alignleft size-medium wp-image-437" title="issue_list_big" src="http://www.metabates.com/wp-content/uploads/2011/04/issue_list_big-300x225.png" alt="" width="300" height="225" /></a>For the last few years every project or company I&#8217;ve worked for has started the same way, by setting up Basecamp, Lighthouse and Hoptoad (or similar ones anyway). Why? Basecamp  - so we could share documents and todos. Lighthouse &#8211; so we could track our issues and bugs. Hoptoad &#8211; so we could track the errors our application was generating.</p>
<p>These are all very good applications and have served myself and my clients well, but they&#8217;ve suffered from several very big flaws. The first big flaw was the cost. You can easily drop $100 or more a month across these different services. But that wasn&#8217;t the biggest flaw or problem I&#8217;ve had with these services. The biggest problem was lack of integration.</p>
<p>So what do I mean by lack of integration? Well, when an error comes in I want to easily be able to create a new issue from it. When the issue gets resolved, so should the error. If the error reoccurs it should re-open automatically, and so should the issue. I want to be able to create an issue right from a document or be able to attach issues to a document. I should be able to follow the flow from document to issue to error and back again very easily. Unfortunately, these applications don&#8217;t give you that level of integration. They offer some level, but just not enough.</p>
<p>Well, my friends, welcome to the future. Welcome to <strong><a href="http://www.fluxtracker.com?ref=metabates">FluxTracker.com</a></strong>. FluxTracker combines a great issue tracker, a project management system, and an error tracker all in one application. Now you can full integration without any configuration, oh, and you can do it at a fraction of the cost!</p>
<p>We know it isn&#8217;t easy to switch to a different application, that&#8217;s why we&#8217;ve made it easy for you. You can easily <a href="http://www.fluxtracker.com/pages/lighthouse_importing?ref=metabates">import your Lighthouse</a> account. FluxTracker also allows you to easily use the <a href="http://www.fluxtracker.com/pages/api/hoptoad_notifier?ref=metabates">Hoptoad Notifier</a> plugin for your project by just setting a few configuration parameters.</p>
<p>So know you know, you&#8217;re life can be easier. And you now know how easy it is to get started! So what are you waiting for? Go and <a href="https://www.fluxtracker.com/signup?ref=metabates">sign up</a> for our Free plan and start living the dream.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2011/04/25/project-issue-and-error-tracking-united/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CoverMe – Code Coverage for Ruby 1.9 Reaches RC1</title>
		<link>http://www.metabates.com/2010/09/30/coverme-%e2%80%93-code-coverage-for-ruby-1-9-reaches-rc1/</link>
		<comments>http://www.metabates.com/2010/09/30/coverme-%e2%80%93-code-coverage-for-ruby-1-9-reaches-rc1/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 16:09:25 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[cover_me]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rcov]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[tests]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=363</guid>
		<description><![CDATA[In August I announced CoverMe a code coverage tool for Ruby 1.9. Well, today I announce that it has hit it&#8217;s first release candidate! I&#8217;ve very excited by the fact it&#8217;s getting close to an &#8216;official&#8217; release. The response to CoverMe has been great and through feedback from the community I&#8217;ve made a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/">August</a> I announced <a href="http://github.com/markbates/cover_me" target="_blank">CoverMe</a> a code coverage tool for Ruby 1.9. Well, today I announce that it has hit it&#8217;s first release candidate! I&#8217;ve very excited by the fact it&#8217;s getting close to an &#8216;official&#8217; release.</p>
<p>The response to CoverMe has been great and through feedback from the community I&#8217;ve made a lot of improvements and fixed a lot of issues.</p>
<p>While quite a few things have changed under the hood, not much has changed in how you use CoverMe.</p>
<h2>Installation</h2>
<p>The following are instructions for how you would configure CoverMe for a Rails 3 project, adjust to your local environment accordingly.</p>
<p>In  your Gemfile add the following:</p>
<pre>gem 'cover_me', '&gt;= 1.0.0.rc1', :group =&gt; :test</pre>
<p>Then run:</p>
<pre>$ bundle install</pre>
<p>After CoverMe is installed place the following line at the <strong><em>VERY TOP</em></strong> of your &#8216;test_helper.rb&#8217; or &#8216;spec_helper.rb&#8217; file (for Cucumber put it at the top of the &#8216;env.rb&#8217; file):</p>
<pre>require 'cover_me'</pre>
<p>I can&#8217;t emphasize enough how important it is that the require statement is at the <strong><em>VERY</em></strong> top of that file!</p>
<p>Finally (and optionally) run:</p>
<pre>$ rails g cover_me:install</pre>
<p>This will simply install a Rake task that will wrap both Test::Unit and RSpec tasks with CoverMe and will launch the results at the end of the test suites. I would recommend it. It&#8217;s kinda the whole point. <img src='http://www.metabates.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>That&#8217;s it!</h2>
<p>Enjoy the release candidate, and of course, please let me know if you find any issues with it. Issues can be reported on <a href="http://github.com/markbates/cover_me/issues" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2010/09/30/coverme-%e2%80%93-code-coverage-for-ruby-1-9-reaches-rc1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CoverMe &#8211; Code Coverage for Ruby 1.9</title>
		<link>http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/</link>
		<comments>http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 17:49:44 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rcov]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[tests]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=343</guid>
		<description><![CDATA[Ruby 1.9(.2) is an amazing language to develop applications in. It&#8217;s faster, more powerful, cleaner, and a huge improvement over Ruby 1.8.x. Because of those reasons every Ruby developer should move to this exciting new version of our language. When making a move of this size it&#8217;s important to have the right tools to help [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby 1.9(.2) is an amazing language to develop applications in. It&#8217;s faster, more powerful, cleaner, and a huge improvement over Ruby 1.8.x. Because of those reasons every Ruby developer should move to this exciting new version of our language.</p>
<div id="_mcePaste">When making a move of this size it&#8217;s important to have the right tools to help us along. Unfortunately, one of the most useful tools as a Ruby developer, <a href="http://github.com/relevance/rcov">RCov</a>, does not work with Ruby 1.9.</div>
<div id="_mcePaste">RCov, for those unfamiliar analyzes your code and tells you which part of your code was not executed. This is INCREDIBLY useful when hooked up to your test suite. While, it&#8217;s not the only metric you should use when determining how good your test coverage it, it certainly is a great first step to point out exactly which parts of your code haven&#8217;t been touched at all!</div>
<p>Enter <a href="http://github.com/markbates/cover_me">CoverMe</a>.</p>
<h2>History</h2>
<p>While working on a Ruby 1.9/Rails 3 project, and loving everything about it (except for the lack of RCov), I came across a <a href="http://engineering.attinteractive.com/2010/08/code-coverage-in-ruby-1-9/">post</a> by Aaron Patterson (of <a href="http://github.com/tenderlove/nokogiri">Nokogiri</a> fame). In this post he quickly outlined a very basic coverage tool using the new built-in Coverage module in Ruby 1.9.</p>
<p>After spending a morning playing with it, I was quickly able to grow the idea into something useful for the project. Later that day the company I was consulting for (<a href="http://www.biddingforgood.com">BiddingForGood.com</a>), and in particular their chief architect, <a href="http://twitter.com/stuartmg">Stuart Garner</a>, told me to take a day or two and clean it up and release it for the world to use, and so <a href="http://github.com/markbates/cover_me">here</a> it is.</p>
<h2>Features</h2>
<p>Here is a brief overview of the features of CoverMe:</p>
<h3>Index Page</h3>
<ul>
<li>Sortable column headers (File, Lines, Lines of Code, Tested %).</li>
<li>Searching/filtering by file name.</li>
<li>Filtering by coverage percent.</li>
<li>Color coded list of files to quickly see which ones are 100% covered, &gt; 90% covered, or less than 90% covered.</li>
<li>Large color coded average coverage percent, for quick reference.</li>
</ul>
<h3>Detail Page</h3>
<ul>
<li>Line by line coverage report</li>
<li>Color coded lines to quickly see which lines where executed and which ones were not.</li>
<li>Side by side viewing with the corresponding test/spec file (if one exists).</li>
</ul>
<p>See the <a href="http://github.com/markbates/cover_me">README</a> file for more information on installation and usage.</p>
<h2>Thanks</h2>
<p>I would just quickly like to give another quick thanks to Aaron Patterson for pointing out the Coverage module in Ruby 1.9 and inspiring this, hopefully, helpful little gem. Also another big thanks to Stuart Garner for pushing me to package this up and release it to the world.</p>
<h2>Screenshots</h2>

<a href='http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/detail_side_by_side/' title='detail_side_by_side'><img width="150" height="150" src="http://www.metabates.com/wp-content/uploads/2010/08/detail_side_by_side-150x150.png" class="attachment-thumbnail" alt="detail_side_by_side" title="detail_side_by_side" /></a>
<a href='http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/detail/' title='detail'><img width="150" height="150" src="http://www.metabates.com/wp-content/uploads/2010/08/detail-150x150.png" class="attachment-thumbnail" alt="detail" title="detail" /></a>
<a href='http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/index_filter/' title='index_filter'><img width="150" height="150" src="http://www.metabates.com/wp-content/uploads/2010/08/index_filter-150x150.png" class="attachment-thumbnail" alt="index_filter" title="index_filter" /></a>
<a href='http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/index_search/' title='index_search'><img width="150" height="150" src="http://www.metabates.com/wp-content/uploads/2010/08/index_search-150x150.png" class="attachment-thumbnail" alt="index_search" title="index_search" /></a>
<a href='http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/index/' title='index'><img width="150" height="150" src="http://www.metabates.com/wp-content/uploads/2010/08/index-150x150.png" class="attachment-thumbnail" alt="index" title="index" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2010/08/13/coverme-code-coverage-for-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Introducing Warp Drive for Rails</title>
		<link>http://www.metabates.com/2009/10/07/introducing-warp-drive-for-rails/</link>
		<comments>http://www.metabates.com/2009/10/07/introducing-warp-drive-for-rails/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 13:00:19 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[engines]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[warp drive]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=269</guid>
		<description><![CDATA[At work recently we had a need to build a large Rails application that we then wanted to, for lack of a better word, subclass. Unfortunately there is no real good way of doing that. Rails Engines and templates have way too may limitations. We wanted to bundle up the entire Rails app (models, controllers, [...]]]></description>
			<content:encoded><![CDATA[<p>At work recently we had a need to build a large Rails application that we then wanted to, for lack of a better word, subclass. Unfortunately there is no real good way of doing that. Rails Engines and templates have way too may limitations. We wanted to bundle up the entire Rails app (models, controllers, views, routes, migrations, configurations, libs, assets, etc&#8230; everything!), but there was no good way of doing that. Well, now there is, it&#8217;s called the Warp Drive.</p>
<p>I&#8217;ve decided to just include my README file below to explain what it is, since it&#8217;s a bit lengthy, and I don&#8217;t feel like retyping.</p>
<p>This is still in it&#8217;s early stages, so use with care, but it does seem to be working for us on a daily basis. Let me know what you think!</p>
<h2>What is Warp Drive?</h2>
<p>Warp Drive is what Rails Engines wish they could be, and more! They kick Rails templates in the ass, and they beat keeping an ever evolving base Rails app up to date.</p>
<h3>What are Rails Engines?</h3>
<p>Rails Engines allow you to package up some of a Rails app (controllers, models, views, routes, libs) and put them in a plugin that can be included into a new Rails app, thereby giving it the functionality you had in the engine. That sounds good, but what about the downsides of using an engine? Well, you can&#8217;t override or extend any of the functionality from the engine in your main application. You can hack at the plugin, but now you&#8217;ve made it difficult to update. So what do you do if you want to add or alter a method to a controller or model? What do you do if you want to change the look and feel of a view? You have to copy everything into your main application. Boo!</p>
<p>Rails Engines also don&#8217;t allow you to package up migrations, assets, plugins, initializers, etc&#8230; All the fun stuff that you&#8217;ve come to know and love about a Rails application.</p>
<h3>Enter the Warp Drive!</h3>
<p>So what is a Warp Drive? Great question. To put it simply a Warp Drive is a standard, full featured, Rails application that you can easily bundle up into a Ruby Gem, and include into another Rails app. That second Rails app now has all the power of the first Rails. That is all there is to it.</p>
<h2>Creating a Warp Drive.</h2>
<p>Let&#8217;s assume we have an application that implements AuthLogic for handling user registration/authentication. We have controllers, views, models, plugins, initializers, configurations, migrations, tasks, etc&#8230; it&#8217;s a full featured fully functional Rails application, we call it authenticator.</p>
<p>We want to turn our authenticator application into a Warp Drive. We can do it in three simple steps, the first two steps you only need to do the first time, to set everything up.</p>
<ol>
<li><code>$ gem install warp_drive</code></li>
<li><code>$ warpify</code><br />
That will add a little bit of code to your <code>Rakefile</code>. That code simply requires the Warp Drive gem, and gives you hooks to configure the gem of your Warp Drive application.</li>
<li>$ <code>rake warp_drive:compile</code> (<code>rake warp_drive:install</code>)This will either compile your gem for your (<code>warp_drive:compile</code>) or compile and install your gem (<code>warp_drive:install</code>)</li>
</ol>
<p>That&#8217;s it! You should now have your Rails application bundled up and/or installed as a RubyGem!</p>
<h2>Using a Warp Drive.</h2>
<p>With your fancy new Warp Drive, authenticator, built and installed how do you use it in that new application your building? Again, it&#8217;s stupid easy, and it only takes one step, that only needs to be run once:</p>
<ol> <code>$ install_warp_drive authenticator</code></ol>
<p>That will put a few lines of code in your <code>Rakefile</code>, so you have access to all the <code>Rakefile</code> tasks in your Warp Drive, and a line in your <code>config/environment.rb</code> so that it will load your Warp Drive when you launch your application.</p>
<p>That&#8217;s it! You&#8217;re done. Now you can run <code>rake db:migrate</code> to run the migrations from both your Warp Drive and your new application. Enjoy!</p>
<h2>Overriding, Extending, and Other Such Fun Things</h2>
<h3>Overriding and Extending</h3>
<p>You&#8217;ve been enjoying your new Warp Drive back application for a little while now, but you decide you really need to change an action in your controller, how do you go about that? Simple, just like you would any normal alteration to a Ruby class.</p>
<p>Example:<br />
Here is what the action looks like in our Warp Drive UsersController:</p>
<pre><code>
  def new
    @user = User.new
  end
</code></pre>
<p>In our new application we can just open up the UsersController like this:</p>
<pre><code>
  class UsersController &lt; ApplicationController

    def new_with_default_name
      new_without_default_name
      @user.login = 'default_name'
    end

    alias_method_chain :new, :default_name

  end
</code></pre>
<p>Viola! The same works for any thing else in the system, models, libs, etc&#8230; In our example we used <code>alias_method_chain</code> to retain the original method, but we could have completely rewritten the method as well.</p>
<p>You can also plop in a new view and it will override the view that was in your Warp Drive. The sky is really the limit.</p>
<h3>Assets</h3>
<p>You can easily bundle assets from your public directory in your Warp Drive. Just make sure they are in folders called <code>warp_drive</code>. Those folders will then be symlinked to your new project&#8217;s public directory when the application starts up.</p>
<h3>Keep Those Rake Tasks Private!</h3>
<p>We all them, Rake tasks we have created to help us do all sorts of things, and we usually don&#8217;t want them to ship. Well, Warp Drive has you covered there. Just place your tasks in folders called <code>private</code> and Bob&#8217;s your uncle they won&#8217;t be available in the compiled gem.</p>
<pre><code>
  lib/
    tasks/
      foo.rake
      private/
        bar.rake
</code></pre>
<p>In this example <code>foo.rake</code> will be available to clients of your Warp Drive, but <code>bar.rake</code> will not be.</p>
<p>Copyright (c) 2009 Mark Bates</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/10/07/introducing-warp-drive-for-rails/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>APN on Rails 0.3.0 Released</title>
		<link>http://www.metabates.com/2009/07/31/apn-on-rails-0-3-0-released/</link>
		<comments>http://www.metabates.com/2009/07/31/apn-on-rails-0-3-0-released/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 04:51:02 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[apn]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[push notification]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=264</guid>
		<description><![CDATA[The latest version of Apple Push Notifications on Rails (APN on Rails) has been released. This release brings a few bug fixes, a new migration, and Feedback processing. Installing/upgrading is easy: $ sudo gem install apn_on_rails $ ruby script/generate apn_migrations $ rake db:migrate It&#8217;s important to always run the migrations generator after each update to [...]]]></description>
			<content:encoded><![CDATA[<p>The latest version of Apple Push Notifications on Rails (APN on Rails) has been released. This release brings a few bug fixes, a new migration, and Feedback processing.</p>
<p>Installing/upgrading is easy:</p>
<p><code>$ sudo gem install apn_on_rails<br />
$ ruby script/generate apn_migrations<br />
$ rake db:migrate<br />
</code></p>
<p>It&#8217;s important to always run the migrations generator after each update to get the latest database schema needed for the the gem.</p>
<p>To use the new Feedback integration you have to first make sure that you update the new <code>last_registered_at</code> column when your iPhone application calls home. This column is checked against the timestamp Apple returns with the device token. If the <code>last_registered_at</code> is older than Apple&#8217;s date then the device is deleted, otherwise the Feedback is ignored.</p>
<p>To get and process the list of devices from Apple&#8217;s Feedback service just run the following Rake task:</p>
<p><code>$ rake apn:feedback:process</code></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/07/31/apn-on-rails-0-3-0-released/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Apple Push Notifications on Rails</title>
		<link>http://www.metabates.com/2009/07/24/apple-push-notifications-on-rails/</link>
		<comments>http://www.metabates.com/2009/07/24/apple-push-notifications-on-rails/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 01:06:10 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[apn]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[push notification]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=250</guid>
		<description><![CDATA[The other night I submitted a new iPhone application to the Apple Store. The app, which I&#8217;ll speak about when, and if it gets approved, uses the new Apple Push Notification service available in iPhone OS 3.0. On the server side I have a Rails application that I am using to send the notifications to [...]]]></description>
			<content:encoded><![CDATA[<p>The other night I submitted a new iPhone application to the Apple Store. The app, which I&#8217;ll speak about when, and if it gets approved, uses the new Apple Push Notification service available in iPhone OS 3.0. On the server side I have a Rails application that I am using to send the notifications to Apple. The problem I ran into was how.</p>
<p>Enter the APN on Rails gem. While searching I found one plugin for Rails that mostly worked for me, Sam Soffes&#8217; apple_push_notification plugin. It was a great place to start, but I found that there were things that didn&#8217;t suite me. For starters, not having any tests is always a big turn off for me when it comes to any code. I also didn&#8217;t like that you didn&#8217;t need to save a notification in order to send it. That means you don&#8217;t have a record of what was sent and when. I also wanted to have devices stored separately from the notification. Finally, I wanted to be able to easily configure the plugin. Sam&#8217;s was using constants that would need to be changed when it hit production.</p>
<p>So, with all that said and done I took Sam&#8217;s great work, ripped it apart, and put it back together again, this time in gem form instead of a plugin, and here it is.</p>
<p>There are a few migrations, a few models, and a few Rake tasks, but here is the basic idea of how it works:</p>
<p><script src="http://gist.github.com/154516.js"></script></p>
<p>To get a better understanding of exactly how it works, and what it does, I highly recommend reading the <a href="http://apnonrails.metabates.com/">RDOC</a>.</p>
<p>There are a few things I still would like to add, for example, a controller to do CRUD for devices so iPhones can register with the Rails app. I&#8217;d also like to add a task that talks to Apple and finds out which devices are no longer accepting messages so they can be removed.</p>
<p>If you&#8217;d like to contribute, please feel free and for the project on GitHub:<br />
<a href="http://github.com/markbates/apn_on_rails/tree">http://github.com/markbates/apn_on_rails/tree</a></p>
<p>Again, a special thanks to Fabien Penso and Sam Soffes for their initial work on this project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/07/24/apple-push-notifications-on-rails/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Cachetastic 3.0.0 Released</title>
		<link>http://www.metabates.com/2009/06/18/cachetastic-3-0-0-released/</link>
		<comments>http://www.metabates.com/2009/06/18/cachetastic-3-0-0-released/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 02:07:10 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[cachetastic]]></category>
		<category><![CDATA[configatron]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.metabates.com/?p=237</guid>
		<description><![CDATA[After more than two years powering production level applications I found that Cachetastic was starting to get a bit long in the tooth. I felt that there was a lot I could to make Cachetastic an even better library than it already was. I thought that I had added a bunch of cruft to the [...]]]></description>
			<content:encoded><![CDATA[<p>After more than two years powering production level applications I found that Cachetastic was starting to get a bit long in the tooth. I felt that there was a lot I could to make Cachetastic an even better library than it already was. I thought that I had added a bunch of cruft to the framework that people were just not using and maintaining it all seemed like a bit of a pointless chore.</p>
<p>So what was I unhappy about?</p>
<h3>Configuration:</h3>
<p>I was pretty unhappy with the way configuration was being done. I liked using Configatron to power the configuration, but I didn&#8217;t like the way I implemented the way I was using Configatron. For example, to set up one of the default settings, like the expiry time, you would configure it like such:</p>
<pre>configatron.cachetastic_default_options.expiry_time = 30.minutes</pre>
<p>Now you would configure that same option like this:</p>
<pre>configatron.cachetastic.defaults.expiry_time = 30.minutes</pre>
<p>That&#8217;s a little savings, but it really hits when you want to configure a particular cache. Let&#8217;s say we a cache called My::Super::AwesomeCache, to configure it in past versions of Cachetastic we would do this:</p>
<pre>configatron.my_super_awesome_cache_options.expiry_time = 15.minutes</pre>
<p>Now in Cachetastic 3.0.0 we configure like this:</p>
<pre>configatron.cachetastic.my.super.awesome_cache.expire_time = 15.minutes.</pre>
<p>As you can see all configuration now happens under the cachetastic namespace in Configatron. Then it&#8217;s a matter of using a Configatron namespace for each of your modules. I find it a lot easier to manage.</p>
<p>Another change in configuration is that in previous versions if you wanted to override one default configuration value for a particular cache,  you had to override them all. Now, you can just override the one value  you want, and the rest will be nicely inherited from the defaults.</p>
<h3>Speed</h3>
<p>Cachetastic has always been a very fast library, but I knew that more could be squeezed from that stone. With Cachetastic 3.0.0 you now get a hefty 25% improvement in the Memcached adapter and a whopping 99% in the LocalMemory adapter! Those are pretty awesome numbers. These numbers were easy to achieve when I stepped back and examined what it was I really wanted to do, and picked the most straightforward path to that goal.</p>
<h3>Bloat</h3>
<p>After more than two years Cachetastic was starting to suffer from a severe case of bloat. For example, I&#8217;ve never used the DRb adapter, have you? So why is it there? The same goes for the HtmlFile adapter. I wrote that because at my last job the operations team weren&#8217;t savvy  enough to be able to get Apache to talk to Memcached, so they wanted to serve HTML files, hence the rather awful adapter. Both of those adapters are now history.</p>
<p>There also used to be support for Rails Session Caching. Considering that most people are now using the Cookie store for sessions, there really is no need for this cache. It could also be argued that it should not have been bundled with Cachetastic at all. I would agree with those arguments. Cachetastic is, and should always be, a standalone caching framework, that can be plugged into Rails or any plain old Ruby project that needs caching support.</p>
<p>Also purged is automatic support for mixing in the Cachetastic::Cacheable module into ActiveRecord. If you want this functionality, it is very easy to include in your application. I don&#8217;t want to force it on anyone, so that is gone now.</p>
<p>Finally there are a handful of smaller features that I&#8217;m sure no one will miss that I&#8217;ve yanked out in the name of performance, reliability, and ease of maintenance.</p>
<h3>Nice and Clean</h3>
<p>When I realized what I really wanted, and what I didn&#8217;t want, it became clear that what was needed was a fresh code base. With that said, I hit delete (well, not really) and started over again. The code is now smooth, so much easier to read, and fast. In previous versions even my eyes went a bit crossed when I tried to figure out exactly what was going on. There where quite a few levels of indirection, and things just weren&#8217;t place where they probably should&#8217;ve been. That has all been fixed.</p>
<p>With a nice, clean code base comes a brand new set of tests. The tests are now extremely comprehensive, and while 2.x was very well tested, I know that 3.0.0, is tested to the hilt.</p>
<p>Because 3.0.0 is a brand new code base, I should probably stress the fact that is <strong>NOT</strong> backward compatible. So please be advised.</p>
<h3>Installation:</h3>
<pre>$ sudo gem install cachetastic</pre>
<h3>Conclusion</h3>
<p>I really hope everyone likes this brand new version of Cachetastic. I&#8217;m very happy with it, and I think if you give it a chance, you will be too.</p>
<p>If you&#8217;d like to have a peek at the RDoc, it can be found at:<br />
<a href="http://cachetastic-api.mackframework.com/">http://cachetastic-api.mackframework.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/06/18/cachetastic-3-0-0-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distribunaut</title>
		<link>http://www.metabates.com/2009/04/05/distribunaut/</link>
		<comments>http://www.metabates.com/2009/04/05/distribunaut/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:08:34 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[distribunaut]]></category>
		<category><![CDATA[distributed objects]]></category>
		<category><![CDATA[drb]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[mack-distributed]]></category>
		<category><![CDATA[rinda]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=218</guid>
		<description><![CDATA[Hey there everyone, it certainly has been awhile, a month by my count. I have been diligently working on a book for Addison-Wesley called, &#8220;Distributed Programming with Ruby&#8221;, so having the time to blog went from a luxury to almost non-existent. But here&#8217;s another little post to keep your RSS feeds happy. I&#8217;ve started working [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there everyone, it certainly has been awhile, a month by my count. I have been diligently working on a book for Addison-Wesley called, &#8220;Distributed Programming with Ruby&#8221;, so having the time to blog went from a luxury to almost non-existent. But here&#8217;s another little post to keep your RSS feeds happy. </p>
<p>I&#8217;ve started working on porting the mack-distributed package to the non-Mack world. This new project, and I use the term new loosely for the time being, is tentatively called Distribunaut. The project on GitHub can be found here:Â <a href="http://github.com/markbates/distribunaut/tree/master" target="_blank">http://github.com/markbates/distribunaut/tree/master</a>. It&#8217;s pretty rough right now. I&#8217;ve ported over the distributed objects section of mack-distributed, but not the views and routes.</p>
<p>You can install the gem like such:</p>
<p><code>$ gem sources -a http://gems.github.com<br />
$ sudo gem install markbates-distribunaut</code></p>
<p>To use Distribunaut we first need to start a Rinda::RingServer. Distribunaut comes with a binary to help make this easier:</p>
<p><code>$ distribunaut_ring_server start</code></p>
<p>Once we&#8217;ve done that we can create an object we would like to share:</p>
<p><script src="http://gist.github.com/90620.js"></script></p>
<p>When we run that we can access it like such:</p>
<p><script src="http://gist.github.com/90621.js"></script></p>
<p>That would result in the following being printed out by our &#8216;client&#8217; code:</p>
<p><script src="http://gist.github.com/90622.js"></script></p>
<p>On our &#8216;server&#8217; side we would see something like this:</p>
<p><script src="http://gist.github.com/90623.js"></script></p>
<p>This is, clearly, a very simple example, but it shows you how easy it is to use Distribunaut. We haven&#8217;t done any real configuration, and things just magically work!</p>
<p>Over the next couple of months I&#8217;ll be extending and rebuilding this library to make it even more powerful and easy to use. I&#8217;m going to add fault tolerance, selection algorithms, and whole lot more. The API you see in these examples will most likely remain unchanged, but I&#8217;m planning on pretty big under the cover changes.There will be a very in-depth look into all of this in the book, obviously. (Shameless plug, I know.)</p>
<p>If anybody out there wants to contribute to this project, I&#8217;d love the help. Any sort of feedback is welcome. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/04/05/distribunaut/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release 0.8.3</title>
		<link>http://www.metabates.com/2009/01/18/release-083/</link>
		<comments>http://www.metabates.com/2009/01/18/release-083/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 18:20:54 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[data_mapper]]></category>
		<category><![CDATA[gerado pis-lopez]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[rack]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[ruby 1.9]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=214</guid>
		<description><![CDATA[Thanks to the cold and snowy New England winter this year, I&#8217;ve been able to devote quite a bit of time to getting Mack to run on Ruby 1.9, so with that said, here&#8217;s the 0.8.3 release of Mack, featuring&#8230; TADA&#8230; Ruby 1.9!! Of course there are a few other features and improvements in this [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to the cold and snowy New England winter this year, I&#8217;ve been able to devote quite a bit of time to getting Mack to run on Ruby 1.9, so with that said, here&#8217;s the 0.8.3 release of Mack, featuring&#8230; TADA&#8230; Ruby 1.9!! Of course there are a few other features and improvements in this release. Here&#8217;s a quick run down:</p>
<h3>Ruby 1.9</h3>
<p>The big one. Mack runs very well on Ruby 1.9, unfortunately I can&#8217;t say the same thing about some other frameworks. I&#8217;ve had some run ins with DataMapper on 1.9, but I&#8217;m sure those will be ironed out shortly.</p>
<p>A few weeks ago I announced I was working on getting Ruby 1.9 support for all my gems and libraries. I started out with Configatron, then upgraded Cachetastic and Genosaurus. Now Mack is 1.9 compatible. When I made the announcement the guys at RailsEnvy picked up on it and said that I made a call to arms to the community to pick up 1.9 support. Now granted, I didn&#8217;t actually say those words, but I think the intent was there, so I&#8217;m going to now officially say those words. This is a &#8216;call to arms&#8217; to the Ruby community to upgrade their gems, plugins, libraries, frameworks, etc&#8230; to work on Ruby 1.9. I&#8217;ve done it, and I can tell you, it&#8217;s not that tough. Just use multiruby, and you&#8217;re off and running.</p>
<h3>ActiveSupport In, Facets Out</h3>
<p>What with the world getting smaller these days, well, at least the world of Ruby web frameworks. A lot of great work is going into refactoring ActiveSupport and making it faster, better, and smaller. Because of that and the fact that every time a new release of Facets comes out it breaks a whole lot of stuff, I&#8217;ve decided to use ActiveSupport as the basis of the mack-facets gem. So basically mack-facets is just ActiveSupport with a few more enhancements.</p>
<h3>JavaScript Effects</h3>
<p>Thanks to the tireless efforts of Gerardo Pis-Lopez, mack-javascript, has been upgraded to add helpers methods for effects for both Prototype/Scriptaculous and jQuery. Thank you to Gerardo for the much needed upgraded to mack-javascript.</p>
<h3>Upgrades</h3>
<p>Mack has been upgraded to use Rack 0.9.1, DataMapper 0.9.9, and a few other smaller gems.</p>
<p>Changelog:</p>
<ul>
<li>[#243] Upgraded to Rack 0.9.1</li>
<li>[#242] Upgraded to DataMapper 0.9.9</li>
<li>[#241] Removed dependency on Facets</li>
<li>[#239] Add do_sqlite3 to gems.rb</li>
<li>[#166] Effects for mack-javascript</li>
<li>[#133] Added Form Builders</li>
<li>[#22] Ruby 1.9 Support</li>
<li>gem: rack 0.9.1</li>
<li>gem: rspec 1.1.12</li>
<li>gem: configatron 2.2.2</li>
<li>gem: cachetastic 2.1.2</li>
<li>gem: data_mapper 0.9.9</li>
<li>gem: addressable 2.0.1</li>
<li>gem: extlib 0.9.9</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2009/01/18/release-083/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Release 0.8.2</title>
		<link>http://www.metabates.com/2008/11/30/release-082/</link>
		<comments>http://www.metabates.com/2008/11/30/release-082/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 02:57:12 +0000</pubDate>
		<dc:creator>Mark Bates</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[addressable]]></category>
		<category><![CDATA[data mapper]]></category>
		<category><![CDATA[deferred? routes]]></category>
		<category><![CDATA[ebb]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Ezra Zygmuntowicz]]></category>
		<category><![CDATA[facets]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[haml]]></category>
		<category><![CDATA[mack]]></category>
		<category><![CDATA[merb]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[thin]]></category>

		<guid isPermaLink="false">http://www.mackframework.com/?p=206</guid>
		<description><![CDATA[Hey there folks, sorry for the long wait for this release, but it&#8217;s here. It&#8217;s been a long November for yours truly. I&#8217;ve had to find a new job. I&#8217;ve had pneumonia. We, at least in America, have celebrated Thanksgiving. And, of course, who can forget RubyConf 2008? So with that said, what&#8217;s in 0.8.2? [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there folks, sorry for the long wait for this release, but it&#8217;s here. It&#8217;s been a long November for yours truly. I&#8217;ve had to find a new job. I&#8217;ve had pneumonia. We, at least in America, have celebrated Thanksgiving. And, of course, who can forget RubyConf 2008?</p>
<p>So with that said, what&#8217;s in 0.8.2? Honestly, not a whole lot. There are a couple of bug fixes, a button_to_remote (think submit_to_remote in Rails) helper, and deferred routes. More on deferred routes in a moment, as it&#8217;s actually a pretty cool feature that only Mack and Merb share. And finally there is bundled gems.</p>
<h3>Bundled Gems</h3>
<p>What do I mean I say &#8216;bundled gems&#8217;? Well, because of the rather large number of gems that get installed with Mack, and because of some gem version dependency issues, Mack is now bundling it&#8217;s third party dependency gems inside itself. For example, mack-facets used to rely on the gems &#8216;facets&#8217; and &#8216;english&#8217;. Those gems are now bundled inside the mack-facets gem and now longer need to be downloaded and installed by end users. This should make installing Mack super easy. It should also make dealing with having multiple versions of Mack installed on your system easier to deal with and maintain.</p>
<h3>Deferred? Routes</h3>
<p>So what are deferred routes? Ezra wrote a really great write up back in <a href="http://brainspl.at/articles/2008/04/18/deferred-requests-with-merb-ebb-and-thin" target="_blank">April</a>. The idea is simple, with newer web servers such as Thin and Ebb, you can tell them to spawn a new thread to handle particular requests, such as long running processes like file uploads. This can really help speed things up as server can process regular requests using an event machine model, which is very fast, but can be really slow and block the server for longer processes. Now those processes can spawn into their own threads and not block the server.</p>
<p>In Mack 0.8.2 you can mark your routes with a deferred? =&gt; true option which will trigger this behavior. It&#8217;s much more advanced than the similar feature that can be found in Merb, which requires a separate configuration for your deferred actions, and the urls have to be &#8216;hard coded&#8217;. Mack let&#8217;s you use all the dynamic power of your routes, like you would want to. It&#8217;s just another option on the route itself. For a great tutorial on using deferred routes, check out the following page on www.mackery.com:</p>
<p><a href="http://www.mackery.com/routing/deferred_routes">http://www.mackery.com/routing/deferred_routes</a></p>
<h3>Upgraded Dependencies</h3>
<p>A few gems have been upgraded as part of this release, the big ones include DataMapper to 0.9.7, ActiveRecord to 2.2.2, and Haml to 2.0.4.</p>
<p>Changelog:</p>
<ul>
<li>[#237] Fixed render :rjs throws errors</li>
<li>[#236] Upgraded to ActiveRecord 2.2.2</li>
<li>[#235] Upgraded to DataMapper 0.9.7</li>
<li>[#230] Upgraded to facets 2.4.5</li>
<li>[#229] Upgraded to english 0.3.1</li>
<li>[#227] Removed WEBrick logging</li>
<li>[#226] Bundled gems.</li>
<li>[#225] Removed dependency on Thin</li>
<li>[#223] Fixed mackery console fails</li>
<li>[#148] Added button_to_remote helper method.</li>
<li>[#16] Added deferred? routes.</li>
<li>gem: active_record 2.2.2</li>
<li>gem: data_mapper 0.9.7</li>
<li>gem: addressable 2.0.0</li>
<li>gem: facets 2.4.5</li>
<li>gem: english 0.3.1</li>
<li>gem: rspec 1.1.11</li>
<li>gem: haml 2.0.4</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.metabates.com/2008/11/30/release-082/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

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

