1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Show RUBY_ENGINE_VERSION if available. Fixes #923

This commit is contained in:
Evan Phoenix 2016-03-05 21:48:44 -08:00
parent 310159c0db
commit 2982fb396e

View file

@ -72,7 +72,11 @@ module Puma
if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby"
"ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
else
"#{RUBY_ENGINE} #{RUBY_VERSION}"
if defined?(RUBY_ENGINE_VERSION)
"#{RUBY_ENGINE} #{RUBY_ENGINE_VERSION} - ruby #{RUBY_VERSION}"
else
"#{RUBY_ENGINE} #{RUBY_VERSION}"
end
end
end