<?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>Dr Nic &#187; RejectConf</title>
	<atom:link href="http://drnicwilliams.com/category/rejectconf/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Mon, 21 May 2012 03:31:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>RejectConf tonight &#8211; RailsConfEurope 2007</title>
		<link>http://drnicwilliams.com/2007/09/18/rejectconf-tonight-railsconfeurope-2007/</link>
		<comments>http://drnicwilliams.com/2007/09/18/rejectconf-tonight-railsconfeurope-2007/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 08:51:41 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[RejectConf]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/09/18/rejectconf-tonight-railsconfeurope-2007/</guid>
		<description><![CDATA[Tonight only. Live in Berlin. One show only. RejectConf. Woohoo! Who? What? Well, it could be you. If you are in Berlin tonight, come to RejectConf. Time: 9pm (get there early to ensure a seat or at least a space indoors) Location: NOT NEAR THE VENUE The remaining details are documented so you can figure [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2006/08/29/ann-spy-on-the-japanese-rubists/' rel='bookmark' title='Permanent Link: [ANN] Spy on the Japanese Rubists'>[ANN] Spy on the Japanese Rubists</a> <small>Their Ruby code is surrounded by a shrouded of Japanese...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Tonight only. Live in Berlin. One show only. RejectConf. Woohoo!</p>
<p>Who? What?</p>
<p>Well, it could be <strong>you</strong>. If you are in Berlin tonight, come to <strong>RejectConf</strong>.</p>
<p>Time: <strong>9pm</strong> (get there early to ensure a seat or at least a space indoors)<br />
Location: <a href="http://www.rug-b.de/wiki/show/RejectConf">NOT NEAR THE VENUE</a></p>
<p>The remaining details are <a href="http://www.rug-b.de/wiki/show/RejectConf">documented</a> so you can figure out which U-Bahn lines to take and which stops to get off.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2006/08/29/ann-spy-on-the-japanese-rubists/' rel='bookmark' title='Permanent Link: [ANN] Spy on the Japanese Rubists'>[ANN] Spy on the Japanese Rubists</a> <small>Their Ruby code is surrounded by a shrouded of Japanese...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/09/18/rejectconf-tonight-railsconfeurope-2007/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>New Gem Generator gets RSpec [video]</title>
		<link>http://drnicwilliams.com/2007/05/27/new-gem-generates-gets-rspec-video/</link>
		<comments>http://drnicwilliams.com/2007/05/27/new-gem-generates-gets-rspec-video/#comments</comments>
		<pubDate>Sun, 27 May 2007 14:33:53 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Gems]]></category>
		<category><![CDATA[NewGem]]></category>
		<category><![CDATA[RejectConf]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/05/27/new-gem-generates-gets-rspec-video/</guid>
		<description><![CDATA[One day you will be able to write a human description of a RubyGem and it will make it for you. Ok, that&#8217;s crap. But the New Gem Generator is doing more and more cooler things lately; so let&#8217;s take a peek&#8230; RSpec For a growing number of people, RSpec is the way to go, [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2009/11/04/hacking-someones-gem-with-github-and-gemcutter/' rel='bookmark' title='Permanent Link: Hacking someone&#8217;s gem with github and gemcutter'>Hacking someone&#8217;s gem with github and gemcutter</a> <small> Ever used a rubygem, found a bug, and just...</small></li><li><a href='http://drnicwilliams.com/2008/12/11/future-proofing-your-ruby-code/' rel='bookmark' title='Permanent Link: Future proofing your Ruby code. Ruby 1.9.1 is coming.'>Future proofing your Ruby code. Ruby 1.9.1 is coming.</a> <small> Bugger. I&#8217;m a Ruby monogamist. I use the Ruby...</small></li><li><a href='http://drnicwilliams.com/2008/10/31/newgem-100-all-thanks-to-cucumber/' rel='bookmark' title='Permanent Link: newgem 1.0.0 all thanks to Cucumber'>newgem 1.0.0 all thanks to Cucumber</a> <small>The New Gem Generator (newgem) was exciting, moderately revolutionary, and...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<div>
<span style="float: right"><a href="http://drnicwilliams.com/wp-content/uploads/2007/05/newgem_files.png" onclick="window.open('http://drnicwilliams.com/wp-content/uploads/2007/05/newgem_files.png','popup','width=800,height=600,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://drnicwilliams.com/wp-content/uploads/2007/05/newgem_files-tm.png" height="100" width="133" border="1" hspace="4" vspace="4" alt="slide.007" title="slide.007" /></a></span></p>
<p>One day you will be able to write a human description of a RubyGem and it will make it for you. Ok, that&#8217;s crap. But the <a href="http://newgem.rubyforge.org/" title="New Gem Generator">New Gem Generator</a> is doing more and more cooler things lately; so let&#8217;s take a peek&#8230;</p>
<h2>RSpec</h2>
<p>For a growing number of people, RSpec is the way to go, over the Test::Unit test suite. Now, thanks to a contribution from <a href="http://www.robbyonrails.com/" title="Robby on Rails">Robby Russell</a> and <a href="http://blog.imperialdune.com/" title="graeme nelson - [ thoughts on web site design and development ]">Graeme Nelson</a> during Railsconf.</p>
</div>
<pre>
$ newgem my_cool_gem <span class="string">-t rspec</span>
$ cd my_cool_gem
$ rake  # runs specs
</pre>
<h2>Bonus website</h2>
<p>New gems now have a <code>website</code> folder with an <code>index.txt</code> file (redcloth format). Put your glorious promotional materials and tutorials here (plus add additional .txt files as well) and the <code>rake website</code> task will convert them to html files and upload them to your rubyforge website.</p>
<p>The standard template looks like this (you&#8217;re encouraged to change some colours or fonts!)</p>
<p><iframe src="http://newgem.rubyforge.org" border=0 width="100%" height="300px"></iframe></p>
<h2>Deploying gems</h2>
<p>Ready to release a new X.Y.Z version of your gem? It takes 3 minutes.</p>
<ol>
<li>Set the version number in <code>lib/<gemname>/version.rb</code>.</li>
<li>Check your Manifest.txt that it includes all new files (via <code>rake check_manifest</code>)</li>
<li>Update <code>History.txt</code> with changes. The default supported format is 2 paragraphs &#8211; a header and group of bullet points; these look nice when converted to rdoc format.</li>
<li>Commit the new version to repository.</li>
<li>Deploy/release gem</li>
</ol>
<pre>
$ rake deploy VERSION=X.Y.Z
</pre>
<p>This will release your RubyGem to rubyforge so people can install it; plus upload your website and your rdocs.</p>
<p>You&#8217;ll then be prompted to commit a copy of the trunk as a tag <code>REL-X.Y.Z</code>. This could be very useful one day!</p>
<h2>Video of NewGem at RejectConf</h2>
<p>You can read the <a href="http://drnicwilliams.com/wp-content/uploads/2007/05/RejectConf-DrNic-New_Gem_Generator.pdf">pdf slides</a> and/or watch the presentation from RejectConf:</p>
<p><embed style="width:500px; height:386px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-4461518020671050786&#038;hl=en" flashvars=""> </embed></p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2009/11/04/hacking-someones-gem-with-github-and-gemcutter/' rel='bookmark' title='Permanent Link: Hacking someone&#8217;s gem with github and gemcutter'>Hacking someone&#8217;s gem with github and gemcutter</a> <small> Ever used a rubygem, found a bug, and just...</small></li><li><a href='http://drnicwilliams.com/2008/12/11/future-proofing-your-ruby-code/' rel='bookmark' title='Permanent Link: Future proofing your Ruby code. Ruby 1.9.1 is coming.'>Future proofing your Ruby code. Ruby 1.9.1 is coming.</a> <small> Bugger. I&#8217;m a Ruby monogamist. I use the Ruby...</small></li><li><a href='http://drnicwilliams.com/2008/10/31/newgem-100-all-thanks-to-cucumber/' rel='bookmark' title='Permanent Link: newgem 1.0.0 all thanks to Cucumber'>newgem 1.0.0 all thanks to Cucumber</a> <small>The New Gem Generator (newgem) was exciting, moderately revolutionary, and...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/05/27/new-gem-generates-gets-rspec-video/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dr Nic&#8217;s Magic Show at RejectConf2007</title>
		<link>http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/</link>
		<comments>http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/#comments</comments>
		<pubDate>Tue, 22 May 2007 23:34:50 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Magic Model Generator]]></category>
		<category><![CDATA[Magic Models]]></category>
		<category><![CDATA[RejectConf]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/</guid>
		<description><![CDATA[Update: there is a patch available for edge rails to support merging by generators; add comments to the ticket. The original Dr Nic&#8217;s Magic Models were named as such because I entertained the idea of showing them off as a live magic show. So, given 3 minutes in front of some of the Ruby community&#8217;s [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2007/08/20/newgem-using-rubigen-for-generator-support/' rel='bookmark' title='Permanent Link: NewGem Generator &#8211; now with script/generate'>NewGem Generator &#8211; now with script/generate</a> <small>The New Gem Generator (0.13.0)&#8217;s newgem command now behaves like...</small></li><li><a href='http://drnicwilliams.com/2007/07/23/magic-wiggly-lines-guessmethod-by-chris-shea/' rel='bookmark' title='Permanent Link: Magic Wiggly Lines => GuessMethod, by Chris Shea'>Magic Wiggly Lines => GuessMethod, by Chris Shea</a> <small>If you ever make time to code just for pleasure,...</small></li><li><a href='http://drnicwilliams.com/2007/05/27/new-gem-generates-gets-rspec-video/' rel='bookmark' title='Permanent Link: New Gem Generator gets RSpec [video]'>New Gem Generator gets RSpec [video]</a> <small> One day you will be able to write a...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> there is a patch available for edge rails to support <a href="http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/#comment-26294">merging by generators</a>; add comments to the <a href="http://dev.rubyonrails.org/ticket/8439">ticket</a>.</p>
<hr/>
<p>The original Dr Nic&#8217;s Magic Models were named as such because I entertained the idea of showing them off as a live magic show. So, given 3 minutes in front of some of the Ruby community&#8217;s hottest hackers, I got my chance! Not the Original Magic Models, but the never-before-released <a href="http://magicmodels.rubyforge.org/magic_model_generator/">Magic Model Generator</a>.</p>
<p>How to install and use the <code>magic_model_generator</code> follows the video from RejectConf:</p>
<h3>The Magic Show</h3>
<p><embed style="width:500px; height:426px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-603944638448214790&#38;hl=en" flashvars=""> </embed></p>
<h3>How to use it</h3>
<p>Create a rails application, and point it to your database.</p>
<pre>$ rails magic_show -d [mysql|sqlite|postgresql|oracle|etc|etc]
$ cd magic_show
$ cp database.yml.sample database.yml
and point it to your database.yml to your legacy database
</pre>
<p>I use the database created for the ActiveRecord test cases &#8211; <code>activerecord_unittest</code>. If you&#8217;ve never downloaded the activerecord gem, run <code>rake build_[mysql|sqlite|postgresql|oracle|etc|etc]_databases</code>, and then <code>rake test_[mysql|sqlite|postgresql|oracle|etc|etc]</code>, then you&#8217;ve probably got more free time than I do as a result and I appreciate that. And so does my wife.</p>
<p>Now install the <code>magic_model_generator</code> gem:</p>
<pre>$ sudo gem install magic_model_generator</pre>
<p>Nonetheless, you&#8217;re done. That&#8217;s all the preparation I did for the video.</p>
<p>Next I recreated the <code>schema.rb</code> file and the schema_info database table via <code>rake db:migrate</code>.</p>
<p>Next I ran the generator:</p>
<pre>$ ./script/generate magic_model</pre>
<p>And we&#8217;re done.</p>
<h3>Coming soon</h3>
<p>The MMG is awesome.</p>
<p>The one major drawback of the MMG is the same drawback of all rails generators: if you want to regenerate your models (say you update your schema via migrations) then you cannot regenerate your model associations and validations without completely recreating the file, thus destroying anything else you wrote. Which is useless.</p>
<p>The world of version control (subversion, cvs, etc etc) already solved this problem: merging. So I&#8217;m investigating adding merging to the rails_generator. That should be neat.</p>
<h3>New Gem Generate to get merging too?</h3>
<p>Currently the newgem command doesn&#8217;t use the rails_generator for creating files. So adding merging to rails_generator won&#8217;t help newgem. That is, unless I rewrite newgem. So, I&#8217;ll look into that too.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2007/08/20/newgem-using-rubigen-for-generator-support/' rel='bookmark' title='Permanent Link: NewGem Generator &#8211; now with script/generate'>NewGem Generator &#8211; now with script/generate</a> <small>The New Gem Generator (0.13.0)&#8217;s newgem command now behaves like...</small></li><li><a href='http://drnicwilliams.com/2007/07/23/magic-wiggly-lines-guessmethod-by-chris-shea/' rel='bookmark' title='Permanent Link: Magic Wiggly Lines => GuessMethod, by Chris Shea'>Magic Wiggly Lines => GuessMethod, by Chris Shea</a> <small>If you ever make time to code just for pleasure,...</small></li><li><a href='http://drnicwilliams.com/2007/05/27/new-gem-generates-gets-rspec-video/' rel='bookmark' title='Permanent Link: New Gem Generator gets RSpec [video]'>New Gem Generator gets RSpec [video]</a> <small> One day you will be able to write a...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Functional Testing using a Matrix to cover all edge cases [video]</title>
		<link>http://drnicwilliams.com/2007/05/22/functional-testing-using-a-matrix-to-cover-all-edge-cases-video/</link>
		<comments>http://drnicwilliams.com/2007/05/22/functional-testing-using-a-matrix-to-cover-all-edge-cases-video/#comments</comments>
		<pubDate>Tue, 22 May 2007 07:12:46 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Link]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[RejectConf]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/05/22/functional-testing-using-a-matrix-to-cover-all-edge-cases-video/</guid>
		<description><![CDATA[I&#8217;ve been a fan of Ryan Davis&#8216; (zenspider) and Eric Hodel&#8216; ZenTest library (including its autotest CI tool for rails and gems), and their Hoe gem, the Rubyforge gem, etc ever since I figured out what they did. (Side note: how to setup rubyforge gem) Over the last month, Ryan mentioned &#8220;functional testing by a [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2009/03/26/testing-outbound-emails-with-cucumber/' rel='bookmark' title='Permanent Link: Testing outbound emails with Cucumber'>Testing outbound emails with Cucumber</a> <small> My testimonial for Cucumber still stands even in 2009....</small></li><li><a href='http://drnicwilliams.com/2008/12/05/my-rubygems-development-tools-and-workflow/' rel='bookmark' title='Permanent Link: My RubyGems development tools and workflow'>My RubyGems development tools and workflow</a> <small> The Open Source Developers Conference (osdc) is a nifty...</small></li><li><a href='http://drnicwilliams.com/2008/07/04/unit-testing-iphone-apps-with-ruby-rbiphonetest/' rel='bookmark' title='Permanent Link: Unit Testing iPhone apps with Ruby: rbiphonetest'>Unit Testing iPhone apps with Ruby: rbiphonetest</a> <small> Everything to love about Ruby: the concise, powerful language;...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a fan of <a href="http://blog.zenspider.com">Ryan Davis</a>&#8216; (zenspider) and <a href="http://blog.segment7.net">Eric Hodel</a>&#8216; ZenTest library (including its autotest CI tool for rails and gems), and their <a href="http://seattlerb.rubyforge.org/hoe/">Hoe</a> gem, the Rubyforge gem, etc ever since I figured out what they did. (Side note: how to <a href="http://newgem.rubyforge.org/rubyforge.html">setup rubyforge gem</a>)</p>
<p>Over the last month, Ryan mentioned &#8220;functional testing by a matrix&#8221; in <a href="http://blog.zenspider.com/archives/2007/04/functional_test_matrix.html">four</a> <a href="http://blog.zenspider.com/archives/2007/04/functional_test_matrix_cont_sorta.html">great</a> <a href="http://blog.zenspider.com/archives/2007/04/functional_test_matrix_a_visualization.html">blog</a> <a href="http://blog.zenspider.com/archives/2007/05/functional_test_matrix_gets_a_nice_little_boost.html">articles</a>.</p>
<p>Ryan shows this off at RejectConf; its 16 minutes but definitely worth your time to investigate, as I think this will be awesome for ensuring basic edge cases are thoroughly tested. Can a guest create something? Can a member delete something?</p>
<p>It is hard to see the code on the screen, but look at the blog posts linked above to get the gist of what is being shown.</p>
<p>People were really interested this as you can tell by the huge number of questions, despite this being the last of many many presentations.</p>
<p><embed style="width:500px; height:376px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-2381939140760426511&#038;hl=en" flashvars=""> </embed></p>
<p>This stuff looks primed for a sweet generator to create the test file.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2009/03/26/testing-outbound-emails-with-cucumber/' rel='bookmark' title='Permanent Link: Testing outbound emails with Cucumber'>Testing outbound emails with Cucumber</a> <small> My testimonial for Cucumber still stands even in 2009....</small></li><li><a href='http://drnicwilliams.com/2008/12/05/my-rubygems-development-tools-and-workflow/' rel='bookmark' title='Permanent Link: My RubyGems development tools and workflow'>My RubyGems development tools and workflow</a> <small> The Open Source Developers Conference (osdc) is a nifty...</small></li><li><a href='http://drnicwilliams.com/2008/07/04/unit-testing-iphone-apps-with-ruby-rbiphonetest/' rel='bookmark' title='Permanent Link: Unit Testing iPhone apps with Ruby: rbiphonetest'>Unit Testing iPhone apps with Ruby: rbiphonetest</a> <small> Everything to love about Ruby: the concise, powerful language;...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/05/22/functional-testing-using-a-matrix-to-cover-all-edge-cases-video/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

