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 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:
drbrain 2013-11-30 23:27:52 +00:00
parent 6727297dfe
commit 73fc703f7c
31 changed files with 598 additions and 26 deletions

View file

@ -52,6 +52,14 @@ class TestGemResolverGitSet < Gem::TestCase
assert_equal [@set.specs['a']], found
end
def test_root_dir
assert_equal Gem.dir, @set.root_dir
@set.root_dir = "#{@gemhome}2"
assert_equal "#{@gemhome}2", @set.root_dir
end
def test_prefetch
name, _, repository, = git_gem
@ -98,5 +106,25 @@ class TestGemResolverGitSet < Gem::TestCase
refute_empty @set.specs, 'the git source does not filter'
end
def test_prefetch_root_dir
name, _, repository, = git_gem
@set.add_git_gem name, repository, 'master', false
dependency = dep name
req = Gem::Resolver::ActivationRequest.new dependency, nil
@reqs.add req
@set.root_dir = "#{@gemhome}2"
@set.prefetch @reqs
refute_empty @set.specs
spec = @set.specs.values.first
assert_equal "#{@gemhome}2", spec.source.root_dir
end
end