slack_webhooks 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -0
- data/lib/slack_webhooks/version.rb +1 -1
- data/lib/slack_webhooks.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15d5c765a0ecab00e3d90bc35416ad048f5702b0
|
4
|
+
data.tar.gz: fe1250c22499b39b5fc7f108ed5ede76fb7670f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 029e116cfa0e6343901f2b18f6ed5ced4d7e1699133f7e8ff3b2959235a694e386272d0aa4ec1c982276a0fe55126d7a8573c9066180e9539e80902f3f01cfd9
|
7
|
+
data.tar.gz: 4a1189227edc118fa37da1ba4556793c7a8b13b917ea16b7d4ff2cdb17b806dfb7115d247c10efd34c407d1c85f0c31c6e5bf7e94e457dff2454543123089012
|
data/README.md
CHANGED
@@ -2,3 +2,23 @@ This gem helps dealing with Slack Webhooks, both outgoing and incoming. Incoming
|
|
2
2
|
posted body and allow you to access the values as well as make it easy to send a response back to the
|
3
3
|
right Slack channel.
|
4
4
|
|
5
|
+
Basic usage is:
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
require 'slack_webhooks'
|
9
|
+
|
10
|
+
TODO: Get the slack_payload here. If you're running as a BOT server, parse it from the http post.
|
11
|
+
|
12
|
+
sh = SlackWebhooks::Hook.new('hellobot', slack_payload, webhook_url)
|
13
|
+
text = "Hello #{sh.user_name}!"
|
14
|
+
sh.send(text)
|
15
|
+
```
|
16
|
+
|
17
|
+
See here for some usage examples: https://github.com/treeder/slackbots
|
18
|
+
|
19
|
+
## Building
|
20
|
+
|
21
|
+
```sh
|
22
|
+
gem build slack_webhooks.gemspec
|
23
|
+
gem push slack_webhooks
|
24
|
+
```
|
data/lib/slack_webhooks.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_webhooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-notifier
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: 1.3.6
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.
|
60
|
+
rubygems_version: 2.5.1
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Helper for slack webhooks
|