Commit 5aaea6d
authored
Move JRuby's ext and loader script (#39)
The strscan.rb file is only needed by JRuby, which does not have an
extension file format that loads itself. As noted in #35 having this
file present on TruffleRuby prevents their built-in strscan.rb from
loading, so the file was moved to lib/jruby/strscan.rb with lib/jruby
added as a require path. However this results in both lib/strscan.rb
and lib/jruby/strscan.rb getting copied into JRuby's stdlib when the
default gem is installed, leading to the confusing situation in #38.
This PR moves the jruby-specific strscan.rb under the jruby extension,
renaming that directory to be explicitly for JRuby, and adding that
new ext/jruby/lib path to the require paths so there's no nesting of
require paths to copy files multiple times.
* ext/java => ext/jruby
* lib/jruby/strscan.rb => ext/jruby/lib/strscan.rb
* Changes to Rakefile and gemspec for new locations
Fixes #381 parent 2efdb8e commit 5aaea6d
5 files changed
Lines changed: 5 additions & 5 deletions
File tree
- ext/jruby
- lib
- org/jruby/ext/strscan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments