Kevin Newton

Results 39 issues of Kevin Newton

This provides the Ruby 2.7+ pattern matching interface for Active Record records and relations. It allows the user to pattern match against attributes and associations on records through a hash...

activerecord

See this issue: https://github.com/prettier/plugin-ruby/issues/1232 for details. I'm not entirely sure how to solve this, but I know it will involve adding a `prepublishOnly` step to the `package.json` that's going to...

You can declare block-local variables in lambda literals like this: ``` -> (; local) {} ``` but there's no way to access that information in ripper. This commit adds a...

Currently every time there is a getconstant instruction we push a boolean onto the stack to let it know if it can search the global scope. This boolean is always...

There's a bunch of stuff in here. 1. This handles writing to the iteration expression in `for` nodes. Previously it was simply compiling the index, which works for local variables...

Introduced in Ruby 3.2. I came here looking for a polyfill so I can support it in my library 😅.

enhancement
core api

Creates a new C file (tool/dump_ast.c) that is compiled using prism and dumps Ruby files to JSON. Then switch `mk_builtin_loader.c` to invoke that script to get the AST and walk...

Previously only the test runner was using RJIT. This switches the Ruby that is being tested to use RJIT. cc @k0kubun I just noticed this because of prism trying to...

## Steps to reproduce ```ruby if foo end case when :def if foo end end ``` ## Actual Output ``` [debug]: Parsing ["doc", "test.rb"] with `ruby` parser [debug]: Parsing test.rb...

### Motivation This doesn't quite fit in to the normal idea of a DSL, but I think it fits best here. Basically, because ripper isn't a normal gem and doesn't...

enhancement