How do you add/install Ruby classes?

Hi everyone,

I wanted to add this class here for handling passwords:

http://www.caliban.org/ruby/ruby-password.shtml

But I don’t know how to. There’s nothing on that page. I searched in
Google too but found nothing.

Thank in advance :slight_smile:


Ramon Miguel M. Tayag

I too am a newbie, but I’m wondering wouldn’t standard installation
procedure work?

$ ruby extconf.rb
$ make
$ make install

and ‘require’ it at the beginning of your ruby program.

e.g.

require ‘password’

My ruby code goes here …

and here …

and here …

On Mar 10, 8:45 am, “Ramon Miguel M. Tayag” [email protected]

Apparently I was using the wrong words. You install libraries, not
classes. I found the answers, but [email protected] is
right, the installation doesn’t work. Maybe someone knoww how to fix
it?

If not, since I see that the library is quite old, is there another
library that can be used for password checking, generating, etc?

Thanks

Ramon Miguel M. Tayag

I too am a newbie, but I’m wondering wouldn’t standard installation
procedure work?

$ ruby extconf.rb
$ make
$ make install

and ‘require’ it at the beginning of your ruby program.

e.g.

require ‘password’

My ruby code goes here …

and here …

and here …

On Mar 10, 8:45 am, “Ramon Miguel M. Tayag” [email protected]