diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-18 21:56:18 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-18 21:56:18 +0000 |
commit | 08aa6d59a2bc35556125d373f90f5286440c6f84 (patch) | |
tree | 532694033c6b495c4355b9f35a1a8b60497ad103 /lib/rubygems/test_case.rb | |
parent | 9f9b47671052072a305275b99d7e132cf17fbc79 (diff) | |
download | ruby-08aa6d59a2bc35556125d373f90f5286440c6f84.tar.gz |
* 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
Diffstat (limited to 'lib/rubygems/test_case.rb')
-rw-r--r-- | lib/rubygems/test_case.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index a5a81d72a2..1e6d9feeeb 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -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 |