<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>gem_tools.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
+== 0.0.9 2009-02-10
+* Fix the a bug in the loaded detection logic
+
 == 0.0.8 2008-11-14
 * Fix the check for Kernel::gem
 * Make sure to use the right gem command when checking gems</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -90,7 +90,7 @@ module GemTools
         # or the spec version doesn't match the required version
         # or require_gem returns false
         #    (return false also happens if the gem has already been loaded)
-        if OPTIONS.has_key?(:force) || !spec || (! loaded &amp;&amp; version != gem['version'])
+        if OPTIONS.has_key?(:force) || !spec || (! loaded || version != gem['version'])
           gem_config = gem['config'] ? &quot; -- #{gem['config']}&quot; : ''
           source = gem['source'] || config['source'] || nil
           source = &quot;--source #{source}&quot; if source
@@ -108,7 +108,7 @@ module GemTools
     spec = YAML.load(`#{command} spec #{name} 2&gt; /dev/null`)
     loaded = false
     begin
-      loaded = require_gem name, version
+      loaded = defined?(gem) ? gem(name, version) : require_gem(name, version)
       version = spec.version.version
     rescue Exception
     end</diff>
      <filename>lib/gem_tools.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module GemTools
   module VERSION #:nodoc:
     MAJOR = 0
     MINOR = 0
-    TINY  = 8
+    TINY  = 9
 
     STRING = [MAJOR, MINOR, TINY].join('.')
   end</diff>
      <filename>lib/gem_tools/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7e6d5556568566e851fb8e288204fdef751e01b2</id>
    </parent>
  </parents>
  <author>
    <name>Michael Moen</name>
    <email>michael@underpantsgnome.com</email>
  </author>
  <url>http://github.com/UnderpantsGnome/gem_tools-gem/commit/6c16fdd48cd3a70983480fea6d5d174d78c71ae8</url>
  <id>6c16fdd48cd3a70983480fea6d5d174d78c71ae8</id>
  <committed-date>2009-02-10T15:19:08-08:00</committed-date>
  <authored-date>2009-02-10T15:19:08-08:00</authored-date>
  <message>Fix the a bug in the loaded detection logic</message>
  <tree>d48d1b21301bda64749a6313778376832ab9c4be</tree>
  <committer>
    <name>Michael Moen</name>
    <email>michael@underpantsgnome.com</email>
  </committer>
</commit>
