[前][次][番号順一覧][スレッド一覧]

ruby-changes:61129

From: David <ko1@a...>
Date: Fri, 8 May 2020 14:14:56 +0900 (JST)
Subject: [ruby-changes:61129] 15a4b7d769 (master): [rubygems/rubygems] Remove unnecessary code

https://git.ruby-lang.org/ruby.git/commit/?id=15a4b7d769

From 15a4b7d7693891831cd956def7108481aa86ddb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Tue, 5 May 2020 11:49:35 +0200
Subject: [rubygems/rubygems] Remove unnecessary code

This list of exceptions is no longer rescued since
1f03275ff3faa1c808d3a3b89ef5db62dc2eb2ba.

https://github.com/rubygems/rubygems/commit/6e71e7be67

diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb
index 75bd824..262836a 100644
--- a/lib/rubygems/indexer.rb
+++ b/lib/rubygems/indexer.rb
@@ -4,14 +4,6 @@ require 'rubygems/package' https://github.com/ruby/ruby/blob/trunk/lib/rubygems/indexer.rb#L4
 require 'time'
 require 'tmpdir'
 
-rescue_exceptions = [LoadError]
-begin
-  require 'bundler/errors'
-rescue LoadError # this rubygems + old ruby
-else # this rubygems + ruby trunk with bundler
-  rescue_exceptions << Bundler::GemfileNotFound
-end
-
 ##
 # Top level class for building the gem repository index.
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]