From 8fadbe5f3e5e8b2d9f635a274b4121811313de84 Mon Sep 17 00:00:00 2001 From: drbrain Date: Fri, 13 Dec 2013 00:51:04 +0000 Subject: * lib/rubygems: Update to RubyGems master ddac51f. Changes: * Allow override for the shared gem installation directory for rubygems packagers. * Lock gem cache files for read and write to improve thread safety. * Use io/console when available. * Minor cleanup. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/source/git.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/rubygems/source/git.rb') diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index 522acea217..28178a5f4f 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -9,9 +9,7 @@ require 'rubygems/util' # source = # Gem::Source::Git.new 'rake', 'git@example:rake.git', 'rake-10.1.0', false # -# spec = source.load_spec 'rake' -# -# source.checkout +# source.specs class Gem::Source::Git < Gem::Source @@ -187,15 +185,13 @@ class Gem::Source::Git < Gem::Source Dir.chdir directory do spec = Gem::Specification.load file if spec then - loaded_from = File.expand_path file - spec.loaded_from = loaded_from spec.base_dir = base_dir spec.extension_dir = File.join base_dir, 'extensions', Gem::Platform.local.to_s, Gem.extension_api_version, "#{name}-#{dir_shortref}" - spec.full_gem_path = File.dirname loaded_from if spec + spec.full_gem_path = File.dirname spec.loaded_from if spec end spec end -- cgit v1.2.3