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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08b997492f12ff6c87eb19a0a742646d988bc4fb
4
- data.tar.gz: 8e4e80006cefa0a6e470dfab70d39353d4435224
3
+ metadata.gz: 115889fc7b65a02c8341077c1003ffd818b4dcb5
4
+ data.tar.gz: 872d49ffebb947c9921daa3814f782374a858c49
5
5
  SHA512:
6
- metadata.gz: cd1c0287699ba77721ea7d8e20d5f8ef3d297b691f562c48ffed6b5dee28c49e78c6c2109074a91c2b880ecffa6bc15f57d478d57b998f8041d3a53711406305
7
- data.tar.gz: 53a05c1bce8eb200428663dc5beaea7bf3228fb0ac7ef020620d67703701dba23e3fb87b9be2df5e02d4b3f4cb91ac9e479238963f0614eab61fb46d96f47c42
6
+ metadata.gz: cb2fe61c381cb84be71a2d268f89c3af757c8637f61fdda68e2c9ae9391751073561adffd0ccaf0b7c62b56e60c2523c27ade9a50dfa652a10fc21d5d2f92722
7
+ data.tar.gz: 6f8d71732ab8fd081570e7656793cbd9841d0a9798faf12722942ce0adfa627e2114020ed6113df7c2ba84d3dcaca446a0bad117d7463e448bde401111289f97
@@ -1,3 +1,3 @@
1
1
  module EDI
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -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"].each do |c|
15
- EDI.add_channel Slack::Channel.new(name: c["name"], id: c["id"])
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler