I have a custom gem source installed in ~/.gems. My ~/.bashrc looks like:
My ~/.gemrc looks like:
So. I can run ruby jobs with special “requires” from my local gems fine via the command-line. However, when shoving the command into a recurring cron task, I get “no such file to load” errors:
gem_original_require': no such file to load -- flickr_fu (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
And if I try to call a command directly provided by a local gem (say, “staticmatic”), I get:
/bin/sh: line 1: staticmatic: command not found
What paths do I need to update to make these custom gems available from cron? I’ve scoured the 'net and the cron wiki for answers, but I can’t fine 'em!