<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,2 @@
-.DS_Store
 coverage/
 pkg/</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,11 @@
-require 'rubygems'
 require 'rake'
 require 'echoe'
 
 Echoe.new('simplesem', '0.1.3') do |p|
-  p.summary             = &quot;SIMPLESEM Interpreter&quot;
-  p.description         = &quot;Interpreter for parsing and executing SIMPLESEM programs&quot;
-  p.url                 = &quot;http://github.com/robolson/simplesem&quot;
-  p.author              = &quot;Rob Olson&quot;
-  p.email               = &quot;rob@thinkingdigitally.com&quot;
+  p.summary = &quot;SIMPLESEM Interpreter&quot;
+  p.description = &quot;Interpreter for parsing and executing SIMPLESEM programs&quot;
+  p.url = &quot;http://github.com/robolson/simplesem&quot;
+  p.author = &quot;Rob Olson&quot;
+  p.email = &quot;rob@thinkingdigitally.com&quot;
   p.runtime_dependencies = [&quot;treetop &gt;=1.2.4&quot;]
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -14,12 +14,16 @@
 #         if it is also specified.
 #
 
-require 'rubygems'
 require 'rdoc/usage'
 require 'getoptlong'
 
-$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + &quot;/../lib&quot;))
-require 'simplesem'
+# The gem packager will properly add the lib dir to LOAD_PATH when
+# executing the gem but load path manipulation is needed during development
+unless $LOAD_PATH.include?(File.expand_path('../../lib', __FILE__))
+  $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
+end
+
+require 'simplesem'   # must execute after manipulating the load path
 
 opts = GetoptLong.new(
   [ '-h', '--help', GetoptLong::NO_ARGUMENT ],
@@ -52,4 +56,4 @@ if (verbosity == 1)
   puts &quot;\nDATA: \n&quot; + ssp.inspect_data
 elsif (verbosity == 2)
   puts &quot;\nDATA: \n&quot; + ssp.inspect_data_with_history
-end
\ No newline at end of file
+end</diff>
      <filename>bin/simplesem</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1 @@
-dir = File.dirname(__FILE__)
-require &quot;#{dir}/simplesem/simplesem_program&quot;
\ No newline at end of file
+require 'simplesem/simplesem_program'</diff>
      <filename>lib/simplesem.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,8 @@
-require 'rubygems'
 require 'treetop'
+require 'simplesem/arithmetic_node_classes'
 dir = File.dirname(__FILE__)
-require File.expand_path(&quot;#{dir}/arithmetic_node_classes&quot;)
-Treetop.load File.expand_path(&quot;#{dir}/arithmetic&quot;)
-Treetop.load File.expand_path(&quot;#{dir}/simple_sem&quot;)
+Treetop.load File.expand_path(File.join(dir, 'arithmetic'))
+Treetop.load File.expand_path(File.join(dir, 'simple_sem'))
 
 class ProgramHalt &lt; Exception
 end
@@ -54,4 +53,4 @@ class SimpleSemProgram
     @data.each_with_index {|loc, i| res += &quot;#{i}: #{loc.inspect}\n&quot; }
     res
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/simplesem/simplesem_program.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,4 +9,4 @@ jumpt 10, D[1] &lt; D[0]     // if(m &lt; n)
 set 1, D[1]-D[0]
 jump 11
 set 0, D[0]-D[1]
-jump 6
\ No newline at end of file
+jump 6</diff>
      <filename>sample_programs/gcd.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ set 0, 0
 set write, &quot;hello world!&quot;
 set 0, D[0]+1
 jumpt ip-3, D[0] &lt; 5
-halt
\ No newline at end of file
+halt</diff>
      <filename>sample_programs/hello-world.txt</filename>
    </modified>
    <modified>
      <diff>@@ -11,4 +11,4 @@ jump 3
 set write, D[0]
 set write, D[1]
 set write, D[2]
-halt
\ No newline at end of file
+halt</diff>
      <filename>sample_programs/while-loop.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,5 @@
-dir = File.dirname(__FILE__)
-require File.expand_path(&quot;#{dir}/test_helper&quot;)
-libdir = dir + &quot;/../lib&quot;
-require File.expand_path(&quot;#{libdir}/simplesem&quot;)
+require 'test_helper'
+require 'simplesem'
 
 class SimpleSemParserTest &lt; Test::Unit::TestCase
   include ParserTestHelper
@@ -135,4 +133,4 @@ class SimpleSemParserTest &lt; Test::Unit::TestCase
       parse('halt').execute(@ssp)
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>test/simplesem_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,5 @@
 require 'test/unit'
 require 'stringio'
-require 'rubygems'
 require 'treetop'
 
 module ParserTestHelper</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b602cfa98c1f31f7138860ec3b4f8d00180f0a97</id>
    </parent>
  </parents>
  <author>
    <name>Rob Olson</name>
    <email>rob@thinkingdigitally.com</email>
  </author>
  <url>http://github.com/robolson/simplesem/commit/300a5b9e9aee72aeff1abd42ee3efc9522511c10</url>
  <id>300a5b9e9aee72aeff1abd42ee3efc9522511c10</id>
  <committed-date>2009-09-26T23:58:11-07:00</committed-date>
  <authored-date>2009-09-26T18:25:04-07:00</authored-date>
  <message>Remove all requires of 'rubygems'.

Removed all requires to Rubygems and made better use of the load
path as discussed on the Riding Rails blog:
http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices</message>
  <tree>a3bca81d608ec6f3003c16fbd2201dd59f049cf4</tree>
  <committer>
    <name>Rob Olson</name>
    <email>rob@thinkingdigitally.com</email>
  </committer>
</commit>
