Fixed a bug with endpoints
Updated gemspec