diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2023-09-26 10:13:31 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-10-09 11:54:10 +0000 |
commit | f44cee90480c103d911836f92a4e0e20c0eca1e5 (patch) | |
tree | 3c7d1bda2659ccc43ad46db3def9be3e53dd0eef /doc/contributing/testing_ruby.md | |
parent | 0fdee133fccbd34af31f5f4ca530838920d8fc06 (diff) | |
download | ruby-f44cee90480c103d911836f92a4e0e20c0eca1e5.tar.gz |
[rubygems/rubygems] Avoid duplicates -rbundler/setup in RUBYOPT with Ruby preview
When using a Ruby preview the require path of `bundler/setup` is
similar to `-r/opt/ruby3.3.0-preview2/lib/ruby/3.3.0+0/bundler/setup`.
The special character `+` in the string makes the Regexp fail,
leading to multiple addition of the same require statement each time
`set_rubyopt` is called (e.g. server reloading).
Escaping the characters in the string esure a correct match with all
the different Ruby versions.
https://github.com/rubygems/rubygems/commit/dd43dfa709
Diffstat (limited to 'doc/contributing/testing_ruby.md')
0 files changed, 0 insertions, 0 deletions