<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>TDD developer &#187; ruby</title>
	<atom:link href="http://testdrivendevelopment.wordpress.com/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://testdrivendevelopment.wordpress.com</link>
	<description>Diary of an agile developer</description>
	<lastBuildDate>Wed, 28 Oct 2009 22:06:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='testdrivendevelopment.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a6ef45b2d30fa0fcbe697fa111d46fdd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>TDD developer &#187; ruby</title>
		<link>http://testdrivendevelopment.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://testdrivendevelopment.wordpress.com/osd.xml" title="TDD developer" />
		<item>
		<title>NAnt sucks and Rake rocks</title>
		<link>http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/</link>
		<comments>http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 13:34:59 +0000</pubDate>
		<dc:creator>makka</dc:creator>
				<category><![CDATA[continuous integration]]></category>
		<category><![CDATA[gallio]]></category>
		<category><![CDATA[NAnt]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/</guid>
		<description><![CDATA[In these days I’m moving my build scripts from NAnt to Rake. The main reason for doing this is that I’m moving from external dsl to an internal dsl. Internal DSLs are often the most approachable form of DSLs to write. Unlike external DSLs you don&#8217;t need to learn about grammars and language parsing, unlike [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=79&subd=testdrivendevelopment&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In these days I’m moving my build scripts from NAnt to Rake. The main reason for doing this is that I’m moving from external dsl to an internal dsl. Internal DSLs are often the most approachable form of DSLs to write. Unlike external DSLs you don&#8217;t need to learn about grammars and language parsing, unlike language workbenches you don&#8217;t need any special tools. With internal DSLs you work in your regular language environment.</p>
<p>This means that now I build my build scritps just with ruby. I believe this is a good way to learn this nice language. Rake in fact is nothing more that a Ruby library.</p>
<p>Getting started with Rake and .NET is very easy:</p>
<ul>
<li>Download the <a href="http://www.ruby-lang.org/en/downloads/">Ruby for windows one click installer</a>. </li>
<li>Install it </li>
<li>Create a file Rakefile.rb (type is text file) </li>
<li>Type:
<pre style="width:591px;height:342px;">task :default =&gt; :build

task :build =&gt; [:compile, :<span style="color:#00008b;">test</span>, :deploy] 

task :compile <span style="color:#0000ff;">do</span>
  params = '/t:Rebuild /nologo /v:m /<span style="color:#00008b;">p</span>:Configuration=Release src\demo.sln'
  msbuid = 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe'
  sh &quot;<span style="color:#8b0000;">#{msbuid} #{params}</span>&quot;
<span style="color:#0000ff;">end</span>

task :<span style="color:#00008b;">test</span> <span style="color:#0000ff;">do</span>
 runner = 'tools\\Gallio\\Gallio.Echo.exe'
 assemblies = FileList[&quot;<span style="color:#8b0000;">src/**/bin/Release/*.Fixture.exe</span>&quot;]
 extension = '' <span style="color:#008000;">#'/e:TeamCityExtension,Gallio.TeamCityIntegration'</span>
 sh &quot;<span style="color:#8b0000;">#{runner} #{assemblies} #{extension}</span>&quot;
<span style="color:#0000ff;">end</span>

task :deploy <span style="color:#0000ff;">do</span>
    sh &quot;<span style="color:#8b0000;">echo Task not yet implemented!</span>&quot;
<span style="color:#0000ff;">end</span></pre>
</li>
<li>
<p>Open a command prompt (Start-&gt;Run-&gt;Cmd) </p>
</li>
<li>
<p>Type: cd c:\[my RakeFile.rb folder] (obviously put your own path in) </p>
</li>
<li>Type: rake </li>
<li>
<p>Done! </p>
</li>
</ul>
<p>As you can see here above with rake there is no need to learn some crazy xml syntax. Whit this little script I compile my solution and run all unit tests. No need to write xml, only some ruby code. </p>
<p>Nothing more nothing less.</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:82fab512-4089-4dce-a650-ff5263fcf6fb" style="display:inline;float:none;margin:0;padding:0;">Technorati Tag: <a href="http://technorati.com/tags/rake" rel="tag">rake</a>,<a href="http://technorati.com/tags/ruby" rel="tag">ruby</a>,<a href="http://technorati.com/tags/nant" rel="tag">nant</a>,<a href="http://technorati.com/tags/gallio" rel="tag">gallio</a></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/testdrivendevelopment.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/testdrivendevelopment.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/testdrivendevelopment.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=testdrivendevelopment.wordpress.com&blog=2459763&post=79&subd=testdrivendevelopment&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://testdrivendevelopment.wordpress.com/2009/02/01/nant-sucks-and-rake-rocks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eaac7e727c1e026a9677bf418eca3ee9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">makka</media:title>
		</media:content>
	</item>
	</channel>
</rss>