summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsshaw <skye.shaw@gmail.com>2018-04-02 18:05:34 +0300
committersshaw <skye.shaw@gmail.com>2018-04-02 18:05:34 +0300
commit9cd4b2bff270aa50b8a680b49ea022170035abd3 (patch)
tree65ec04c9524ae9e5826c3a1202cd1a163a00e618
parentf4cb476febbdaac4174fa6d8047782e2669e3b8e (diff)
downloadunit-9cd4b2bff270aa50b8a680b49ea022170035abd3.tar.gz
unit-9cd4b2bff270aa50b8a680b49ea022170035abd3.tar.bz2
Ruby: correctly getting version from RbConfig::CONFIG.
This closes #90 PR on GitHub.
-rw-r--r--auto/modules/ruby2
1 files changed, 1 insertions, 1 deletions
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