--J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable darren kirby [2006-08-13 05:34]: > quoth the lists: > > Try this: > > > > ruby -e "require 'rubygems'; require 'xml-simple'" > > > > You have to require rubygems first. > > Sorry to hijack here, but this is an issue that has sort of unsettled me as I > have seen it come up on this list a few times. Perhaps I am not understanding > gems fully here, but what if you are writing software to be released to the > public that relies on a 3rd party library? > > Some might have the lib installed from gems and some might have installed > manually or whatever ... so how do you reconcile the two if you must require > rubygems to use gem installed libs? Why is the gems directory not added to > the regular include path? Are you required to write code to deal with this? > How do experienced Ruby devs deal with this issue? Or am I just thick andt > isn't an issue at all? > > any insight appreciated, export RUBYOPT=rubygems The you can use "require" to load both gem-libraries and non-gem-libraries. Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE3jzW27uLisrW2w8RAmqDAJ9ejKrk0EM9jrsYqUPwBmFnT/AAOQCfWGMc 2Rz9QIVwsZ1skPLXXdIYm7Ani -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--