1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
David Rodríguez 1663dd5f73 [rubygems/rubygems] Simplify rescue of bundler errors
As far as I understand, this block should only be run when
`bundler/setup` fails. The only other case where these errors could be
run is when bundler itself is required.

If bundler itself fails to be required or activated (like in old rubies
where it was not a default gem, for example), the raw error is much more
helpful than this message.

So we can move the rescue after bundler is succesfully required, and
that simplifies the list of exceptions that we need to track to just
`Bundler::Error`.

3663c11e93
2021-08-31 19:06:14 +09:00
..
benchmark [ruby/benchmark] gemspec: Explicitly have 0 executables 2021-04-22 11:51:37 +09:00
bundler [rubygems/rubygems] Take advantage of target being a Pathname 2021-08-31 19:06:14 +09:00
cgi [ruby/cgi] gemspec: Explicitly empty executables list 2021-04-22 11:51:37 +09:00
csv [ruby/csv] Bump version 2020-12-27 15:26:24 +09:00
delegate Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
did_you_mean Use String#include? instead of end_with? to avoid message duplication 2021-06-29 15:49:51 +09:00
drb Added ruby2_keywords for Ruby 2.5 and 2.6 2021-01-18 20:41:33 +09:00
erb [ruby/erb] Version 2.2.3 2021-03-26 12:37:37 +09:00
error_highlight ast.c: Rename "save_script_lines" to "keep_script_lines" 2021-08-20 16:18:36 +09:00
forwardable [ruby/forwardable] gemspec: Explicitly empty the executables list 2021-04-21 20:41:52 +09:00
getoptlong [ruby/getoptlong] gemspec: Drop executables directives 2021-07-28 13:32:32 +09:00
irb [ruby/irb] Version 1.3.8.pre.5 2021-08-31 15:23:54 +09:00
logger Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
net [ruby/net-http] Enforce write timeout when body_stream is used 2021-07-29 15:53:54 +09:00
observer Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
optparse [ruby/optparse] Moved rdoc files to doc/optparse 2021-04-11 09:03:36 +09:00
ostruct Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
pstore Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
racc [ruby/racc] Removed pre-setup from gemspec 2021-07-19 11:59:42 +09:00
rdoc Update parser files of RDoc generated by the latest Racc 2021-08-10 02:36:00 +09:00
reline [ruby/reline] Version 0.2.8.pre.5 2021-08-31 15:22:05 +09:00
rinda Added dependencies for rinda 2020-12-04 20:21:41 +09:00
rubygems [rubygems/rubygems] Use Gem.use_gemdeps only from binstubs 2021-08-31 19:06:14 +09:00
set [ruby/set] gemspec: This gem exposes 0 executables 2021-07-29 14:18:33 +09:00
singleton Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
timeout Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
unicode_normalize Update lib/unicode_normalize/tables.rb to Unicode version 13.0.0 2021-07-08 14:45:03 +09:00
uri Update to latest uri 2021-07-28 12:26:31 +02:00
weakref Added dependencies for weakref 2020-12-01 19:48:24 +09:00
yaml Workaround with fbb4e3f96c in yaml/store.rb 2021-05-17 12:57:41 +09:00
.document Remove unnecessary files from .document 2020-12-20 16:00:13 +09:00
abbrev.gemspec [ruby/abbrev] gemspec: Explicitly empty executables list 2021-04-21 20:39:04 +09:00
abbrev.rb
base64.gemspec [ruby/base64] gemspec: Use an explicit file list 2021-04-21 20:41:26 +09:00
base64.rb
benchmark.rb [ruby/benchmark] Add comment about terminating newline in captions; fix test method name. 2021-04-22 11:51:37 +09:00
bundler.rb [rubygems/rubygems] Remove LoadError message in regards to requiring a relative file 2021-07-27 09:25:55 +09:00
cgi.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
csv.rb [ruby/csv] Fix typo [ci skip] 2020-12-27 15:27:46 +09:00
debug.gemspec Promote debug.rb to default gems. 2020-10-30 21:45:23 +09:00
debug.rb [Feature #16513] TracePoint#inspect returns "... file:line" (#3391) 2020-08-06 11:56:24 +09:00
delegate.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
did_you_mean.rb
drb.rb
English.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
English.rb
erb.gemspec [ruby/erb] Clarify supported ruby versions in gemspec 2021-03-26 12:35:52 +09:00
erb.rb [ruby/erb] Document that <% # doesn't work 2021-05-05 23:13:27 -07:00
error_highlight.rb Rename error_squiggle to error_highlight 2021-06-29 23:45:49 +09:00
fileutils.gemspec [ruby/fileutils] Drop support for dead old versions 2021-01-17 12:20:55 +09:00
fileutils.rb [ruby/fileutils] Removed code for dead versions 2021-01-17 12:20:57 +09:00
find.gemspec Promote find to default gems 2020-08-20 21:00:53 +09:00
find.rb [ruby/find] Add Errno::EINVAL to list of ignored errors 2021-07-27 21:20:31 +09:00
forwardable.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
getoptlong.rb [ruby/getoptlong] RDoc: escape to avoid links to the word Set 2021-07-28 13:32:33 +09:00
ipaddr.gemspec [ruby/ipaddr] fixup 90b46678a5b09ed32612b0629b7c51c6d39a0444 2020-12-03 17:48:32 +09:00
ipaddr.rb
irb.rb Add --autocomplete / --noautocomplete options 2021-08-30 02:45:13 +09:00
logger.rb [ruby/logger] Replace "iff" with "if and only if" 2021-04-20 21:19:41 +09:00
mkmf.rb mkmf.rb: try linking at try_var 2021-07-08 18:18:35 +09:00
mutex_m.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
mutex_m.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
observer.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
open-uri.gemspec Added dependencies for open-uri 2020-12-01 19:48:24 +09:00
open-uri.rb Guard for the ftp protocol feature of OpenURI 2021-05-27 14:42:11 +09:00
open3.gemspec Manually picked 724bdb8e1d 2020-09-14 14:07:37 +09:00
open3.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
optionparser.rb
optparse.rb [ruby/optparse] More on tutorial (https://github.com/ruby/optparse/pull/23) 2021-07-28 20:13:39 +09:00
ostruct.rb [ruby/ostruct] v0.4.0 2021-06-15 12:04:05 +09:00
pp.gemspec [ruby/pp] Bump version to 0.2.0 2021-04-21 20:45:23 +09:00
pp.rb [ruby/pp] Support < Ruby 3.0 2021-04-21 20:44:55 +09:00
prettyprint.gemspec Promote prettyprint to default gems 2020-10-08 16:40:46 +09:00
prettyprint.rb
pstore.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
racc.rb
rdoc.rb
readline.gemspec Update the latest version of readline.gemspec 2021-07-29 16:20:10 +09:00
readline.rb
reline.rb [ruby/reline] Fix Reline::Unicode.take_range as it was not fully functional 2021-08-31 15:19:32 +09:00
resolv-replace.gemspec [ruby/resolv-replace] gemspec: Drop executables directive 2021-07-28 13:32:33 +09:00
resolv-replace.rb
resolv.gemspec [ruby/resolv] Bump version to 0.2.1 2021-07-28 13:32:33 +09:00
resolv.rb [ruby/resolv] Fix confusion of received response message 2021-05-11 12:37:34 +09:00
ruby2_keywords.gemspec Adjust the release version of ruby2_keywords 2021-07-16 13:50:15 +09:00
rubygems.rb [rubygems/rubygems] Simplify rescue of bundler errors 2021-08-31 19:06:14 +09:00
securerandom.gemspec Promote securerandom to default gems 2020-09-11 21:15:25 +09:00
securerandom.rb [ruby/securerandom] [DOC] fix a code mark up [ci skip] 2021-08-24 19:29:54 +09:00
set.rb [ruby/set] Improve What's Here links 2021-07-29 14:18:52 +09:00
shellwords.gemspec Promote shellwords to default gems 2020-09-10 18:56:17 +09:00
shellwords.rb
singleton.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
tempfile.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
tempfile.rb [ruby/tempfile] Improve the documentation for Tempfile.create and recommend Tempfile.open instead 2020-10-05 19:17:25 +02:00
time.gemspec Added dependencies for time 2020-12-01 19:48:24 +09:00
time.rb Revert "disable shareable_constant_value for CI" 2021-04-26 22:46:51 +09:00
timeout.rb [ruby/timeout] Only run timeout_after hook on fiber scheduler if scheduler exists 2021-05-06 16:51:10 +09:00
tmpdir.gemspec [ruby/tmpdir] Bump version to 0.1.2 2021-04-05 21:08:58 +09:00
tmpdir.rb [ruby/tmpdir] Make usable chars more strict 2021-04-05 21:08:57 +09:00
tsort.gemspec Promote tsort to default gems 2020-09-09 21:53:09 +09:00
tsort.rb
un.gemspec [ruby/un] gemspec: Explicitly list 0 executables 2021-08-24 18:02:44 +09:00
un.rb [ruby/un] Use STDIN if no arguments 2021-08-24 18:02:44 +09:00
uri.rb Fix test failure for parallel testing 2021-07-27 17:34:13 +09:00
weakref.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
yaml.rb Remove unnecessary word from comment 2020-07-28 12:14:45 +09:00