lib/messenger/campfire.rb in messenger-0.1.0 vs lib/messenger/campfire.rb in messenger-0.1.1
- old
+ new
@@ -20,10 +20,10 @@
"http://#{subdomain}.campfirenow.com/room/#{room}/speak.json",
:basic_auth => { :username => api_key, :password => "x" },
:headers => { "Content-Type" => "application/json" },
:body => { "message" => { "body" => body } }.to_json
)
- [success?(response), response]
+ Result.new(success?(response), response)
end
def self.obfuscate(url)
raise URLError, "The URL provided is invalid" unless valid_url?(url)
api_key, room, subdomain = matcher(url)