From 9cd4b2bff270aa50b8a680b49ea022170035abd3 Mon Sep 17 00:00:00 2001 From: sshaw Date: Mon, 2 Apr 2018 18:05:34 +0300 Subject: [PATCH] Ruby: correctly getting version from RbConfig::CONFIG. This closes #90 PR on GitHub. --- auto/modules/ruby | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/modules/ruby b/auto/modules/ruby index eb5474ac..8c5dec0f 100644 --- a/auto/modules/ruby +++ b/auto/modules/ruby @@ -91,7 +91,7 @@ if [ $nxt_found = no ]; then exit 1; fi -NXT_RUBY_VERSION=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["ruby_version"])'` +NXT_RUBY_VERSION=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["RUBY_PROGRAM_VERSION"])'` $echo " + Ruby version: ${NXT_RUBY_VERSION}" if grep ^$NXT_RUBY_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then