diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-11-04 20:02:55 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-11-06 11:37:10 +0000 |
| commit | 8c184885b09d600b4c35fe04be3da0c9c5b36adf (patch) | |
| tree | 84f9e3a487481cea15f8c5ab2f50010cfaff3d1c /spec/ruby | |
| parent | e5860e565467cb330f2c7b9ae140a1e4b89c0b71 (diff) | |
[rubygems/rubygems] Fix some JRuby warnings when using `bundler/setup` with Ruby's -w flag
When using the `bundler/setup` entrypoint, Bundler prints the following
warnings in JRuby in `-w` is passed to Ruby.
```
/path/to/bundler/shared_helpers.rb:10: warning: constant Bundler::WINDOWS is deprecated
/path/to/bundler/shared_helpers.rb:11: warning: constant Bundler::FREEBSD is deprecated
/path/to/bundler/lib/bundler/shared_helpers.rb:12: warning: constant Bundler::NULL is deprecated
```
This does not happen in CRuby.
This seems like a JRuby bug but we can skip it by autoloading the
constants.
https://github.com/rubygems/rubygems/commit/761ca29fa2
Diffstat (limited to 'spec/ruby')
0 files changed, 0 insertions, 0 deletions
