mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] Refactor Gem::RemoteFetcher::FetchError.build
back to its initialize method
21dcdd2dc5
This commit is contained in:
parent
a508693f06
commit
589377fbdc
Notes:
git
2021-08-31 19:06:56 +09:00
8 changed files with 28 additions and 37 deletions
|
@ -182,7 +182,7 @@ class TestGemCommandsSourcesCommand < Gem::TestCase
|
|||
|
||||
uri = "http://beta-gems.example.com/specs.#{@marshal_version}.gz"
|
||||
@fetcher.data[uri] = proc do
|
||||
raise Gem::RemoteFetcher::FetchError.build('it died', uri)
|
||||
raise Gem::RemoteFetcher::FetchError.new('it died', uri)
|
||||
end
|
||||
|
||||
@cmd.handle_options %w[--add http://beta-gems.example.com]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue