edi 0.3.2 → 0.3.3

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: 39e827b8c69aef01efe12a369647629adc883431
4
- data.tar.gz: cd329899e7fa1f4b87b1828a453a125d623f9e7a
3
+ metadata.gz: 60f95ac25d1da3c08e6f9e3d3d1ee49973729fe1
4
+ data.tar.gz: 495bc28d8eb27498f9bc835141145349864533f7
5
5
  SHA512:
6
- metadata.gz: a0ec0d03778727b7d7835a2660c88b10e8adb5d4c7063bfaf0666291e70ffe5fc4f792b36b9b364acfffee4aa0e982faa5d3ea255f8752704152ba40af95faac
7
- data.tar.gz: 4631a5bd7ccc22196df0b82b63e536dc0a5a0b5a01f45c9d965faf4c6f33c690c9efbbe53efa7ef581aa4e86d953ceeb74f8f6c15aa195e78c5f00454a1f8906
6
+ metadata.gz: 5d285bacb99c751a777011d9a9afea1ea0826e50269c323e7a2bfe0468d64a2357fb9926e11bf325a82c96bae76d79c7c607849e60e146c59f3bec443aab0347
7
+ data.tar.gz: 39456f603dc59df077d2b4a1e2e5f65dfe7dbeb7d5f343f95b4188a41f6a0de5534c2c97c1648a04e1ed2d553648d46b708f57be19208d427825e723ab7dd2b3
@@ -22,6 +22,9 @@ module EDI
22
22
 
23
23
  # Postable Configuration
24
24
  config.default_channel = "#general"
25
+
26
+ # Bot Token Variable
27
+ config.bot_token = ENV["SLACK_EDI_TOKEN"]
25
28
  end
26
29
  end
27
30
  end
@@ -1,3 +1,3 @@
1
1
  module EDI
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -10,7 +10,7 @@ module Websocket
10
10
  end
11
11
 
12
12
  def connect
13
- self.ws_url = EDI.get("https://slack.com/api/rtm.start?token=#{ENV["SLACK_TOKEN"]}").response["url"]
13
+ self.ws_url = EDI.get("https://slack.com/api/rtm.start?token=#{EDI.bot_token}").response["url"]
14
14
  EM.run {
15
15
 
16
16
  self.client = Faye::WebSocket::Client.new(ws_url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DVG