[ruby/prism] Use File::path for FFI
https://github.com/ruby/prism/commit/bdf15c7566
test/ruby/test_process.rb: simplify testing spawn with long strings
test_aspawn_too_long_path just wants to verify that passing a very long string to spawn does not cause a crash. Use an input string that is long enough for this purpose and does not ends up with spawning too many...
[ruby/prism] Make code examples explicitly ruby for rdoc
Because of the ^^^ hints, it's not valid ruby and so rdoc gives it no syntax highlighting. We can convince it otherwise and syntax-highlight syntax-invalid code.
^^^
Although it is syntax-invalid, the results look very good....
Change ISEQ_BODY(iseq)->location.pathobj to be a String instead of Array
Any iseq created inside an eval, class_eval or module_eval had its location.pathobj set to an Array of 2 elements where the 2nd element was nil. This is wasteful in terms of memory and also causes longer major GC...
location.pathobj
nil
[ruby/prism] Default to nearest instead of latest
https://github.com/ruby/prism/commit/b2cb61deb0
[ruby/prism] Put a depth check in parse_pattern
https://github.com/ruby/prism/commit/fb2fea4cb2
[ruby/prism] Extract out parse_aref
https://github.com/ruby/prism/commit/aa0ebe032a
[ruby/prism] Extract parse_call
https://github.com/ruby/prism/commit/de9a651018
[ruby/prism] Extract parse_equal
https://github.com/ruby/prism/commit/cad38e9ce5
[ruby/prism] Extract parse_*_equal
https://github.com/ruby/prism/commit/3ea17ccfec
View all revisions | View revisions
Also available in: Atom