ruby/lib/rubygems
Benoit Daloze 331fe6a88f [rubygems/rubygems] Ignore internal frames in RubyGems' Kernel#warn
* See https://github.com/oracle/truffleruby/issues/2046
* `<internal:` is a common prefix also used by core Ruby files in CRuby.
* test_no_kernel_require_in_*warn_with_uplevel already test this.
* Unfortunately just skipping `<internal:` in the Ruby implementation
  is not enough, because RubyGems' #warn would not skip the
  `<internal:` require (TruffleRuby defines #require in Ruby),
  and the Ruby implementation's #warn would not skip
  RubyGems's #require. The #caller_locations(0) look like this:

  warnee.rb:1:in `<top (required)>' # where #warn is called
  <internal:core> core/kernel.rb:234:in `gem_original_require' # not skipped by RubyGems' warn, skipped by the Ruby impl
  rubygems/core_ext/kernel_require.rb:54:in `require' # not skipped by the Ruby impl's warn, what would be shown without this fix
  warn.rb:1:in `<main>' # what would be correct

  warn.rb is
  require "warnee"
  warnee.rb is
  puts caller_locations(0), nil
  warn "oops", uplevel: 1

7c838f7419
2020-07-31 21:07:19 +09:00
..
commands Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
core_ext [rubygems/rubygems] Ignore internal frames in RubyGems' Kernel#warn 2020-07-31 21:07:19 +09:00
ext Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
package [rubygems/rubygems] Simplify digest name selection and use SHA256 2020-07-31 21:07:19 +09:00
request Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
request_set Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
resolver Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
security Stop using deprecated OpenSSL::Digest constants 2020-07-31 21:07:19 +09:00
source Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
ssl_certs * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
util Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
available_set.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
basic_specification.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
bundler_version_finder.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
command.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
command_manager.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
compatibility.rb [rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap. 2019-08-17 07:35:48 +09:00
config_file.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
defaults.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
dependency.rb [rubygems/rubygems] remove explicit require(s) for auto-loaded constant(s) 2020-07-31 21:07:19 +09:00
dependency_installer.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
dependency_list.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
deprecate.rb [rubygems/rubygems] Revert deprecation of deprecate method for now. 2020-05-08 07:38:50 +09:00
doctor.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
errors.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
exceptions.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
ext.rb Fix ruby setup.rb warnings 2020-06-05 07:32:42 +09:00
gem_runner.rb [rubygems/rubygems] remove explicit require(s) for auto-loaded constant(s) 2020-07-31 21:07:19 +09:00
gemcutter_utilities.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
indexer.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
install_default_message.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
install_message.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
install_update_options.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
installer.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
installer_test_case.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
installer_uninstaller_utils.rb Sync rubygems with current master (#2889) 2020-03-24 15:39:24 +09:00
local_remote_options.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
mock_gem_ui.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
name_tuple.rb [rubygems/rubygems] remove explicit require(s) for auto-loaded constant(s) 2020-07-31 21:07:19 +09:00
package.rb Stop using deprecated OpenSSL::Digest constants 2020-07-31 21:07:19 +09:00
package_task.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
path_support.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
platform.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
psych_additions.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
psych_tree.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
query_utils.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
rdoc.rb Remove unneeded code 2020-06-17 21:16:56 +09:00
remote_fetcher.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
request.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
request_set.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
requirement.rb [rubygems/rubygems] remove explicit require(s) for auto-loaded constant(s) 2020-07-31 21:07:19 +09:00
resolver.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
s3_uri_signer.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
safe_yaml.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
security.rb [rubygems/rubygems] Simplify digest name selection and use SHA256 2020-07-31 21:07:19 +09:00
security_option.rb [rubygems/rubygems] Remove missleading TODO comment. Can't use @parser.accept since not 2019-07-31 07:47:01 +08:00
server.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
source.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
source_list.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
spec_fetcher.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
specification.rb [rubygems/rubygems] Extract some common code into a private method 2020-07-31 21:07:19 +09:00
specification_policy.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
stub_specification.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
syck_hack.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
test_case.rb [rubygems/rubygems] Disallow warnings to creep into the test suite 2020-07-31 21:07:19 +09:00
test_utilities.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
text.rb Removed circular require 2019-03-11 03:53:33 +00:00
uninstaller.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
uri_formatter.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
uri_parser.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
uri_parsing.rb Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
user_interaction.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
util.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
validator.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
version.rb Enforce no empty lines around class body in rubygems 2020-07-31 21:07:19 +09:00
version_option.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00