slackistrano 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slackistrano/tasks/slack.rake +6 -3
- data/lib/slackistrano/version.rb +1 -1
- data/spec/tasks_spec.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11791217d0177e658e5632ae0e89f110882fe044
|
4
|
+
data.tar.gz: 65ffd1268921fa6d6286e1bf40c8269c5430c8bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e7e7e693a96352c351bcb781220e0c2dff6deefa44c03ff330c9eb2ec2e19bc23db22840f688dfa5c1ad64fef094987a0364aba3f154752b3b8df30e57614c8
|
7
|
+
data.tar.gz: 733ea398ef62098fe93fac6974c03a34df539d10758b4d2ab219a6a8716a80204b4a521a78c60ffb56e1e32f5225240af39c7664083f8f733d0c2d739a4da80b
|
@@ -16,7 +16,8 @@ namespace :slack do
|
|
16
16
|
icon_url: fetch(:slack_icon_url),
|
17
17
|
icon_emoji: fetch(:slack_icon_emoji),
|
18
18
|
attachments: [{
|
19
|
-
text: fetch(:slack_msg_starting)
|
19
|
+
text: fetch(:slack_msg_starting),
|
20
|
+
mrkdwn_in: [:text]
|
20
21
|
}]
|
21
22
|
}
|
22
23
|
)
|
@@ -39,7 +40,8 @@ namespace :slack do
|
|
39
40
|
icon_emoji: fetch(:slack_icon_emoji),
|
40
41
|
attachments: [{
|
41
42
|
color: 'good',
|
42
|
-
text: fetch(:slack_msg_finished)
|
43
|
+
text: fetch(:slack_msg_finished),
|
44
|
+
mrkdwn_in: [:text]
|
43
45
|
}]
|
44
46
|
}
|
45
47
|
)
|
@@ -62,7 +64,8 @@ namespace :slack do
|
|
62
64
|
icon_emoji: fetch(:slack_icon_emoji),
|
63
65
|
attachments: [{
|
64
66
|
color: 'danger',
|
65
|
-
text: fetch(:slack_msg_failed)
|
67
|
+
text: fetch(:slack_msg_failed),
|
68
|
+
mrkdwn_in: [:text]
|
66
69
|
}]
|
67
70
|
}
|
68
71
|
)
|
data/lib/slackistrano/version.rb
CHANGED
data/spec/tasks_spec.rb
CHANGED
@@ -59,7 +59,11 @@ describe Slackistrano do
|
|
59
59
|
set :"slack_channel_#{stage}", -> { channel_for_stage }
|
60
60
|
expected_channel = channel_for_stage || 'channel'
|
61
61
|
|
62
|
-
attachment = {
|
62
|
+
attachment = {
|
63
|
+
text: 'text message',
|
64
|
+
color: color,
|
65
|
+
mrkdwn_in: [:text]
|
66
|
+
}.reject{|k,v| v.nil?}
|
63
67
|
|
64
68
|
expect(Slackistrano).to receive(:post).with(
|
65
69
|
team: 'team',
|