<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+0.9.8 - 10/20/2008:
+* Misc. fixes to Gem activation.
 0.9.7 - 10/13/2008:
 * MiniGems is now compatible with dynamically created code from RubyInline.
 0.9.6 - 10/13/2008:</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ GEM_EMAIL  = &quot;info@atelierfabien.be&quot;
 
 GEM_NAME    = &quot;minigems&quot;
 PKG_BUILD   = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
-GEM_VERSION = (Gem::MiniGems::VERSION || &quot;0.9.7&quot;) + PKG_BUILD
+GEM_VERSION = (Gem::MiniGems::VERSION || &quot;0.9.8&quot;) + PKG_BUILD
 
 RELEASE_NAME    = &quot;REL #{GEM_VERSION}&quot;
 </diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Gem
 unless const_defined?(:MiniGems)
   module MiniGems
     
-    VERSION = &quot;0.9.7&quot;
+    VERSION = &quot;0.9.8&quot;
     
     # The next line needs to be kept exactly as shown; it's being replaced
     # during minigems installation.
@@ -64,8 +64,7 @@ unless $LOADED_FEATURES.include?(&quot;rubygems.rb&quot;)
         elsif path == 'Win32API' &amp;&amp; !Gem.win_platform?
           raise load_error
         elsif load_error.message =~ /#{Regexp.escape path}\z/
-          if !path.include?('/') &amp;&amp; (match = Gem.find_name(path))
-            Gem.activate_gem_from_path(match.first)
+          if !path.include?('/') &amp;&amp; Gem.activate(path)
             return gem_original_require(path)
           elsif $MINIGEMS_SKIPPABLE.include?(path)
             raise load_error
@@ -123,7 +122,7 @@ unless $LOADED_FEATURES.include?(&quot;rubygems.rb&quot;)
       if match = find_name(gem, *version_requirements)
         activate_gem_from_path(match.first)
       elsif gem.is_a?(String) &amp;&amp; 
-        match = find_name(MiniGems.camel_case(gem), *version_requirements)
+        (match = find_name(MiniGems.camel_case(gem), *version_requirements))
         activate_gem_from_path(match.first)
       else
         unless gem.respond_to?(:name) &amp;&amp; gem.respond_to?(:version_requirements)
@@ -283,16 +282,18 @@ unless $LOADED_FEATURES.include?(&quot;rubygems.rb&quot;)
     # Find the best (highest) matching gem version.
     def self.find_name(gem, *version_requirements)
       version_requirements = Gem::Requirement.default if version_requirements.empty?
-      unless gem.respond_to?(:name) &amp;&amp; gem.respond_to?(:version_requirements)
-        gem = Gem::Dependency.new(gem, version_requirements)
+      if gem.respond_to?(:name) &amp;&amp; gem.respond_to?(:version_requirements)
+        dependency = gem
+      else
+        dependency = Gem::Dependency.new(gem.to_s, version_requirements)
       end
-    
-      gemspec_sets = self.path.map { |path| [path, Dir[&quot;#{path}/specifications/#{gem.name}-*.gemspec&quot;]] }
+      
+      gemspec_sets = self.path.map { |path| [path, Dir[&quot;#{path}/specifications/#{dependency.name}-*.gemspec&quot;]] }
       versions = gemspec_sets.inject([]) do |versions, (root_path, gems)|
         unless gems.empty?
           gems.each do |gemspec_path|
             if (version_no = gemspec_path[/-([\d\.]+)\.gemspec$/, 1]) &amp;&amp;
-              gem.version_requirements.satisfied_by?(version = Gem::Version.new(version_no))
+              dependency.version_requirements.satisfied_by?(version = Gem::Version.new(version_no))
               versions &lt;&lt; [gemspec_path, version]
             end
           end</diff>
      <filename>lib/minigems.rb</filename>
    </modified>
    <modified>
      <diff>@@ -94,12 +94,12 @@ describe Gem::MiniGems do
       AwesomeGem::VERSION.should == &quot;0.0.2&quot;
     end
     
-    # it &quot;for gems with a CamelCased package name&quot; do
-    #   require(&quot;camel_cased_gem&quot;).should be_true
-    #   lambda { CamelCasedGem::Awesome }.should_not raise_error(NameError)
-    #   CamelCasedGem::VERSION.should == &quot;0.0.1&quot;
-    # end
-    # 
+    it &quot;for gems with a CamelCased package name&quot; do
+      require(&quot;camel_cased_gem&quot;).should be_true
+      lambda { CamelCasedGem::Awesome }.should_not raise_error(NameError)
+      CamelCasedGem::VERSION.should == &quot;0.0.1&quot;
+    end
+    
     # it &quot;for files in a gems' load path&quot; do
     #   require(&quot;super_sonic&quot;).should be_true
     #   lambda { AwesomeGem::SuperSonic }.should_not raise_error(NameError)</diff>
      <filename>spec/minigems_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5a30de87f43dd2f96e8911c1a2f5ccc42d1dabb0</id>
    </parent>
  </parents>
  <author>
    <name>Fabien Franzen</name>
    <email>info@atelierfabien.be</email>
  </author>
  <url>http://github.com/fabien/minigems/commit/2d81a25e2a42ee6519c9c4f4c6eb6a1683245c42</url>
  <id>2d81a25e2a42ee6519c9c4f4c6eb6a1683245c42</id>
  <committed-date>2008-10-20T14:58:31-07:00</committed-date>
  <authored-date>2008-10-20T14:58:31-07:00</authored-date>
  <message>Misc. fixes to Gem activation</message>
  <tree>36849c6d89a76412936dab1d3092bbd11ad10a9d</tree>
  <committer>
    <name>Fabien Franzen</name>
    <email>info@atelierfabien.be</email>
  </committer>
</commit>
