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:
parent
310159c0db
commit
2982fb396e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue