lib/activehook/server/send.rb in activehook-server-0.1.5 vs lib/activehook/server/send.rb in activehook-server-0.1.6

- old
+ new

@@ -2,11 +2,11 @@ module Server class Send REQUEST_HEADERS = { "Content-Type" => "application/json", "Accept" => "application/json", - "User-Agent" => "ActiveHook/#{ActiveHook::Server::VERSION}" + "User-Agent" => "ActiveHook/#{Server::VERSION}" }.freeze attr_accessor :message attr_reader :response_time, :status, :response @@ -58,12 +58,12 @@ end def log_status msg = "POST | #{uri} | #{status.upcase} #{response_time}" if status == :success - ActiveHook::Server.log.info(msg) + Server.log.info(msg) else - ActiveHook::Server.log.err(msg) + Server.log.err(msg) end end def final_headers { "X-Hook-Signature" => @message.signature }.merge(REQUEST_HEADERS)