-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 27 July 2001 10:15am, Lars Christensen wrote:
> I am looking for a way to provide easy, preferably portable
> installation of a ruby only module/library (no C code involved), to a
> location where other program can "require" it. E.g. something
> equivalent of perl's "perl Makefile.PL; make; make install".
>
> I can't figure out if 'mkmf' provides this feature, or if it only is
> for shared modules built from C code.
>
> What to do?

You probably just want to put your ruby file in your site-ruby/version 
directory.

For example, on my system, I have a ruby-code-only module called 
Cisco675.rb (to control my cisco675 router, amazingly enough ;). To 
make it work, I just put it in:

/usr/local/lib/ruby/site_ruby/1.7/net/Cisco675.rb

(Notice I'm also using the net subdir because I want my module to be in 
the net package like TCPSocket and so forth.)

Then, in an application that uses it, I just use:
#!/usr/local/bin/ruby

require 'net/Cisco675'

... do stuff with Net::Cisco675 ...

- -- 
Wesley J. Landaker - wjl / mindless.com
http://www.landaker.net            PGP DSS/DH Key: 0x0F338E07
PGPKey FP: 3AAA 424B B488 198E B68B  C0E5 390A BACA 0F33 8E07
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6a (GNU/Linux)
Comment: All your base are belong to us.

iEYEARECAAYFAjtht30ACgkQOQq6yg8zjgfwVACggHY/iblIKdrOCCyPylP7StbU
W3MAoP1XYE8pDn+nrxwMhghyXZLl4hzi
=zfg/
-----END PGP SIGNATURE-----