slack_webhooks 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 001dedc9da30d97314b71dcba60db67a664d8003
4
- data.tar.gz: a222c6cd4d737b9fc4e2315f0a6f5f5238b0c2cd
3
+ metadata.gz: 15d5c765a0ecab00e3d90bc35416ad048f5702b0
4
+ data.tar.gz: fe1250c22499b39b5fc7f108ed5ede76fb7670f5
5
5
  SHA512:
6
- metadata.gz: 62b2d26acc7436f552f68791093c0471925473c3bdc305773e97355bd6f8ca12be57aaabeea21218a6734cf29b80f7cad8d0fc7e6986229e590936c44416e78d
7
- data.tar.gz: 44dbe766f927b4f383ee7db3f06566e39d81eb9d8470c63a83a219a7782ed22a0d98b2d30b176c9b31dcfa4287c6f5c5a6979e8f7775aca06c243f245220a974
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
+ ```
@@ -1,3 +1,3 @@
1
1
  module SlackWebhooks
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -22,7 +22,7 @@ module SlackWebhooks
22
22
  # puts "#{p[0]}=#{p[1]}"
23
23
  if p[0] == "command"
24
24
  self.command = p[1]
25
- puts "command=#{self.command}"
25
+ # puts "command=#{self.command}"
26
26
  end
27
27
  if p[0] == "trigger_word"
28
28
  # This is for trigger words, not slash commands
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.10
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: 2015-04-10 00:00:00.000000000 Z
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.4.2
60
+ rubygems_version: 2.5.1
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Helper for slack webhooks