How do you add/install Ruby classes?


#1

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


#2

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” removed_email_address@domain.invalid


#3

Apparently I was using the wrong words. You install libraries, not
classes. I found the answers, but removed_email_address@domain.invalid 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


#4

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” removed_email_address@domain.invalid