Skip to content

Commit efde09d

Browse files
committed
Use version: 3.3.1 against Translation::Parser
Follow up #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 #2760, the behavior remains unchanged with this switch from 3.3.0 to 3.3.1.
1 parent 926c2bc commit efde09d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/prism/ffi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def dump_options(options)
408408
values << dump_options_command_line(options)
409409

410410
template << "C"
411-
values << { nil => 0, "3.3.0" => 1, "3.4.0" => 0, "latest" => 0 }.fetch(options[:version])
411+
values << { nil => 0, "3.3.0" => 1, "3.3.1" => 1, "3.4.0" => 0, "latest" => 0 }.fetch(options[:version])
412412

413413
template << "L"
414414
if (scopes = options[:scopes])

lib/prism/translation/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def build_range(location, offset_cache)
284284
def convert_for_prism(version)
285285
case version
286286
when 33
287-
"3.3.0"
287+
"3.3.1"
288288
when 34
289289
"3.4.0"
290290
else

0 commit comments

Comments
 (0)