diff options
author | Daniel Niknam <mhmd.niknam@gmail.com> | 2021-08-22 20:06:02 +1000 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 589377fbdce9d281041535e3bf63f008689bb776 (patch) | |
tree | 7eb9671d26a73517834f2e42ab206462229c5c57 /test/rubygems/utilities.rb | |
parent | a508693f06aefe30d2d83c9617541722ba6c8d66 (diff) | |
download | ruby-589377fbdce9d281041535e3bf63f008689bb776.tar.gz |
[rubygems/rubygems] Refactor `Gem::RemoteFetcher::FetchError.build` back to its initialize method
https://github.com/rubygems/rubygems/commit/21dcdd2dc5
Diffstat (limited to 'test/rubygems/utilities.rb')
-rw-r--r-- | test/rubygems/utilities.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/utilities.rb b/test/rubygems/utilities.rb index 36513dcd31..20416fe70b 100644 --- a/test/rubygems/utilities.rb +++ b/test/rubygems/utilities.rb @@ -51,7 +51,7 @@ class Gem::FakeFetcher raise ArgumentError, 'need full URI' unless path.start_with?("https://", "http://") unless @data.key? path - raise Gem::RemoteFetcher::FetchError.build("no data for #{path}", path) + raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path) end if @data[path].kind_of?(Array) && @data[path].first.kind_of?(Array) @@ -124,7 +124,7 @@ class Gem::FakeFetcher raise ArgumentError, 'need full URI' unless path =~ %r{^http://} unless @data.key? path - raise Gem::RemoteFetcher::FetchError.build("no data for #{path}", path) + raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path) end data = @data[path] |