diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 00:51:04 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 00:51:04 +0000 |
commit | 8fadbe5f3e5e8b2d9f635a274b4121811313de84 (patch) | |
tree | 3dc303b2b09eb4c54d19e3c68172856d13d60e2b /lib/rubygems/source/git.rb | |
parent | c2dcb947aaf60421ca4035298059a029a0a24c26 (diff) |
* 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
Diffstat (limited to 'lib/rubygems/source/git.rb')
-rw-r--r-- | lib/rubygems/source/git.rb | 8 |
1 files changed, 2 insertions, 6 deletions
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 |