cowboyd/jenkins.rb — pull request #25 by docwhat (2011-11-30 21:49:40+00:00)
Title: More versatile setup base url

This makes the setup_base_url function more versatile. It now handles a single string as a full URL (e.g. http://tomcat.example.com:8080/jenkins)

As a (pleasant) side-effect this makes the CLI `--host` option accept a full URL as well.

Overall, it makes the user interface and programmer interface much nicer.

I included new specs for the `Api` class as well, since I wanted to be sure I didn't break anything.