public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
commit  4364c361b599f99bc2345ce4eb2d145b07ed8a0f
tree    1fb87b58438790cda9308ee3cba05427b577b334
parent  e89093aeb4b1f544cb54caf54a0374075250cc59
rails / railties / lib / rails / gem_builder.rb
100644 21 lines (16 sloc) 0.485 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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