lib/vidar/slack_notification.rb in vidar-1.1.3 vs lib/vidar/slack_notification.rb in vidar-1.1.4
- old
+ new
@@ -3,10 +3,10 @@
def initialize(github:, revision:, revision_name:, deploy_config:, build_url: nil)
@github = github
@revision = revision
@revision_name = revision_name
@build_url = build_url
- @build_hostname = URI(build_url || '').hostname
+ @build_hostname = ::URI.parse(build_url || '').hostname
@deploy_name = deploy_config.name
@deploy_url = deploy_config.url
@default_color = deploy_config.default_color
@success_color = deploy_config.success_color
@failure_color = deploy_config.failure_color