<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>I.NFECTIO.US: YAML Cookbook</title>
    <link>http://i.nfectio.us/articles/2006/06/30/yaml-cookbook</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>"Nothing in life is worth doing if you have no life while doing it"</description>
    <item>
      <title>YAML Cookbook</title>
      <description>While researching what some of the YAML syntax was doing in &lt;a href="http://blog.bleything.net/"&gt;Ben Bleything's&lt;/a&gt; article on &lt;a href="http://blog.bleything.net/articles/2006/06/27/dry-out-your-database-yml"&gt;DRY'ing up your database config&lt;/a&gt;, I ran across the &lt;a href="http://yaml4r.sourceforge.net/cookbook/"&gt;YAML Cookbook&lt;/a&gt;. I've only ever used YAML for my database.yml and test fixtures, so I was really surprised to see the power YAML affords the Ruby programmer. Check it out, you will find a few things useful in your fixtures and I'm sure other ideas on it's use will come to you as you see how powerful it is.</description>
      <pubDate>Fri, 30 Jun 2006 00:18:09 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:2b478144-495a-4a63-8c6b-1fa6dfb33a15</guid>
      <author>Bob Silva</author>
      <link>http://i.nfectio.us/articles/2006/06/30/yaml-cookbook</link>
      <category>Ruby on Rails</category>
      <category>ruby</category>
      <category>yaml</category>
      <category>book</category>
    </item>
    <item>
      <title>"YAML Cookbook" by Power</title>
      <description>Cheese is where the home is.</description>
      <pubDate>Mon, 24 Jul 2006 15:58:50 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:db95c939-ad8e-407c-800e-0b355e467324</guid>
      <link>http://i.nfectio.us/articles/2006/06/30/yaml-cookbook#comment-36</link>
    </item>
    <item>
      <title>"YAML Cookbook" by jean</title>
      <description>I tried to use references to do some DRY in fixtures, and quickly abandonned it : 

ref: &amp;ref
  name: test user
  role: user

joe_user:
  uid: 0
  mail: &lt;a href="mailto:joe@joe.com" rel="nofollow"&gt;joe@joe.com&lt;/a&gt;
  jack@jack.com
  joe@joe.com
  name: test_user
  role: user

jack_user:
  jack@jack.com

If you have had success in using the : * syntax to do DRY in fixtures would you ming posting a quick recipe as a future blog post ? thanks</description>
      <pubDate>Fri, 30 Jun 2006 01:10:08 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:5ca171fa-d693-4429-9c88-f28b8948af61</guid>
      <link>http://i.nfectio.us/articles/2006/06/30/yaml-cookbook#comment-14</link>
    </item>
    <item>
      <title>"YAML Cookbook" by jean</title>
      <description>I tried to use references to do some DRY in fixtures, and quickly abandonned it : 

ref: &amp;ref
  name: test user
  role: user

joe_user:
  uid: 0
  mail: &lt;a href="mailto:joe@joe.com" rel="nofollow"&gt;joe@joe.com&lt;/a&gt;
  jack@jack.com
  joe@joe.com
  name: test_user
  role: user

jack_user:
  jack@jack.com

If you have had success in using the : * syntax to do DRY in fixtures would you ming posting a quick recipe as a future blog post ? thanks</description>
      <pubDate>Fri, 30 Jun 2006 01:09:57 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:b17e2e3d-1dd8-4143-8948-92a8b5fdcd63</guid>
      <link>http://i.nfectio.us/articles/2006/06/30/yaml-cookbook#comment-13</link>
    </item>
  </channel>
</rss>
