I’m trying to put an app together that I would need to run on quite a few
like systems, and I’d like to not have to install ruby on each one.
Currently, I’m trying to use miniruby to accomplish this. Is this an ok way
So, far I have a directory structure that looks like this:
/usr/local/myapp/runmyapp <- #!bin/miniruby …
$LOAD_PATH << “lib”
Which mostly works, except I need access to the md5 stuff and I seem to have
problems using it after copying the digest.so and md5.so into my lib
directory. Rather than printing an md5 hash when I do something like
digest.to_s, it prints the Object reference (#MD5:0xe77b8). Also, I have
to explicitly require “digest”. I assume that I have some issue with
autoloading, but I’m not sure. Can anyone tell me how to fix this?
What’s the best way to do this, or does everyone just install all of ruby?
Check your PC for viruses with the FREE McAfee online computer scan.