1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rubygems: Update to RubyGems master 14749ce. This fixes bugs

handling of gem dependencies lockfiles (Gemfile.lock).

* test/rubygems:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-12-08 01:22:39 +00:00
parent 866b438c21
commit 7ed9b794b4
27 changed files with 1083 additions and 108 deletions

View file

@ -95,6 +95,7 @@ class TestGemRequestSet < Gem::TestCase
fetcher.gem 'a', 1
fetcher.gem 'a', 2
fetcher.gem 'b', 1, 'a' => '>= 0'
fetcher.clear
end
rs = Gem::RequestSet.new
@ -107,7 +108,7 @@ GEM
specs:
a (1)
b (1)
a
a (~> 1.0)
PLATFORMS
#{Gem::Platform::RUBY}
@ -127,6 +128,9 @@ DEPENDENCIES
assert_includes installed, 'b-1'
assert_includes installed, 'a-1'
assert_path_exists File.join @gemhome, 'specifications', 'a-1.gemspec'
assert_path_exists File.join @gemhome, 'specifications', 'b-1.gemspec'
end
def test_load_gemdeps
@ -301,7 +305,9 @@ DEPENDENCIES
rs.resolve
installed = rs.install_into @tempdir
installed = rs.install_into @tempdir do
assert_equal @tempdir, ENV['GEM_HOME']
end
assert_path_exists File.join @tempdir, 'specifications', 'a-1.gemspec'
assert_path_exists File.join @tempdir, 'specifications', 'b-1.gemspec'