<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,3 +13,4 @@ You can not specify a version of a gem, and gemset will pick the most appropriat
 version so that all other dependencies are satisfied. 
 
 The resolution is being done by wycats Bundler package. 
+</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 #!/usr/bin/env ruby
+# Usage: ./gemset /path/to/gem/destination gemA:1.0 gemB gemC:0.5 
 
 require 'gemset'
 
@@ -9,4 +10,6 @@ ARGV.each do |arg|
   name, version = arg.split(/:/)
   gem_set[name] = version
 end
+sources = eval(`ruby -rubygems -e &quot;puts Gem.sources.inspect&quot;`)
+require 'rubygems'; require 'ruby-debug'; debugger
 Gemset.install base_dir, gem_set
\ No newline at end of file</diff>
      <filename>gemset</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,6 @@ require 'set'
 require 'rubygems/dependency_installer'
 require 'rubygems/source_info_cache'
 require 'bundler/resolver'
-
 module Bundler
   attr_writer :logger
   def self.logger
@@ -24,8 +23,9 @@ end
 
 class Gemset
   # package_versions is a hash of &quot;name&quot; =&gt; &quot;version&quot;
-  def self.install(base_dir, package_versions = {})  
+  def self.install(base_dir, sources = [], package_versions = {})  
     @base_dir = base_dir
+    Gem.sources = sources
     
     # Create Gem::Dependencies from our hash with our version requirements
     gem_set = Set.new        
@@ -41,9 +41,8 @@ class Gemset
     # (not sure yet if this recurses through all of the dependencies, or just the first level? TODO)
     # TODO - this method of retrieving the SourceIndexes is going to be deprecated and is not the most efficient,
     #        but the resolver requires a SourceIndex. SpecFetcher is the new way of doing it. Got to figure out 
-    #        a resolution to this.       
-    puts &quot;starting resolution&quot;
-    sic = Gem::SourceInfoCache.cache
+    #        a resolution to this. 
+    sic = Gem::SourceInfoCache.cache    
     indices = sic.cache_data.values.collect { |c| c.source_index }
     bundle  = Bundler::Resolver.resolve gem_set, indices
     puts &quot;done doing resolution&quot;</diff>
      <filename>gemset.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a77c4871157912b5960ebc5be1b9a25ecbff9f5b</id>
    </parent>
  </parents>
  <author>
    <name>ian</name>
    <email>iwarshak@stripey.net</email>
  </author>
  <url>http://github.com/iwarshak/gemset/commit/6d7acd749a82d9eb88ff285eb1ae8fd14695a389</url>
  <id>6d7acd749a82d9eb88ff285eb1ae8fd14695a389</id>
  <committed-date>2009-11-12T15:55:15-08:00</committed-date>
  <authored-date>2009-11-12T15:55:15-08:00</authored-date>
  <message>explicitly pass in the gem sources</message>
  <tree>32954f42f59ad0aefa8a5310027f244bff709124</tree>
  <committer>
    <name>ian</name>
    <email>iwarshak@stripey.net</email>
  </committer>
</commit>
