capistrano-slack_notification 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba672634c71acb8b9902b35388d5accbe04bd09c
4
- data.tar.gz: f86fd0f5e13d0854d933aa11b2d1d3ce4d200b58
3
+ metadata.gz: a226a264dfc863108df76fe67249a766b7a49d01
4
+ data.tar.gz: 550cec9349e5e08288d117d86f90a8895bf8b670
5
5
  SHA512:
6
- metadata.gz: 322e8012192121b939fa305e5550d23b8fe3e9b536a4a1d52f054066fbedc89048aa9d6627985ddfd326295c0a13332d18923cc3fe93f5417dceaa0608320677
7
- data.tar.gz: f7362af2684e5713571e22484a68d9856d835c3b5dfb38508ec9a99182a1a93c4b5fc7551bf7cb57b6af44192fcaa440e41eaf1bd1393a148205298314454ed2
6
+ metadata.gz: c5a9855b72d8894de458b2f59155293c73af2233a5862f45dbaa4fc8f0d8123e48c1f59aa2b9e7f15a435d025f620d34a6a7df36a1f40a148167e805b951ccec
7
+ data.tar.gz: fe3293ea92a7b43d0395c4030efde0aa1544852b8a3cfd2cb851e213a803d2e6a1be51392474d4be99f3e0ab3090e90d839d0ed1941e133bd727c86e4fce4c50
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module SlackNotification
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -48,7 +48,7 @@ namespace :slack do
48
48
  text = "Started deploying to #{fetch(:slack_stage)} by @#{fetch(:slack_deployer)}" +
49
49
  " (branch #{fetch(:branch)})"
50
50
 
51
- build_http_body {
51
+ build_http_body({
52
52
  attachments: [{
53
53
  color: "warning",
54
54
  title: fetch(:application),
@@ -56,14 +56,14 @@ namespace :slack do
56
56
  fallback: text,
57
57
  mrkdwn_in: ['text']
58
58
  }]
59
- }
59
+ })
60
60
  }
61
61
 
62
62
  set :slack_failure_body, -> {
63
63
  text = "Failed deploying to #{fetch(:slack_stage)} by @#{fetch(:slack_deployer)}" +
64
64
  " (branch #{fetch(:branch)} at #{fetch(:current_revision)} / #{elapsed_time.call} sec)"
65
65
 
66
- build_http_body {
66
+ build_http_body({
67
67
  attachments: [{
68
68
  color: 'danger',
69
69
  title: fetch(:application),
@@ -71,7 +71,7 @@ namespace :slack do
71
71
  fallback: text,
72
72
  mrkdwn_in: ['text']
73
73
  }]
74
- }
74
+ })
75
75
  }
76
76
 
77
77
  set :slack_success_body, -> {
@@ -79,7 +79,7 @@ namespace :slack do
79
79
  text = "Successful #{task} to #{fetch(:slack_stage)} by @#{fetch(:slack_deployer)}" +
80
80
  " (branch #{fetch(:branch)} at #{fetch(:current_revision)} / #{elapsed_time.call} sec)"
81
81
 
82
- build_http_body {
82
+ build_http_body({
83
83
  attachments: [{
84
84
  color: 'good',
85
85
  title: fetch(:application),
@@ -87,7 +87,7 @@ namespace :slack do
87
87
  fallback: text,
88
88
  mrkdwn_in: ['text']
89
89
  }]
90
- }
90
+ })
91
91
  }
92
92
 
93
93
  set :slack_client, -> {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-slack_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows