mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* lib/rubygems: Update to RubyGems master 0a3814b. Changes:
Fixed extension directory in Gem::Specification#require_paths. Allow installation of gems when $HOME is nonexistent or unwritable. Use proper API in InstallCommand. Improve support for path option in gem dependency files. Remove warnings. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9f9b476710
commit
08aa6d59a2
17 changed files with 165 additions and 116 deletions
|
@ -1098,11 +1098,15 @@ Also, a list:
|
|||
##
|
||||
# A vendor_gem is used with a gem dependencies file. The gem created here
|
||||
# has no files, just a gem specification for the given +name+ and +version+.
|
||||
#
|
||||
# Yields the +specification+ to the block, if given
|
||||
|
||||
def vendor_gem name = 'a', version = 1
|
||||
directory = File.join 'vendor', name
|
||||
|
||||
vendor_spec = Gem::Specification.new name, version
|
||||
vendor_spec = Gem::Specification.new name, version do |specification|
|
||||
yield specification if block_given?
|
||||
end
|
||||
|
||||
FileUtils.mkdir_p directory
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue