mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems master 66e5c39. Notable changes:
Implement gem.deps.rb (Gemfile) .lock support Fixed `gem uninstall` for a relative directory in GEM_HOME. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6727297dfe
commit
73fc703f7c
31 changed files with 598 additions and 26 deletions
|
@ -4,6 +4,16 @@
|
|||
|
||||
class Gem::BasicSpecification
|
||||
|
||||
##
|
||||
# Allows installation of extensions for git: gems.
|
||||
|
||||
attr_writer :base_dir # :nodoc:
|
||||
|
||||
##
|
||||
# Sets the directory where extensions for this gem will be installed.
|
||||
|
||||
attr_writer :extension_install_dir # :nodoc:
|
||||
|
||||
##
|
||||
# The path this gemspec was loaded from. This attribute is not persisted.
|
||||
|
||||
|
@ -68,8 +78,9 @@ class Gem::BasicSpecification
|
|||
# end
|
||||
|
||||
def extension_install_dir
|
||||
File.join base_dir, 'extensions', Gem::Platform.local.to_s,
|
||||
Gem.extension_api_version, full_name
|
||||
@extension_install_dir ||=
|
||||
File.join base_dir, 'extensions', Gem::Platform.local.to_s,
|
||||
Gem.extension_api_version, full_name
|
||||
end
|
||||
|
||||
def find_full_gem_path # :nodoc:
|
||||
|
@ -141,9 +152,10 @@ class Gem::BasicSpecification
|
|||
def loaded_from= path
|
||||
@loaded_from = path && path.to_s
|
||||
|
||||
@full_gem_path = nil
|
||||
@gems_dir = nil
|
||||
@base_dir = nil
|
||||
@extension_install_dir = nil
|
||||
@full_gem_path = nil
|
||||
@gems_dir = nil
|
||||
@base_dir = nil
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue