<?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>where form meets function &#187; gem</title>
	<atom:link href="http://www.paulfedory.com/blog/tag/gem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulfedory.com/blog</link>
	<description>programming &#38; design by paul fedory</description>
	<lastBuildDate>Fri, 05 Feb 2010 22:06:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Introducing Trendy</title>
		<link>http://www.paulfedory.com/blog/2010/01/introducing-trendy/</link>
		<comments>http://www.paulfedory.com/blog/2010/01/introducing-trendy/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 12:37:43 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.paulfedory.com/blog/?p=21</guid>
		<description><![CDATA[Download the trendy gem, or visit the github for trendy. &#8212; I&#8217;ve made another gem! It&#8217;s called Trendy, and it is a simple wrapper for the Twitter Search API, but the only the part of it that concerns trending topics. I&#8217;ve initially made it pretty simple, so I was able to learn a lot about [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gemcutter.org/gems/trendy">Download the trendy gem</a>, or visit the <a href="http://github.com/paulfedory/trendy">github for trendy</a>.</p>
<p>&#8212;</p>
<p>I&#8217;ve made another gem! It&#8217;s called Trendy, and it is a simple wrapper for the Twitter Search API, but the only the part of it that concerns trending topics.</p>
<p>I&#8217;ve initially made it pretty simple, so I was able to learn a lot about <a href="http://github.com/technicalpickles/jeweler">jeweler</a> and <a href="http://rspec.info/">rspec</a> &#8211; because I developed this gem using Behaviour/Test Driven Development &#8211; that is: I wrote failing tests first, then wrote the code, got it passing, then refactored the code.</p>
<p>Right now, Trendy only works with current topics; in the future, it will support past trending topics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulfedory.com/blog/2010/01/introducing-trendy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing YamlSeeder</title>
		<link>http://www.paulfedory.com/blog/2010/01/introducing-yamlseeder/</link>
		<comments>http://www.paulfedory.com/blog/2010/01/introducing-yamlseeder/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 19:50:59 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://www.paulfedory.com/?p=13</guid>
		<description><![CDATA[Download the gem here (gemcutter.org) Visit the GitHub source here (github.com) &#8212; I&#8217;ve finally created a gem for Ruby on Rails apps. It&#8217;s called YamlSeeder, and its at version 0.0.1, naturally. YamlSeeder takes foxy-fixture-like YAML files and seeds them into your Rails app, using ActiveRecord. Why I Made It Originally, I stored all my seed [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gemcutter.org/gems/yaml_seeder">Download the gem here</a> (gemcutter.org)</p>
<p><a href="http://github.com/paulfedory/yaml_seeder">Visit the GitHub source here</a> (github.com)</p>
<p>&#8212;</p>
<p>I&#8217;ve finally created a gem for Ruby on Rails apps. It&#8217;s called YamlSeeder, and its at version 0.0.1, naturally.</p>
<p>YamlSeeder takes foxy-fixture-like YAML files and seeds them into your Rails app, using ActiveRecord.</p>
<p><strong>Why I Made It</strong></p>
<p>Originally, I stored all my seed data in YAML fixture files, and loaded them using Fixtures.create_fixtures.  This had the benefit of being easy to work with, and easy to maintain.  The downside was that it directly inserted the fixtures by SQL into the database&#8217;s tables.  But I wanted to use the callbacks and validation methods provided by ActiveRecord when seeding.  (For example, I wanted to generate a permalink field when saving using &#8220;before_save&#8221;.)</p>
<p>I modeled YamlSeeder after Fixtures.create_fixtures in ActiveRecord.  It supports the belongs_to association, but no other &#8211; this will come in a future release.</p>
<p><strong>How Do I Get It?</strong></p>
<p>the easiest way is to type:</p>
<p>gem install yaml_seeder</p>
<p>But for more information, <a href="http://gemcutter.org/gems/yaml_seeder">download the gem here</a>.  For the current source code, <a href="http://github.com/paulfedory/yaml_seeder">visit my GitHub here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulfedory.com/blog/2010/01/introducing-yamlseeder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
