Fix up travis-ci tests

* replace require_relative in gemspec for 1.9
* add missing require for socket
* fix calendar spec for wrapped UID lines