We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RUBY_VERSION.to_f
1 parent f44e2df commit b385f47Copy full SHA for b385f47
lib/prism/translation/parser_current.rb
@@ -13,8 +13,9 @@ module Translation
13
else
14
# Keep this in sync with released Ruby.
15
parser = Parser34
16
+ major, minor, _patch = Gem::Version.new(RUBY_VERSION).segments
17
warn "warning: `Prism::Translation::Current` is loading #{parser.name}, " \
- "but you are running #{RUBY_VERSION.to_f}."
18
+ "but you are running #{major}.#{minor}."
19
ParserCurrent = parser
20
end
21
0 commit comments