slackistrano 3.1.0.beta → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +28 -17
- data/lib/slackistrano/version.rb +1 -1
- metadata +16 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d891ead9a14e52f513c70e7905dfa3de294d36ed
|
4
|
+
data.tar.gz: 2dec79d72b750fff77079215b7dd5b293f51fd36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91d458c418bcd749f61c0cd800df1bdea4cf18bfd000e233efdb1e86bf180372fc85febccc75f9c2d4796e0121b5053ef3201dff41653ac50797dd96504eda0c
|
7
|
+
data.tar.gz: 33bd17a7aaa7d47ae27571058b722b060e707ff14fca3f57bb1e4fc8c721c708e1e578e36b84d7dd44873fcfb2b9b7ab3c0d2d71889bbf63ead15b0e476e4430
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Send notifications to [Slack](https://slack.com) about [Capistrano](http://www.capistranorb.com) deployments.
|
8
8
|
|
9
|
-
**NOTE:** This README documents version 3.1.0.
|
9
|
+
**NOTE:** This README documents version >=3.1.0. You can read about 3.0.1 [here](https://github.com/phallstrom/slackistrano/tree/v3.0.1).
|
10
10
|
|
11
11
|
## Requirements
|
12
12
|
|
@@ -92,6 +92,7 @@ module Slackistrano
|
|
92
92
|
class CustomMessaging < Messaging::Base
|
93
93
|
|
94
94
|
# Send failed message to #ops. Send all other messages to default channels.
|
95
|
+
# The #ops channel must exist prior.
|
95
96
|
def channels_for(action)
|
96
97
|
if action == :failed
|
97
98
|
"#ops"
|
@@ -115,20 +116,32 @@ module Slackistrano
|
|
115
116
|
def payload_for_updated
|
116
117
|
{
|
117
118
|
attachments: [{
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
119
|
+
color: 'good',
|
120
|
+
title: 'Integrations Application Deployed :boom::bangbang:',
|
121
|
+
fields: [{
|
122
|
+
title: 'Environment',
|
123
|
+
value: stage,
|
124
|
+
short: true
|
125
|
+
}, {
|
126
|
+
title: 'Branch',
|
127
|
+
value: branch,
|
128
|
+
short: true
|
129
|
+
}, {
|
130
|
+
title: 'Deployer',
|
131
|
+
value: deployer,
|
132
|
+
short: true
|
133
|
+
}, {
|
134
|
+
title: 'Time',
|
135
|
+
value: elapsed_time,
|
136
|
+
short: true
|
137
|
+
}],
|
138
|
+
fallback: super[:text]
|
139
|
+
}]
|
140
|
+
}
|
128
141
|
end
|
129
142
|
|
130
|
-
# Default reverted message. Alternatively
|
131
|
-
#
|
143
|
+
# Default reverted message. Alternatively simply do not redefine this
|
144
|
+
# method.
|
132
145
|
def payload_for_reverted
|
133
146
|
super
|
134
147
|
end
|
@@ -137,17 +150,15 @@ module Slackistrano
|
|
137
150
|
# See https://api.slack.com/docs/message-formatting
|
138
151
|
def payload_for_failed
|
139
152
|
payload = super
|
140
|
-
payload[:text] = ":fire: #{payload[:text]}"
|
153
|
+
payload[:text] = "OMG :fire: #{payload[:text]}"
|
141
154
|
payload
|
142
155
|
end
|
143
156
|
|
144
|
-
# Override the deployer helper to pull the full name from the password
|
145
|
-
# file.
|
157
|
+
# Override the deployer helper to pull the full name from the password file.
|
146
158
|
# See https://github.com/phallstrom/slackistrano/blob/master/lib/slackistrano/messaging/helpers.rb
|
147
159
|
def deployer
|
148
160
|
Etc.getpwnam(ENV['USER']).gecos
|
149
161
|
end
|
150
|
-
|
151
162
|
end
|
152
163
|
end
|
153
164
|
```
|
data/lib/slackistrano/version.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slackistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hallstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Send notifications to Slack about Capistrano deployments.
|
@@ -73,8 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
78
|
- CHANGELOG.md
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
@@ -113,17 +113,17 @@ require_paths:
|
|
113
113
|
- lib
|
114
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 2.0.0
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- -
|
121
|
+
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Send notifications to Slack about Capistrano deployments.
|
@@ -136,4 +136,3 @@ test_files:
|
|
136
136
|
- spec/posting_to_multiple_channels_spec.rb
|
137
137
|
- spec/spec_helper.rb
|
138
138
|
- spec/task_hooks_spec.rb
|
139
|
-
has_rdoc:
|