aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
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