enable Travis CI
fix reading git remote URLs on Ruby 1.8.7

Strip extra whitespace in the end because URI.parse chokes on it.

Fixes #49, closes #50, closes #51