capistrano-slackify 2.10.2 → 2.10.3
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 +4 -4
- data/capistrano-slackify.gemspec +1 -1
- data/lib/slackify.rb +2 -1
- data/spec/lib/slackify_spec.rb +2 -1
- 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: 765f1466eda8ffcb6bd978511335d28944ed95f3d8c1300f48f1dde9b25ac773
|
4
|
+
data.tar.gz: 3f6fee62133254a5b74db63d6c6af2bd28a273e28a723975a8d89ef4b5f2dcdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc399043b6adf35bf09e1945678ef5f6a2fcbcfd54fe26730e8a66cf82d4e3028000d58a7fcd9e226e980a9bbf855455db4207baac0255ed8e47a2ebb6c94c6d
|
7
|
+
data.tar.gz: 6111a4d68c9ff651ae7ea33640e7fef4f5d5f3ef61d02a877c6c27052cefd5041a568b0ead2cbdb01dbd3841e2e9d314c0e46ca864bbf66ee831a03aa8dd511d
|
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.3'
|
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}
|
data/lib/slackify.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'multi_json'
|
2
|
+
require 'shellwords'
|
2
3
|
|
3
4
|
module Slackify
|
4
5
|
class Payload
|
@@ -13,7 +14,7 @@ module Slackify
|
|
13
14
|
end
|
14
15
|
|
15
16
|
def build(channel)
|
16
|
-
"
|
17
|
+
Shellwords.escape("payload=#{payload(channel)}")
|
17
18
|
end
|
18
19
|
|
19
20
|
def payload(channel)
|
data/spec/lib/slackify_spec.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'shellwords'
|
2
3
|
|
3
4
|
module Slackify
|
4
5
|
describe Payload do
|
@@ -36,7 +37,7 @@ module Slackify
|
|
36
37
|
}
|
37
38
|
|
38
39
|
let(:payload) {
|
39
|
-
%{
|
40
|
+
Shellwords.escape(%{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
41
|
}
|
41
42
|
|
42
43
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- seenmyfate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|