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

22 lines
478 B
Ruby
Raw Normal View History

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