From 369618e04d95368805832bf4e4f768ac6b13aed8 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 30 Aug 2026 15:24:47 +0200 Subject: [PATCH] Bump go-ruby-parser to v0.1.7 (six syntax-robustness fixes) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit go-ruby-parser v0.1.6+v0.1.7 accept six constructs MRI allows that the parser rejected, each of which made whole ruby/spec files fail to load: * `return/break/next *ary` — a splat jump value, * `{ |a,| }` — a trailing comma in a block parameter list, * `cond ? next : x` — a value-less jump as a ternary arm, * `:$~` `:$!` `:$-w` `:$1` — special / option / match-group global symbols, * `C OP= x` / `A::B OP= x` — compound assignment to a constant (`||=` guarded by defined? so it defines an undefined constant, as MRI does), * `**=` — power-assignment. This unblocks 13 previously unparseable spec files for +341 passing examples. go test ./... green, native + wasip1/wasm build. Co-Authored-By: Claude Opus 4.8 --- go.mod | 2 +- go.sum | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index f62a70c7..f6f90369 100644 --- a/go.mod +++ b/go.mod @@ -129,7 +129,7 @@ require ( github.com/go-ruby-pagy/pagy v0.0.0-20260707193354-a84fe1d16a86 github.com/go-ruby-paper-trail/paper-trail v0.0.0-20260707193452-4e10f2b4d0b3 github.com/go-ruby-parquet/parquet v0.0.0-20260704170648-c7f0507946f7 - github.com/go-ruby-parser/parser v0.1.5 + github.com/go-ruby-parser/parser v0.1.7 github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d github.com/go-ruby-prawn/prawn v0.0.0-20260728194101-a5f2d786bf88 diff --git a/go.sum b/go.sum index 51eef730..0d09ffe8 100644 --- a/go.sum +++ b/go.sum @@ -525,6 +525,10 @@ github.com/go-ruby-parser/parser v0.1.4 h1:PXET/DwT4CKzGuBs/XWMoNczw2AFo84BndzZ7 github.com/go-ruby-parser/parser v0.1.4/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= github.com/go-ruby-parser/parser v0.1.5 h1:dSdg7ByWOn59gHscsxlSDQR+Xd/1hooIZgkJY6ASKtM= github.com/go-ruby-parser/parser v0.1.5/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= +github.com/go-ruby-parser/parser v0.1.6 h1:q6GEdtf6Dkl0BiiNvrGmHePLIPfFEfjEd6aRrcF8uvI= +github.com/go-ruby-parser/parser v0.1.6/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= +github.com/go-ruby-parser/parser v0.1.7 h1:drBCs/DNLgzs+IB2Pqifpl1arwh05PyDj069QdFWkG8= +github.com/go-ruby-parser/parser v0.1.7/go.mod h1:NRbX4dYcQ6CgcaSaMmu1dh95QuKGq+RdenUoWU73214= github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b h1:/ZN1eLOg0oH4wF8qmd6NOyB4ENYthx6wFwOpZiPhRIE= github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b/go.mod h1:IvW5q5Kyl5l3hrYwiHylOEmk5hpGSo7XqcmUXBHF5H0= github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d h1:JKIZD+pJQ64/nla4DHdzMLnc4/v45MyYwnjACwS6dyM=