mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0bea3f8391
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
21 lines
No EOL
485 B
Ruby
21 lines
No EOL
485 B
Ruby
require 'rubygems'
|
|
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 |