1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/gem_builder.rb

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