diff options
author | sshaw <skye.shaw@gmail.com> | 2018-04-02 18:05:34 +0300 |
---|---|---|
committer | sshaw <skye.shaw@gmail.com> | 2018-04-02 18:05:34 +0300 |
commit | 9cd4b2bff270aa50b8a680b49ea022170035abd3 (patch) | |
tree | 65ec04c9524ae9e5826c3a1202cd1a163a00e618 /auto/modules/ruby | |
parent | f4cb476febbdaac4174fa6d8047782e2669e3b8e (diff) | |
download | unit-9cd4b2bff270aa50b8a680b49ea022170035abd3.tar.gz unit-9cd4b2bff270aa50b8a680b49ea022170035abd3.tar.bz2 |
Ruby: correctly getting version from RbConfig::CONFIG.
This closes #90 PR on GitHub.
Diffstat (limited to 'auto/modules/ruby')
-rw-r--r-- | auto/modules/ruby | 2 |
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 |