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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c46fe6f2630d18ead53c0c8ca36b86aabd0edb90
4
- data.tar.gz: f69b3b353ef735704a1b48d4af51bcb277a18e32
3
+ metadata.gz: 11791217d0177e658e5632ae0e89f110882fe044
4
+ data.tar.gz: 65ffd1268921fa6d6286e1bf40c8269c5430c8bc
5
5
  SHA512:
6
- metadata.gz: eda0cdd9fa315bc4d20e05e4552a8276347f95c18951defe03f46b56636bdd86ff66853a2b8af3bd506da16b02805ecd11e3145ef690afd7fddc67fa2cb2d336
7
- data.tar.gz: 2971b27195aff30bc885ee8d6b3abd09d73677c948de6387c9ec7a9d250f26b9d042e90ae789c979dd1c534664f5167043258d3560bf458382303e1f1f264995
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
  )
@@ -1,3 +1,3 @@
1
1
  module Slackistrano
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
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 = {text: 'text message', color: color}.reject{|k,v| v.nil?}
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',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom