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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c2ee0ca25959853e0f4ae87f633a6851f1d1a83
4
- data.tar.gz: e9bc72f30022be1d64e783dd17a1a87c227c75e6
3
+ metadata.gz: d58d90d84b9afb75ad4d9f823cc7aaa5a70c6f2a
4
+ data.tar.gz: e60fff0f076080afa0b6f45cec21574692fd5f7c
5
5
  SHA512:
6
- metadata.gz: daf47277197435ea589ae3e3958c75c31f8ed7aa62f976d94b54c339ffaf4d5f52863dc8035180cbb2290fb3f68fce00d345b923939cf0fe31869c60ca48e69a
7
- data.tar.gz: 9758103dfaba150efecd98e85916afc24cf5a2c96d63d695fd7470047e60df907a1d3a259c41b7a5625c589ac3921a8036c284ef31253a552aa43cfce4a1e44a
6
+ metadata.gz: 3db7ce926a979e201219dbb021e5335c3396feeeb6f280318385ca98bec7ce749be8beb74cf37be979a39b1c820fef5ab23e1207c35d8600b6c8521d7a4851a8
7
+ data.tar.gz: 7292420d05d6d461984c502fe90c5b3f4d2393930c6343249d57accd9a0c88dba8a73d10c290c212ce00e863e49dbadbb1efa93f6eb3a62f52620468dcab0009
@@ -1,3 +1,3 @@
1
1
  module Slackistrano
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
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: webhook, payload: {})
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: webhook, payload: {})
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.3
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: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano