Skip to content

Commit

Permalink
[ruby/prism] Use version: 3.3.1 against Translation::Parser
Browse files Browse the repository at this point in the history
Follow up ruby/prism#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 ruby/prism#2760, the behavior remains unchanged with this switch from 3.3.0 to 3.3.1.

ruby/prism@efde09d318
  • Loading branch information
koic authored and matzbot committed May 4, 2024
1 parent 96710a3 commit b181ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/prism/ffi.rb
Expand Up @@ -408,7 +408,7 @@ def dump_options(options)
values << dump_options_command_line(options)

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

template << "L"
if (scopes = options[:scopes])
Expand Down
2 changes: 1 addition & 1 deletion lib/prism/translation/parser.rb
Expand Up @@ -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
Expand Down

0 comments on commit b181ba7

Please sign in to comment.