capistrano-slackify 2.10.2 → 2.10.3

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
  SHA256:
3
- metadata.gz: fe6b8146da9d52905a9f6392bcb7f9c2b09c568d1841ca8f0c680b65d517c930
4
- data.tar.gz: a7ee4da86d26b52d84c170d2cf8b51708e1dd5fab16c3bd486fd798ccc195822
3
+ metadata.gz: 765f1466eda8ffcb6bd978511335d28944ed95f3d8c1300f48f1dde9b25ac773
4
+ data.tar.gz: 3f6fee62133254a5b74db63d6c6af2bd28a273e28a723975a8d89ef4b5f2dcdc
5
5
  SHA512:
6
- metadata.gz: f96ae4730499f985a7440f33894e8fa07ab06511f46377d34a4cdc8180a5a1906d1d14eb6cd69615d0e0ad672a344a79fad7c4f04dd0a4ac68b1f587ab524401
7
- data.tar.gz: 9f8c3fbb557711adc5f33b6179092faba9e7b622a413fe5c1c0abd8b75ad80a43fbbe17dfd31718df1f75c7ab0f94a045d088d2ea1c8d5d3d6d92cbb2610226f
6
+ metadata.gz: dc399043b6adf35bf09e1945678ef5f6a2fcbcfd54fe26730e8a66cf82d4e3028000d58a7fcd9e226e980a9bbf855455db4207baac0255ed8e47a2ebb6c94c6d
7
+ data.tar.gz: 6111a4d68c9ff651ae7ea33640e7fef4f5d5f3ef61d02a877c6c27052cefd5041a568b0ead2cbdb01dbd3841e2e9d314c0e46ca864bbf66ee831a03aa8dd511d
@@ -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.2'
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}
@@ -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
- "'payload=#{payload(channel)}'"
17
+ Shellwords.escape("payload=#{payload(channel)}")
17
18
  end
18
19
 
19
20
  def payload(channel)
@@ -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
- %{'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
+ 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.2
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: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano