Commit 3fe9dbe
committed
Implement StringScanner for TruffleRuby in pure Ruby
* Fixes #194.
* This is a fresh new implementation from scratch,
contributed directly to ruby/strscan, under BSD-2-Clause.
This was implemented using the strscan tests,
specs from ruby/spec and the documentation (https://docs.ruby-lang.org/en/master/StringScanner.html).
* lib/strscan.rb now handles the loading for all implementations.
* Test on TruffleRuby 33 to ensure it keeps working on older TruffleRuby releases,
which do not have the necessary Primitives used by this new implementation.1 parent 104dd1a commit 3fe9dbe
File tree
8 files changed
+476
-12
lines changed- .github/workflows
- ext
- jruby/lib
- strscan
- lib
- strscan
- test/strscan
8 files changed
+476
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2299 | 2299 | | |
2300 | 2300 | | |
2301 | 2301 | | |
2302 | | - | |
2303 | | - | |
2304 | 2302 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments