<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>init.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,24 @@
 # Specifies gem version of Rails to use when vendor/rails is not present
 RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION
 
+# tar2rubyscript config                                                                                                                                           
+module Rails                                                                                                                                                      
+  class Configuration                                                                                                                                             
+    def database_configuration                                                                                                                                    
+      conf = YAML::load(ERB.new(IO.read(database_configuration_file)).result)                                                                                     
+      if defined?(TAR2RUBYSCRIPT)                                                                                                                                 
+        conf.each do |k, v|                                                                                                                                       
+          if v[&quot;adapter&quot;] =~ /^sqlite3/                                                                                                                           
+            v[&quot;database&quot;] = oldlocation(v[&quot;database&quot;]) if v.include?(&quot;database&quot;)                                                                                  
+            v[&quot;dbfile&quot;]   = oldlocation(v[&quot;dbfile&quot;])   if v.include?(&quot;dbfile&quot;)                                                                                    
+          end                                                                                                                                                     
+        end                                                                                                                                                       
+      end                                                                                                                                                         
+      conf                                                                                                                                                        
+    end                                                                                                                                                           
+  end                                                                                                                                                             
+end
+
 # Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')
 
@@ -57,4 +75,4 @@ end
 # Mime::Type.register &quot;text/richtext&quot;, :rtf
 # Mime::Type.register &quot;application/x-mobile&quot;, :mobile
 
-# Include your application configuration below
\ No newline at end of file
+# Include your application configuration below</diff>
      <filename>config/environment.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>eb79ca4ee818f32426e51d91d2d60d3b9b11ab4d</id>
    </parent>
  </parents>
  <author>
    <name>Ingo.Terpelle</name>
    <email>Ingo.Terpelle@9dc2ab4d-e83a-0410-94c7-bf54c6f31d53</email>
  </author>
  <url>http://github.com/TomK32/exabuch/commit/1c40b3bae87961e97116d985bdc2f5f7828cf66e</url>
  <id>1c40b3bae87961e97116d985bdc2f5f7828cf66e</id>
  <committed-date>2007-10-05T03:21:44-07:00</committed-date>
  <authored-date>2007-10-05T03:21:44-07:00</authored-date>
  <message>More preparations for standalone with rubyscript2exe

git-svn-id: http://exabuch.googlecode.com/svn/trunk@34 9dc2ab4d-e83a-0410-94c7-bf54c6f31d53</message>
  <tree>a7e3683c16a914e9ce595937469c2e4f35899170</tree>
  <committer>
    <name>Ingo.Terpelle</name>
    <email>Ingo.Terpelle@9dc2ab4d-e83a-0410-94c7-bf54c6f31d53</email>
  </committer>
</commit>
