hc_slack_bot 0.0.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/hc_slack_bot.rb +13 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 13767da6c8e3cea05ea1b2f3264fcbd9caec10c451bfce6300063e6f230c6792
4
+ data.tar.gz: 9d2fb1b7a14b01b050ce1a064d4e7d21daf6b5d060a44ff50b564a1af41c35f3
5
+ SHA512:
6
+ metadata.gz: d78bac6f5eea544b736e21ff9ad0037811fe4c51fd29564e6ea8738e797e6012c9c44cf36cb8323ccf7e94e950dfe89cf356b2b75ba389bd9817181c10ccf160
7
+ data.tar.gz: 62f870e07cf4321ee37eacd721187524b299781bddd7f59d4ece1f374dcf014dc9066c6c57a278158e925ee37e6bc434dc6c69ada623e6a9991ee04380ba5ae3
@@ -0,0 +1,13 @@
1
+ require 'uri'
2
+ require 'net/http'
3
+ require 'json'
4
+
5
+ class HCSlackBot
6
+
7
+ def self.speak(payload)
8
+ uri = URI(ENV['SLACK_URL'])
9
+ res = Net::HTTP.post_form(uri, { payload: payload.to_json })
10
+
11
+ return res.body
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hc_slack_bot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Austin Wilson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Talk to us! We are really cool!
14
+ email: axwilson2@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/hc_slack_bot.rb
20
+ homepage: https://rubygems.org/gems/hc_slack_bot
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.2.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Talk to the HC slack app!
43
+ test_files: []