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 50a8210. Important changes

in this commit:

  RubyGems now automatically checks for gem.deps.rb or Gemfile when
  running ruby executables.  This behavior is similar to `bundle exec
  rake`.  This change may be reverted before Ruby 2.1.0 if too many bugs
  are found.

* test/rubygems:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-11-21 23:27:30 +00:00
parent b1529a30e0
commit 5307d803f5
30 changed files with 714 additions and 196 deletions

View file

@ -66,6 +66,24 @@ class TestGemResolverGitSet < Gem::TestCase
refute_empty @set.specs
end
def test_prefetch_cache
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.prefetch @reqs
spec = @set.specs[name]
@set.prefetch @reqs
assert_same spec, @set.specs[name]
end
def test_prefetch_filter
name, _, repository, = git_gem
@ -77,7 +95,7 @@ class TestGemResolverGitSet < Gem::TestCase
@set.prefetch @reqs
assert_empty @set.specs
refute_empty @set.specs, 'the git source does not filter'
end
end