capistrano-slackify 2.7.1 → 2.8.0

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: ce0b7def59d3e57eaa0e3119171c1a142bfc9f6a
4
- data.tar.gz: 80389744054fd62319069a8ee877f6a09d1a8bbc
3
+ metadata.gz: f301be9a89dff52e3090565e59405aa95fc544d4
4
+ data.tar.gz: a82912d5c917ab546bdaa307d093eac3d5ce7e88
5
5
  SHA512:
6
- metadata.gz: 96cbefefdc909e69a9324e4b48e7c696bc268cb4814fc868220f71c590093c6a87323a61472c2947f820c47f3027ee86c725185e10173d7181e50db4414f402e
7
- data.tar.gz: 9bd3586d8a5f89a63ab3d3f52ade1f51abd7fc3c38b841844dc1587645d6a4128c202c8ed9c2cbf9c4adf2c67b876bb7e52f0f4352e8775a5e005179061b096c
6
+ metadata.gz: 68c38752b583529ee11fce5ad58eb7df1e6efe3267b4fc07a844f6d19b2528fec14a9f98750375a3ef9769c005abe89d011ab589e7b4ed75918be1806af2fc43
7
+ data.tar.gz: ae0c58950a2801b61e29e282a4dcee62d7a48e9d747a36ef1410a902920ce0125ae5e6a96ef0aff47cc5e3859bba0c04dbeaf2525545b6ac460a33ea55af9457
data/README.md CHANGED
@@ -58,6 +58,7 @@ Any of the defaults can be over-ridden in `config/deploy.rb`:
58
58
  set :slack_emoji, ':trollface:'
59
59
  set :slack_user, ENV['GIT_AUTHOR_NAME']
60
60
  set :slack_fields, ['status', 'stage', 'branch', 'revision', 'hosts']
61
+ set :slack_mrkdwn_in, ['pretext', 'text', 'fields']
61
62
  set :slack_hosts, -> { release_roles(:all).map(&:hostname).join("\n") }
62
63
  set :slack_text, -> {
63
64
  elapsed = Integer(fetch(:time_finished) - fetch(:time_started))
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-slackify'
7
- spec.version = '2.7.1'
7
+ spec.version = '2.8.0'
8
8
  spec.authors = ['seenmyfate']
9
9
  spec.email = ['seenmyfate@gmail.com']
10
10
  spec.summary = %q{Publish deployment notifications to Slack via the incoming webhooks integration}
@@ -59,6 +59,7 @@ namespace :load do
59
59
  set :slack_parse, 'default'
60
60
  set :slack_user, -> { local_user.strip }
61
61
  set :slack_fields, ['status', 'stage', 'branch', 'revision', 'hosts']
62
+ set :slack_mrkdwn_in, []
62
63
  set :slack_hosts, -> { release_roles(:all).map(&:hostname).join("\n") }
63
64
  set :slack_url, -> { fail ':slack_url is not set' }
64
65
  set :slack_text, lambda {
@@ -63,6 +63,7 @@ module Slackify
63
63
  color: color,
64
64
  text: text,
65
65
  fields: fields,
66
+ mrkdwn_in: fetch(:slack_mrkdwn_in),
66
67
  }
67
68
  ]
68
69
  }
@@ -11,6 +11,7 @@ module Slackify
11
11
  slack_parse: 'default',
12
12
  slack_user: 'You',
13
13
  slack_fields: ['status', 'stage', 'branch', 'revision', 'hosts'],
14
+ slack_mrkdwn_in: ['text'],
14
15
  slack_hosts: "192.168.10.1\r192.168.10.2",
15
16
  slack_text: ':boom:',
16
17
  slack_deploy_finished_color: 'good',
@@ -21,7 +22,7 @@ module Slackify
21
22
  }
22
23
 
23
24
  let(:payload) {
24
- %{'payload={"channel":"#general","username":"Capistrano","icon_emoji":":ghost:","parse":"default","attachments":[{"fallback":":boom:","color":"good","text":":boom:","fields":[{"title":"Status","value":"success","short":true},{"title":"Stage","value":"sandbox","short":true},{"title":"Branch","value":"master","short":true},{"title":"Revision","value":"SHA","short":true},{"title":"Hosts","value":"192.168.10.1\\r192.168.10.2","short":true}]}]}'}
25
+ %{'payload={"channel":"#general","username":"Capistrano","icon_emoji":":ghost:","parse":"default","attachments":[{"fallback":":boom:","color":"good","text":":boom:","fields":[{"title":"Status","value":"success","short":true},{"title":"Stage","value":"sandbox","short":true},{"title":"Branch","value":"master","short":true},{"title":"Revision","value":"SHA","short":true},{"title":"Hosts","value":"192.168.10.1\\r192.168.10.2","short":true}],"mrkdwn_in":["text"]}]}'}
25
26
  }
26
27
 
27
28
  let(:text) { context.fetch(:slack_text) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-slackify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - seenmyfate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano