I created a shell script that i placed in /etc/cron.daily , this is the script:

#!/bin/sh
/usr/bin/ruby /var/updatelistings/update3.rb >> /var/updatelistings/log
exit 0

it runs a ruby script that updates a db and i want to place the output in the log file in the same dir. when i run the ruby script from a separate directory I get this error:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- librets (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /var/updatelistings/update3.rb:5

I am guessing this issue has to do with the require's i have set, this is them:

Code Ruby:
#!/usr/bin/env ruby
require "rubygems"
require "mysql"
require "RMagick"
require "librets"

any ideas?