copy from "git://github.com/leonid-shevtsov/resque.git"