slackistrano 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slackistrano/version.rb +1 -1
- data/lib/slackistrano.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a8731a8a9a82bfb30e37575ceda1c33236a3104
|
4
|
+
data.tar.gz: 255d1dba2c55f8fabe6e3d8d318b46e22c1270d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c933eb679cb0886d404bddc7019224dedd22f5a8a8732ec7dac067c4f195f8799959d26811cfb5ef984f0e2a737cb063092278fdacc18c5e5838727d528933d
|
7
|
+
data.tar.gz: 5f31c28b4a946d680ead0d722ca92f4fbebc6daa2d94199356228c563add106f0a1bbffad5953bfb092cfed9be4f1a477f10a21002cad110e4c1154ffc95bd4c
|
data/lib/slackistrano/version.rb
CHANGED
data/lib/slackistrano.rb
CHANGED
@@ -26,8 +26,10 @@ module Slackistrano
|
|
26
26
|
def self.post_as_slackbot(team: nil, token: nil, webhook: nil, payload: {})
|
27
27
|
uri = URI(URI.encode("https://#{team}.slack.com/services/hooks/slackbot?token=#{token}&channel=#{payload[:channel]}"))
|
28
28
|
|
29
|
+
text = payload[:attachments].collect { |a| a[:text] }.join("\n")
|
30
|
+
|
29
31
|
Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
|
30
|
-
http.request_post uri.request_uri,
|
32
|
+
http.request_post uri.request_uri, text
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slackistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hallstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|