Skip to content

Commit 34a509f

Browse files
committed
print ruby version as well as JRubyArt version
1 parent 91bc1fc commit 34a509f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/jruby_art/runner.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ def show_help
151151
end
152152

153153
def show_version
154-
puts format('JRubyArt version %s', JRubyArt::VERSION)
154+
require 'erb'
155+
template = ERB.new <<-EOF
156+
JRubyArt version <%= JRubyArt::VERSION %>
157+
Ruby version <%= RUBY_VERSION %>
158+
EOF
159+
puts template.result(binding)
155160
end
156161

157162
private

0 commit comments

Comments
 (0)