aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2008-04-02 21:53:21 +0000
committerRick Olson <technoweenie@gmail.com>2008-04-02 21:53:21 +0000
commit8ff9e9365da7ed6dbc2bf9862a9b314e7c819514 (patch)
treed9d743b7b13f842efddece6cd765add7e7770fad /railties/lib
parent7d2316604a0bb04fe8c800e12876c58bdac651b4 (diff)
downloadrails-8ff9e9365da7ed6dbc2bf9862a9b314e7c819514.tar.gz
rails-8ff9e9365da7ed6dbc2bf9862a9b314e7c819514.tar.bz2
rails-8ff9e9365da7ed6dbc2bf9862a9b314e7c819514.zip
missed an added file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/gem_builder.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/railties/lib/rails/gem_builder.rb b/railties/lib/rails/gem_builder.rb
new file mode 100644
index 0000000000..629726a5c6
--- /dev/null
+++ b/railties/lib/rails/gem_builder.rb
@@ -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 \ No newline at end of file