From: darren kirby Date: 2006-08-14T05:57:09+09:00 Subject: Re: Rubygem libs vs Non Rubygem libs --nextPart4903046.zV0QukssDo Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline quoth the Tilman Sauerbeck: > > >export RUBYOPT=3Drubygems > > > > Of course, this isn't such a great solution from inside a library, > > However, it's not too hard. > > If you are the author of some library: > > cat <>README > If you're using rubygems, please export RUBYOPT=3Drubygems. > EOF > > Done. I guess it would be bad form to go setting env variables on someone's syste= m=20 from within a lib...=20 So you could do: begin require 'rubygems' rescue LoadError end require 'libfoo' And it would load 'libfoo' either through gems, if present, or regularly if= =20 not? Is that right? > Regards, > Tilman =2Dd =2D-=20 darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." =2D Dennis Ritchie and Ken Thompson, June 1972 --nextPart4903046.zV0QukssDo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQBE35IFwPD5Cr/3CJgRApwBAJ9iw5igxI2FRAWVzkq8wQGzPXEu3wCggI0A sVKQhCSty2yrj5IpSC4boB4= =Sg/N -----END PGP SIGNATURE----- --nextPart4903046.zV0QukssDo--