diff options
author | Koichi ITO <[email protected]> | 2024-05-04 13:49:31 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-05-04 16:31:58 +0000 |
commit | b181ba7400d780730833cf649024472674d53c97 (patch) | |
tree | bffa5547fd882181136d7571f571d47ca09949b6 /lib | |
parent | 96710a3139fecda4bc12cd4f321399f71887535c (diff) |
[ruby/prism] 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.
https://github.com/ruby/prism/commit/efde09d318
Diffstat (limited to 'lib')
-rw-r--r-- | lib/prism/ffi.rb | 2 | ||||
-rw-r--r-- | lib/prism/translation/parser.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/prism/ffi.rb b/lib/prism/ffi.rb index cec4b9d630..b62a59d037 100644 --- a/lib/prism/ffi.rb +++ b/lib/prism/ffi.rb @@ -408,7 +408,7 @@ module Prism 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]) diff --git a/lib/prism/translation/parser.rb b/lib/prism/translation/parser.rb index 2d769302c3..193bbae406 100644 --- a/lib/prism/translation/parser.rb +++ b/lib/prism/translation/parser.rb @@ -284,7 +284,7 @@ module Prism def convert_for_prism(version) case version when 33 - "3.3.0" + "3.3.1" when 34 "3.4.0" else |