diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-10-25 09:55:25 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-10-26 18:44:15 +0900 |
| commit | a5bd0c638a600a5cfb0d99ee64ba8172a9c66535 (patch) | |
| tree | ff9d9c676a992d621ab027b1dfd171f58710d875 /include/ruby/backward | |
| parent | 3daf16e51fcd21e964525d7e64cec646a49236ff (diff) | |
[ruby/json] Workaround rubygems $LOAD_PATH bug
Ref: https://github.com/ruby/json/issues/647
Ref: https://github.com/rubygems/rubygems/pull/6490
Older rubygems are executing `extconf.rb` with a broken `$LOAD_PATH`
causing the `json` gem native extension to be loaded with the stdlib
version of the `.rb` files.
This fails with
```
json/common.rb:82:in `initialize': wrong number of arguments (given 1, expected 0) (ArgumentError)
```
Since this is just for `extconf.rb` we can probably just accept that
extra argument and ignore it.
The bug was fixed in rubygems 3.4.9 / 2023-03-20
https://github.com/ruby/json/commit/1f5e849fe0
Diffstat (limited to 'include/ruby/backward')
0 files changed, 0 insertions, 0 deletions
