edi 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/edi/version.rb +1 -1
- data/lib/edi/websocket/client.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115889fc7b65a02c8341077c1003ffd818b4dcb5
|
4
|
+
data.tar.gz: 872d49ffebb947c9921daa3814f782374a858c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2fe61c381cb84be71a2d268f89c3af757c8637f61fdda68e2c9ae9391751073561adffd0ccaf0b7c62b56e60c2523c27ade9a50dfa652a10fc21d5d2f92722
|
7
|
+
data.tar.gz: 6f8d71732ab8fd081570e7656793cbd9841d0a9798faf12722942ce0adfa627e2114020ed6113df7c2ba84d3dcaca446a0bad117d7463e448bde401111289f97
|
data/lib/edi/version.rb
CHANGED
data/lib/edi/websocket/client.rb
CHANGED
@@ -11,8 +11,10 @@ module Websocket
|
|
11
11
|
|
12
12
|
def connect
|
13
13
|
connection = EDI.get("https://slack.com/api/rtm.start?token=#{EDI.bot_token}").response
|
14
|
-
connection["channels"]
|
15
|
-
|
14
|
+
if connection["channels"]
|
15
|
+
connection["channels"].each do |c|
|
16
|
+
EDI.add_channel Slack::Channel.new(name: c["name"], id: c["id"])
|
17
|
+
end
|
16
18
|
end
|
17
19
|
self.ws_url = connection["url"]
|
18
20
|
EM.run {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DVG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|