Permalink
Browse files

missed an added file

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7d23166 commit 8ff9e9365da7ed6dbc2bf9862a9b314e7c819514 @technoweenie technoweenie committed Apr 2, 2008
Showing with 21 additions and 1 deletion.
  1. +1 −1 railties/CHANGELOG
  2. +20 −0 railties/lib/rails/gem_builder.rb
View
@@ -1,6 +1,6 @@
*SVN*
-* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. [ddollar]
+* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. #11513 [ddollar]
rake gems:unpack # unpacks all gems
rake gems:unpack GEM=mygem # unpacks only the gem 'mygem'
@@ -0,0 +1,20 @@
+require 'rubygems/installer'
+
+module Rails
+
+ # this class hijacks the functionality of Gem::Installer by overloading its
+ # initializer to only provide the information needed by
+ # Gem::Installer#build_extensions (which happens to be what we have)
+ class GemBuilder < Gem::Installer
+
+ def initialize(spec, gem_dir)
+ @spec = spec
+ @gem_dir = gem_dir
+ end
+
+ # silence the underlying builder
+ def say(message)
+ end
+
+ end
+end

0 comments on commit 8ff9e93

Please sign in to comment.