在 2016年6月7日,02:11,Marcus Rückert
写道: 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
I hope I can have a SLE... I read ruby-doc.com, the oldest doc showed 1.9.2. I manually wrote lots of such less efficient codes for ruby 1.8.7 which I don't have (this project was done at my office, with ssh to a VPS) Will drop them Marguerite -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org