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 42543b6. Changes:

Fix `gem update` for gems with multiple platforms.

* test/rubygems:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-10-18 22:14:56 +00:00
parent aa7a74e4ff
commit 18b7112ec1
3 changed files with 25 additions and 1 deletions

View file

@ -1,3 +1,11 @@
Sat Oct 19 07:14:40 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Update to RubyGems master 42543b6. Changes:
Fix `gem update` for gems with multiple platforms.
* test/rubygems: ditto.
Sat Oct 19 06:55:52 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Update to RubyGems master 0a3814b. Changes:

View file

@ -112,7 +112,9 @@ command to remove old versions.
spec_tuples, errors = fetcher.search_for_dependency dependency
raise errors.first unless errors.empty?
error = errors.find { |errors| errors.respond_to? :exception }
raise error if error
spec_tuples
end

View file

@ -390,6 +390,20 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
end
end
def test_fetch_remote_gems_mismatch
platform = Gem::Platform.new 'x86-freebsd9'
a2_p = quick_spec 'a', 2 do |s| s.platform = platform end
util_setup_spec_fetcher @a2, a2_p
expected = [
[Gem::NameTuple.new('a', v(2), Gem::Platform::RUBY),
Gem::Source.new(@gem_repo)],
]
assert_equal expected, @cmd.fetch_remote_gems(@a1)
end
def test_fetch_remote_gems_prerelease
@cmd.options[:prerelease] = true