From 52ef5cf2c869a036d61fc89076479e5041cfa216 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 4 May 2024 13:49:31 +0900 Subject: [PATCH] Use `version: 3.3.1` against `Translation::Parser` Follow up https://github.com/ruby/prism/pull/2760. This PR updates the `Translation::Parser` to use version 3.3.1 when the version 3.3 is specified. The Parser gem is structured to support the latest patch versions, hence this aligns with Parser-compatible versioning. As noted in https://github.com/ruby/prism/pull/2760, the behavior remains unchanged with this switch from 3.3.0 to 3.3.1. --- lib/prism/translation/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prism/translation/parser.rb b/lib/prism/translation/parser.rb index 2d769302c3f..193bbae406e 100644 --- a/lib/prism/translation/parser.rb +++ b/lib/prism/translation/parser.rb @@ -284,7 +284,7 @@ def build_range(location, offset_cache) def convert_for_prism(version) case version when 33 - "3.3.0" + "3.3.1" when 34 "3.4.0" else