<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitmodules</filename>
    </added>
    <added>
      <filename>vendor/declarations</filename>
    </added>
    <added>
      <filename>vendor/extlib</filename>
    </added>
    <added>
      <filename>vendor/gem_console</filename>
    </added>
    <added>
      <filename>vendor/tokyocabinet-wrapper</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,17 @@
 #!/usr/bin/env ruby
 require 'rubygems'
-def git_require(name, url)
-  begin
-    require name
-  rescue LoadError =&gt; e
-    raise e, &quot;#{name} is missing. See #{url}&quot;
-  end  
+
+# These libs are not published as gems yet.
+# git submodule init &amp;&amp; git submodule update
+begin
+  ($:.unshift *(Dir[ File.join( File.dirname(__FILE__), '..', 'vendor', '**', 'lib' ) ].to_a.map {|f| File.expand_path(f) }) ).uniq!
+  require 'gem_console'
+rescue LoadError =&gt; e
+  puts &quot;You need submodule 'gem_console' to be updated. Update now? [y/n]&quot;
+  if gets.strip =~ /^y/
+    system(&quot;git submodule init &amp;&amp; git submodule update&quot;)
+    retry
+  end
+  raise
 end
-git_require 'gem_console', 'http://github.com/oleganza/gem_console/'
 gem_console('strokedb')</diff>
      <filename>bin/strokedb</filename>
    </modified>
    <modified>
      <diff>@@ -1,21 +1,23 @@
-require 'rubygems'
-$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
-
 require 'set'
 require 'fileutils'
 
-def git_require(name, url)
-  begin
-    require name
-  rescue LoadError =&gt; e
-    raise e, &quot;#{name} is missing. See #{url}&quot;
-  end  
+# These libs are not published as gems yet.
+# git submodule init &amp;&amp; git submodule update
+begin
+  ($:.unshift *(Dir[ File.join( File.dirname(__FILE__), '..', 'vendor', '**', 'lib' ) ].to_a.map {|f| File.expand_path(f) }) ).uniq!
+  libs = %w[extlib tokyocabinet-wrapper declarations]
+  libs.each do |lib|
+    require lib
+  end
+rescue LoadError =&gt; e
+  puts &quot;You need submodules #{libs.join(', ')} to be updated. Update now? [y/n]&quot;
+  if gets.strip =~ /^y/
+    system(&quot;git submodule init &amp;&amp; git submodule update&quot;)
+    retry
+  end
+  raise
 end
 
-git_require 'extlib',               'http://github.com/sam/extlib/'
-git_require 'tokyocabinet-wrapper', 'http://github.com/oleganza/tokyocabinet-wrapper/'
-git_require 'declarations',         'http://github.com/oleganza/declarations/'
-
 require 'strokedb/version'
 require 'strokedb/constants'
 require 'strokedb/util'</diff>
      <filename>lib/strokedb.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f38b63b4701b2d5f0e1ee9398c382003049d9219</id>
    </parent>
  </parents>
  <author>
    <name>Oleg Andreev</name>
    <email>oleganza@gmail.com</email>
  </author>
  <url>http://github.com/oleganza/strokedb-core/commit/3b9620bedd7d3d0c471936b872c5e2a499274012</url>
  <id>3b9620bedd7d3d0c471936b872c5e2a499274012</id>
  <committed-date>2008-09-21T04:03:52-07:00</committed-date>
  <authored-date>2008-09-21T04:03:52-07:00</authored-date>
  <message>4 libs: extlib, declarations, tokyocabinet-wrapper and gem_console are now git submodules in ./vendor</message>
  <tree>874b96746e53bc026be1a35df50695d4d43c08dc</tree>
  <committer>
    <name>Oleg Andreev</name>
    <email>oleganza@gmail.com</email>
  </committer>
</commit>
