7600aef48b
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
22 lines
478 B
Ruby
22 lines
478 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
|