<?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>RubyGorge &#187; Gemology</title>
	<atom:link href="http://rubygorge.com/category/through/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubygorge.com</link>
	<description>The Ruby user&#039;s group in the greatest place on earth</description>
	<lastBuildDate>Wed, 16 Jun 2010 14:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Getting started with the codebase [updated]</title>
		<link>http://rubygorge.com/through/getting-started-with-the-codebase/</link>
		<comments>http://rubygorge.com/through/getting-started-with-the-codebase/#comments</comments>
		<pubDate>Tue, 18 May 2010 15:13:27 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Gemology]]></category>

		<guid isPermaLink="false">http://rubygorge.org/?p=36</guid>
		<description><![CDATA[For those new to Ruby, here are some steps to help you get started with the codebase of the Gorge Technology Alliance Ruby web application: Install Ruby. If you&#8217;re on Mac, you probably already have it if you&#8217;ve installed XCode, which you probably already have if you&#8217;re a developer. That version (1.8.7) is perfect. If [...]]]></description>
			<content:encoded><![CDATA[<p>For those new to Ruby, here are some steps to help you get started with the codebase of the Gorge Technology Alliance Ruby web application:</p>
<h3>Install Ruby.</h3>
<ul>
<li>If you&#8217;re on Mac, you probably already have it if you&#8217;ve installed XCode, which you probably already have if you&#8217;re a developer. That version (1.8.7) is perfect.</li>
<li>If you&#8217;re on Linux, use apt, yum, or whatever your package manager is.</li>
<li>If you&#8217;re on Windows, there&#8217;s a <a href="http://rubyinstaller.org/">RubyInstaller</a> that you can download that takes care of the details for you.</li>
</ul>
<p>Full details are on the <a href="http://www.ruby-lang.org/en/downloads/">Ruby Download Page</a>.</p>
<h3>Beef-up Ruby with Gems and Rails</h3>
<p>Grab <a href="http://rubygems.org/pages/download">RubyGems</a>, Ruby&#8217;s packaging system. After you do that, you&#8217;ll be able to install <a href="http://rubyonrails.org/">Ruby on Rails</a>. With Gems, the easiest way to install Rails is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails rspec rspec-rails rcov ci_reporter thoughtbot-shoulda faker</pre></div></div>

<p>(Note: if you&#8217;re on Windows, you won&#8217;t use &#8220;sudo&#8221;)</p>
<p>That&#8217;ll give you Rails and all of the Rails pre-reqs.</p>
<h3>Get Git, and get familiar with Github</h3>
<p>The GTA code is hosted on <a href="http://github.com">Github</a>. You can always see <a href="http://github.com/rubygorge/crgta">the CRGTA repository using the website</a>.</p>
<p>If you&#8217;re not familiar with <a href="http://git-scm.com/">Git</a>, our source control revision system of choice, you&#8217;ll need to be. Head to the Git <a href="http://git-scm.com/download">download page</a> and grab it.</p>
<h4>Fork the code</h4>
<p>You&#8217;ll probably want to have an account on <a href="http://github.com">Github</a>. This is our workflow for making changes to the codebase, so if you want to have your changes included, you&#8217;ll need an account on Github. Using your account, you&#8217;ll <a href="http://help.github.com/forking/">fork the code</a> so that you can work on your own version. When you have changes that you want added to the main repository, you&#8217;ll send a <a href="http://github.com/guides/pull-requests">pull request</a>.</p>
<h3>Update your system with code pre-reqs</h3>
<p>Now that you have Ruby, Git, and your Github account, go and <a href="http://help.github.com/forking/">fork the code</a> and clone the repository to your local system using the command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ git clone git<span style="color: #000000; font-weight: bold;">@</span>github.com:USERNAME<span style="color: #000000; font-weight: bold;">/</span>crgta.git</pre></div></div>

<p>replacing USERNAME with your Github username. This will create the directory called &#8220;crgta&#8221; where you run this command. You&#8217;ll use the Gem system to install some prereqs using the following commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> crgta$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> rake gems:<span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>This command uses rake, Ruby&#8217;s make system, to install gems that the codebase requires.</p>
<h3>Create and migrate your database</h3>
<p>At this point, you have a local version of the codebase. Every Rails app is tied to a database, so you&#8217;ll need a database. You have to create a file called database.yml in the config directory. If you browse to the config directory of your new codebase, you&#8217;ll see the file example_database.yml, which you can change to database.yml. This is a configuration file for the <a href="http://www.sqlite.org/download.html">SQlite database</a>, which is good enough for our purposes. Once you have this file, use the following commands in the crgta directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ rake db:create$ rake db:migrate$ rake db:seed</pre></div></div>

<p>This will create the database and add some initial data. After you&#8217;ve done this, you can issue the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ .<span style="color: #000000; font-weight: bold;">/</span>script<span style="color: #000000; font-weight: bold;">/</span>server</pre></div></div>

<p>which will start the application on <a href="http://localhost:3000">http://localhost:3000</a>.</p>
<h3>Pull upstream changes</h3>
<p>After you fork the code and start working, you&#8217;ll occasionally want to pull the changes from <a href="http://github.com/rubygorge/crgta">the main CRGTA repository</a>. That will keep your codebase up to date so that you stay with us. Head to the <a href="http://help.github.com/forking/">forking help page</a> for details.</p>
<p>Get to work</p>
<p>Now you&#8217;re set. Go play with the database, add functionality, and check out <a href="http://wiki.github.com/rubygorge/crgta/">the Wiki page</a>, which will be the home of the features list and details on codebase needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubygorge.com/through/getting-started-with-the-codebase/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s start a religious war!</title>
		<link>http://rubygorge.com/through/lets-start-a-religious-war/</link>
		<comments>http://rubygorge.com/through/lets-start-a-religious-war/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 02:05:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Gemology]]></category>

		<guid isPermaLink="false">http://rubygorge.com/?p=7</guid>
		<description><![CDATA[They say that the most fundamentalist people are the recent converts. Well, I&#8217;ve been programming for 10+ years in Python, and have been programming in Ruby for about 2 weeks, so I say I&#8217;m more fundamentalist than any of you people! Let&#8217;s make Ruby the official programming language of Star Monkeys!!]]></description>
			<content:encoded><![CDATA[<p>They say that the most fundamentalist people are the recent converts. Well, I&#8217;ve been programming for 10+ years in Python, and have been programming in Ruby for about 2 weeks, so I say I&#8217;m more fundamentalist than any of you people! Let&#8217;s make Ruby the official programming language of Star Monkeys!!</p>
]]></content:encoded>
			<wfw:commentRss>http://rubygorge.com/through/lets-start-a-religious-war/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
