ruboty-slack_rtm 2.5.0 → 2.5.1

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: ea4fa52fb8d644e498497a86b3f1775867348d72
4
- data.tar.gz: aaae2b0b5086cb1be0154bc42945a1937d3859e6
3
+ metadata.gz: b7a15a38ce2fc91e13fa83dd21d3a9edd51ccceb
4
+ data.tar.gz: 62768ecf0d8883cd1ec56cc1ea1caff5f0cfd700
5
5
  SHA512:
6
- metadata.gz: d6894ffc5c32050fd0873c973e621cfbc07accb99c1e2f3e8f72b9824988a3e87ae3591a1f97894411461eaf541d12301be1b64131d4f26eabcf8dbc5d00d151
7
- data.tar.gz: 94cd6b7d5f37525ef536db06cd93208198f47b74ef1e661a6b760de0eebc9c1d0f1b0bf457ff6812cb82b1a218dacc97360b87017e46bf665664919c37d9c4aa
6
+ metadata.gz: 44ea15a214938e23448bf4e4c2956480429ca78f1b4ba8b61df23e95566f54d60d7278840f6e5c3e817856dc9046ba8c501790fadd6c923ec0e469d566850bea
7
+ data.tar.gz: 9508a326e0ccd2ec33c74fd20f26936ef08889a1e80ac033703019e191773d54f8da4f2b0e577dce1e3e68b68b2c70f5f7d8e39c4cf71119ae31c4da6c1bbac9
@@ -52,9 +52,12 @@ module Ruboty
52
52
  client.on(:error) do |err|
53
53
  Ruboty.logger.error("#{err.class}: #{err.message}\n#{err.backtrace.join("\n")}")
54
54
  end
55
+ queue = @queue
55
56
  client.on(:close) do
56
57
  Ruboty.logger.info('Disconnected')
57
- @queue.enq(CONNECTION_CLOSED)
58
+ # XXX: This block is called via BasicObject#instance_exec from
59
+ # EventEmitter, so `@queue` isn't visible here.
60
+ queue.enq(CONNECTION_CLOSED)
58
61
  end
59
62
  end
60
63
  end
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module SlackRTM
3
- VERSION = '2.5.0'
3
+ VERSION = '2.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-slack_rtm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-09 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler