mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
missed an added file
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
7d2316604a
commit
8ff9e9365d
2 changed files with 21 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
*SVN*
|
||||
|
||||
* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. [ddollar]
|
||||
* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. #11513 [ddollar]
|
||||
|
||||
rake gems:unpack # unpacks all gems
|
||||
rake gems:unpack GEM=mygem # unpacks only the gem 'mygem'
|
||||
|
|
20
railties/lib/rails/gem_builder.rb
Normal file
20
railties/lib/rails/gem_builder.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
Loading…
Reference in a new issue