lib/vidar/slack_notification.rb in vidar-1.9.4 vs lib/vidar/slack_notification.rb in vidar-1.10.0

- old
+ new

@@ -32,23 +32,23 @@ message = [ "Failed deploy of #{github_link} to #{deploy_link}.", ":fire: <!channel>", build_link ] - perform_with data(message: message, color: failure_color) + perform_with data(message:, color: failure_color) end def success message = [ "Successful deploy of #{github_link} to #{deploy_link}.", build_link ] - perform_with data(message: message, color: success_color) + perform_with data(message:, color: success_color) end def deliver(message:, color: default_color) - perform_with data(message: message, color: color) + perform_with data(message:, color:) end def perform_with(data) connection.post do |req| req.url webhook_url @@ -69,11 +69,11 @@ { attachments: [ { title: github, title_link: github_url, - color: color, - text: text, + color:, + text:, fallback: text, } ] } end