<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>activeresource.rb</filename>
    </added>
    <added>
      <filename>from_future_import.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,39 +3,51 @@
 # RUBY PREREQUISITS
 require &quot;rubygems&quot;
 require &quot;yaml&quot;
-require &quot;ruby_fix/from_future_import.rb&quot;  # gemify this !
-require &quot;ruby_fix/activeresource.rb&quot;      # gemify this !
+
+require &quot;from_future_import.rb&quot;    # @todo replace by activesupport / activestring (mine)
+require &quot;activeresource.rb&quot;
     
 begin
+  # LOAD THE UNIVERSE
+  require_package &quot;backend&quot;
 
-# LOAD THE UNIVERSE
-require_package &quot;backend&quot;
 
-# CODE GAMES!
-$game_name = ARGV[0] || $config['default_game']
-require_package $game_name
+  # CODE GAMES!
+  $game_name = ARGV[0] || $config['default_game']
+  if $game_name.ends_with? &quot;/&quot; # clean game name
+    $game_name = $game_name[0...$game_name.size-1]
+  end
 
-if $game_name.ends_with? &quot;/&quot;
-  $game_name = $game_name[0...$game_name.size-1]
-end
+  require_package $game_name
 
-println &quot;no game #{$game_name} found&quot; and exit unless $game_name.is_folder?
+  println &quot;no game #{$game_name} found&quot; and exit unless $game_name.is_folder?
 
-# PLAY!
-class_name = $game_name.classify
-$game_class = class_name.instantiate rescue quit(&quot;Your game class needs to be called #{class_name}&quot;)
 
-begin
-  $game_class.run
-rescue Exit =&gt; e
-  println &quot;\nGAME OVER: #{e}\n&quot;
+  # PLAY!
+  class_name = $game_name.classify
+  $game_class = class_name.instantiate rescue quit(&quot;Your game class needs to be called #{class_name}&quot;)
+
+  begin
+    $game_class.run
+  rescue Exit =&gt; e # @todo should not be handled via exception
+    println &quot;\nGAME OVER: #{e}\n&quot;
+  end
+  # get this exception REPL shell running
+  #rescue Exception =&gt; e  
+  #  println &quot;GRR, EXCEPTION!&quot;
+  #  println e.message  
+  #  println e.backtrace
+  #  
+  #  repl
 end
 
-# get this exception REPL shell running
-#rescue Exception =&gt; e  
-#  println &quot;GRR, EXCEPTION!&quot;
-#  println e.message  
-#  println e.backtrace
-#  
-#  repl
+def repl
+  s = gets.trim
+  begin
+    result = eval(s)
+  rescue Exception =&gt; e
+    puts &quot;Exception: #{e.inspect}&quot;
+  rescue SyntaxError =&gt; e
+    puts &quot;SyntaxError: #{e.inspect}&quot;
+  end
 end
\ No newline at end of file</diff>
      <filename>play.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>ruby_fix/activeresource.rb</filename>
    </removed>
    <removed>
      <filename>ruby_fix/from_future_import.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>61ae6475c52259ac2d79c2e44ec799f77f3b515b</id>
    </parent>
  </parents>
  <author>
    <name>oneup</name>
    <email>hello@geeq.at</email>
  </author>
  <url>http://github.com/oneup/puituniverse/commit/6607dcd9bc4fc7eb1ff3223319489b0a53dac5fc</url>
  <id>6607dcd9bc4fc7eb1ff3223319489b0a53dac5fc</id>
  <committed-date>2009-06-26T06:42:16-07:00</committed-date>
  <authored-date>2009-06-26T06:42:16-07:00</authored-date>
  <message>cleaned up bootstrap script</message>
  <tree>2f8590eb4e7eda0b4fcc497aed6a7a378d1bea0a</tree>
  <committer>
    <name>oneup</name>
    <email>hello@geeq.at</email>
  </committer>
</commit>
