slackistrano 0.1.3 → 0.1.4
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 +2 -2
- 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: d58d90d84b9afb75ad4d9f823cc7aaa5a70c6f2a
|
4
|
+
data.tar.gz: e60fff0f076080afa0b6f45cec21574692fd5f7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db7ce926a979e201219dbb021e5335c3396feeeb6f280318385ca98bec7ce749be8beb74cf37be979a39b1c820fef5ab23e1207c35d8600b6c8521d7a4851a8
|
7
|
+
data.tar.gz: 7292420d05d6d461984c502fe90c5b3f4d2393930c6343249d57accd9a0c88dba8a73d10c290c212ce00e863e49dbadbb1efa93f6eb3a62f52620468dcab0009
|
data/lib/slackistrano/version.rb
CHANGED
data/lib/slackistrano.rb
CHANGED
@@ -23,7 +23,7 @@ module Slackistrano
|
|
23
23
|
#
|
24
24
|
#
|
25
25
|
#
|
26
|
-
def self.post_as_slackbot(team: nil, token: nil, webhook:
|
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
29
|
Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
|
@@ -34,7 +34,7 @@ module Slackistrano
|
|
34
34
|
#
|
35
35
|
#
|
36
36
|
#
|
37
|
-
def self.post_as_webhook(team: nil, token: nil, webhook:
|
37
|
+
def self.post_as_webhook(team: nil, token: nil, webhook: nil, payload: {})
|
38
38
|
params = {'payload' => payload.to_json}
|
39
39
|
|
40
40
|
if webhook.nil?
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hallstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|