Swop deprecated rdoctask for task.
Switch to latest version of mechanize for Ruby support. Add json.