> jruby <scriptname>

And to install the gem, did you type
/opt/jruby/bin/gem install profligacy
?