Commit e3c2423
Ruby: Fix native extension loading for new RubyGems (Ruby 4.1+) (#1281)
This pull request changes the native extension loading from
`require_relative` to `require` to ensure compatibility with the latest
RubyGems, which no longer installs native extensions into the gem's
`lib/` directory by default. See
ruby/rubygems#9240.
Using `require` resolves the extension through `$LOAD_PATH`, which
RubyGems populates with both the `lib/` and extension directories, so
this works on both old and new versions of RubyGems.
Resolves #1244
Co-Authored-By: Daniel Colson <composerinteralia@github.com>1 parent ca67d2e commit e3c2423
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments