lib/messenger/web.rb in messenger-0.1.0 vs lib/messenger/web.rb in messenger-0.1.1

- old
+ new

@@ -16,10 +16,10 @@ # # The body of the message is posted as the body of the request, not the query. def self.send(url, body, options={}) raise URLError, "The URL provided is invalid" unless self.valid_url?(url) response = HTTParty.post(url, options.merge(:body => body)) - [success?(response), response] + Result.new(success?(response), response) end def self.obfuscate(url) raise URLError, "The URL provided is invalid" unless self.valid_url?(url) path = URI.parse(url)