diff --git a/app/models/notification_services/flowdock_service.rb b/app/models/notification_services/flowdock_service.rb index 9efe667..25e53ec 100644 --- a/app/models/notification_services/flowdock_service.rb +++ b/app/models/notification_services/flowdock_service.rb @@ -21,10 +21,22 @@ if defined? Flowdock end def create_notification(problem) - flow = Flowdock::Flow.new(api_token: api_token, source: "Errbit", from: { name: "Errbit", address: ENV['ERRBIT_EMAIL_FROM'] || 'support@flowdock.com' }) + flow = Flowdock::Flow.new( + api_token: api_token, + source: "Errbit", + from: { + name: "Errbit", + address: ENV['ERRBIT_EMAIL_FROM'] || 'support@flowdock.com' + } + ) subject = "[#{problem.environment}] #{problem.message.to_s.truncate(100)}" url = app_problem_url problem.app, problem - flow.push_to_team_inbox(subject: subject, content: content(problem, url), project: project_name(problem), link: url) + flow.push_to_team_inbox( + subject: subject, + content: content(problem, url), + project: project_name(problem), + link: url + ) end private diff --git a/app/models/notification_services/slack_service.rb b/app/models/notification_services/slack_service.rb index 5f3d68e..cd1af67 100644 --- a/app/models/notification_services/slack_service.rb +++ b/app/models/notification_services/slack_service.rb @@ -62,7 +62,13 @@ class NotificationServices::SlackService < NotificationService end def create_notification(problem) - HTTParty.post(service_url, body: post_payload(problem), headers: { 'Content-Type' => 'application/json' }) + HTTParty.post( + service_url, + body: post_payload(problem), + headers: { + 'Content-Type' => 'application/json' + } + ) end def configured? diff --git a/app/models/notification_services/webhook_service.rb b/app/models/notification_services/webhook_service.rb index 8f749ca..119a7b5 100644 --- a/app/models/notification_services/webhook_service.rb +++ b/app/models/notification_services/webhook_service.rb @@ -14,7 +14,11 @@ class NotificationServices::WebhookService < NotificationService end def message_for_webhook(problem) - { problem: { url: problem_url(problem) }.merge(problem.as_json).to_json } + { + problem: { + url: problem_url(problem) + }.merge(problem.as_json).to_json + } end def create_notification(problem) -- libgit2 0.21.2