<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -54,6 +54,7 @@ module Sprinkle
           cmd &lt;&lt; &quot; --source #{source}&quot; if source
           cmd &lt;&lt; &quot; --install-dir #{repository}&quot; if option?(:repository)
           cmd &lt;&lt; &quot; --no-rdoc --no-ri&quot; unless option?(:build_docs)
+          cmd &lt;&lt; &quot; -- #{build_flags}&quot; if option?(:build_flags)
           cmd
         end
         </diff>
      <filename>lib/sprinkle/installers/gem.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ describe Sprinkle::Installers::Gem do
   before do
     @gem = 'rails'
     @version = '2.0.2'
-    @options = { :source =&gt; 'http://gems.github.com/', :repository =&gt; '/tmp/gems' }
+    @options = { :source =&gt; 'http://gems.github.com/', :repository =&gt; '/tmp/gems', :build_flags =&gt; '--build_flag=foo' }
   end
 
   def create_gem(gem, version = nil, options = {}, &amp;block)
@@ -34,6 +34,10 @@ describe Sprinkle::Installers::Gem do
     it 'should optionally store the repository location where gems are to be installed' do
       @installer.repository.should == @options[:repository]
     end
+    
+    it 'should optionally store the build flags' do
+      @installer.build_flags.should == @options[:build_flags]
+    end
 
   end
 
@@ -70,6 +74,18 @@ describe Sprinkle::Installers::Gem do
 
     end
     
+    describe 'with build flags' do
+      
+      before do
+        @installer = create_gem @gem, nil, :build_flags =&gt; '--option=foo'
+      end
+      
+      it 'should install with defined build flags' do
+        @installer.send(:install_commands).should == &quot;gem install #{@gem} --no-rdoc --no-ri -- --option=foo&quot;
+      end
+      
+    end
+    
   end
 
 end</diff>
      <filename>spec/sprinkle/installers/gem_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a3c0a6ac778c764006a9222a7ad556f77a39fec6</id>
    </parent>
  </parents>
  <author>
    <name>Julian Russell</name>
    <email>jr.plusplus@gmail.com</email>
  </author>
  <url>http://github.com/crafterm/sprinkle/commit/52b95477308eff0f8d4f5e9ae95e0f0f0cf5eb40</url>
  <id>52b95477308eff0f8d4f5e9ae95e0f0f0cf5eb40</id>
  <committed-date>2008-12-20T19:02:22-08:00</committed-date>
  <authored-date>2008-12-18T18:25:50-08:00</authored-date>
  <message>Added build flags option to gem installer</message>
  <tree>d8c9fa48d6bfad986f053c9c6b403468e996f595</tree>
  <committer>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </committer>
</commit>
