CodeClimate.com badge added
Options validation moved to separate method
Fixed Ruby v1.9.3 bug with URI