On Tue, 7 Jun 2016 01:56:56 +0800 marguerite wrote:
On 05/31/2016 06:01 PM, Marcus Rückert wrote: 1. why not hook onto RbConfig::CONFIG['libdir']?
it has the value for us already :)
then only the goarch stuff would need to be in the conditional
+1
I wrote those codes with SLE 11 SP3 in mind.
It uses ruby 1.8.
RbConfig was introduced in ruby 1.9.
It means we need redundant codes to detect ruby versions.
Anyway we have to support SLE and there's a conditional, why not bother myself:-)
actually RbConfig is really really old :) it also works on ruby 1.8 $ ruby -v -r rbconfig -e "puts RbConfig::CONFIG['libdir']" ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] /usr/lib64 hth darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org