slackistrano 3.1.0.beta → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 896df176f220863aab32aa8e816f4b466dc9a105
4
- data.tar.gz: 2f80f45cf424c0490be715670ccea02117a33376
3
+ metadata.gz: d891ead9a14e52f513c70e7905dfa3de294d36ed
4
+ data.tar.gz: 2dec79d72b750fff77079215b7dd5b293f51fd36
5
5
  SHA512:
6
- metadata.gz: 17ca0ce1996dc7ec7b54f18d3804b949f4ff73d58a0ccae28a4124aba7d764971108296941b6d37a37eec61585a2746ae2677ea06c3867f8ee9da376cc0569a2
7
- data.tar.gz: d407a73ccec54c17c2ae891480976a24ef747b93e1953417009e3fabaa8bdf28e0259b143438349b5775a77cdf172ba058eef755b1eaeb8426bf3a4ff33f69e4
6
+ metadata.gz: 91d458c418bcd749f61c0cd800df1bdea4cf18bfd000e233efdb1e86bf180372fc85febccc75f9c2d4796e0121b5053ef3201dff41653ac50797dd96504eda0c
7
+ data.tar.gz: 33bd17a7aaa7d47ae27571058b722b060e707ff14fca3f57bb1e4fc8c721c708e1e578e36b84d7dd44873fcfb2b9b7ab3c0d2d71889bbf63ead15b0e476e4430
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Slackistrano Change Log
2
2
 
3
+ 3.1.0
4
+ -----
5
+
6
+ - An entirely new way of customizing the messages sent to Slack. See the README for details.
7
+
3
8
  3.0.0
4
9
  -----
5
10
 
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.beta. You can read about 3.0.1 [here](https://github.com/phallstrom/slackistrano/tree/v3.0.1).
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
- color: 'good',
119
- title: "Application Deployed",
120
- fields: [
121
- {title: "Project", value: application, short: true},
122
- {title: "Environment", value: stage, short: true},
123
- {title: "Deployer", value: deployer, short: true},
124
- {title: "Time", value: elapsed_time, short: true},
125
- ],
126
- fallback: super[:text],
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 we could have simply not
131
- # redefined this method at all.
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
  ```
@@ -1,3 +1,3 @@
1
1
  module Slackistrano
2
- VERSION = '3.1.0.beta'
2
+ VERSION = '3.1.0'
3
3
  end
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.beta
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-07-24 00:00:00.000000000 Z
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: 1.3.1
123
+ version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.0.14.1
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: