A ruby wrapper for phantomjs. The binaries are in vendor and it will
automatically detect what OS you are using and will try to use the
appropriate binaries.
gem install phantomjs.rbscript = File.expand_path('./my_runner.js')
output = Phantomjs.run(script, 'myarg1', 'myarg2')
p output # Whatever it outputs from stdoutThe equivalent code above will generate:
/absolute/path/to/phantomjs /absolute/my_runner.js myarg1 myarg2