capistrano-slackify 2.10.1 → 2.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/README.md +1 -1
- data/capistrano-slackify.gemspec +1 -1
- data/lib/capistrano/tasks/slackify.cap +1 -1
- data/spec/lib/slackify_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe6b8146da9d52905a9f6392bcb7f9c2b09c568d1841ca8f0c680b65d517c930
|
4
|
+
data.tar.gz: a7ee4da86d26b52d84c170d2cf8b51708e1dd5fab16c3bd486fd798ccc195822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f96ae4730499f985a7440f33894e8fa07ab06511f46377d34a4cdc8180a5a1906d1d14eb6cd69615d0e0ad672a344a79fad7c4f04dd0a4ac68b1f587ab524401
|
7
|
+
data.tar.gz: 9f8c3fbb557711adc5f33b6179092faba9e7b622a413fe5c1c0abd8b75ad80a43fbbe17dfd31718df1f75c7ab0f94a045d088d2ea1c8d5d3d6d92cbb2610226f
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -104,7 +104,7 @@ You can setup custom fields by defining a mapping for how to display them in sla
|
|
104
104
|
|
105
105
|
To configure the way slack parses your message (see 'Parsing Modes' at https://api.slack.com/docs/formatting) use the `:slack_parse` setting:
|
106
106
|
|
107
|
-
set :slack_parse, 'none' # available options: '
|
107
|
+
set :slack_parse, 'none' # available options: 'none', 'full'
|
108
108
|
|
109
109
|
### Copyright
|
110
110
|
|
data/capistrano-slackify.gemspec
CHANGED
@@ -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.10.
|
7
|
+
spec.version = '2.10.2'
|
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}
|
@@ -60,7 +60,7 @@ namespace :load do
|
|
60
60
|
set :slack_channel, ['#general']
|
61
61
|
set :slack_username, 'Capistrano'
|
62
62
|
set :slack_emoji, ':ghost:'
|
63
|
-
set :slack_parse, '
|
63
|
+
set :slack_parse, 'full'
|
64
64
|
set :slack_user, -> { local_user.to_s.strip }
|
65
65
|
set :slack_fields, ['status', 'stage', 'branch', 'revision', 'hosts']
|
66
66
|
set :slack_custom_field_mapping, {}
|
data/spec/lib/slackify_spec.rb
CHANGED
@@ -8,7 +8,7 @@ module Slackify
|
|
8
8
|
slack_channel: '#general',
|
9
9
|
slack_username: 'Capistrano',
|
10
10
|
slack_emoji: ':ghost:',
|
11
|
-
slack_parse: '
|
11
|
+
slack_parse: 'full',
|
12
12
|
slack_user: 'You',
|
13
13
|
slack_fields: ['status', 'stage', 'branch', 'revision', 'hosts', 'custom_field', 'custom_field_with_proc'],
|
14
14
|
slack_custom_field_mapping: {
|
@@ -36,7 +36,7 @@ module Slackify
|
|
36
36
|
}
|
37
37
|
|
38
38
|
let(:payload) {
|
39
|
-
%{'payload={"channel":"#general","username":"Capistrano","icon_emoji":":ghost:","parse":"
|
39
|
+
%{'payload={"channel":"#general","username":"Capistrano","icon_emoji":":ghost:","parse":"full","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},{"title":"custom title","value":"custom value","short":false},{"title":"custom title proc","value":"custom value proc","short":false}],"mrkdwn_in":["text"]}]}'}
|
40
40
|
}
|
41
41
|
|
42
42
|
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.10.
|
4
|
+
version: 2.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- seenmyfate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|