diff options
Diffstat (limited to 'lib/rubygems/resolver/git_specification.rb')
-rw-r--r-- | lib/rubygems/resolver/git_specification.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/rubygems/resolver/git_specification.rb b/lib/rubygems/resolver/git_specification.rb index ac8d4e9aeb..113e7ea9de 100644 --- a/lib/rubygems/resolver/git_specification.rb +++ b/lib/rubygems/resolver/git_specification.rb @@ -12,5 +12,24 @@ class Gem::Resolver::GitSpecification < Gem::Resolver::SpecSpecification @source == other.source end + ## + # Installing a git gem only involves building the extensions and generating + # the executables. + + def install options + require 'rubygems/installer' + + installer = Gem::Installer.new '', options + installer.spec = spec + + yield installer if block_given? + + installer.run_pre_install_hooks + installer.build_extensions + installer.run_post_build_hooks + installer.generate_bin + installer.run_post_install_hooks + end + end |