lita-idobata 0.2.3 → 0.2.4

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: 36c42052b763a441cc33f94e38629f7fbae469d2
4
- data.tar.gz: 55ba52535316332dae34a57961994a05d2906fef
3
+ metadata.gz: dbb4674a010bd7c6214700f517b0adc5fa8b7437
4
+ data.tar.gz: d74be035944f31efe6ef413e1cc535d07cab0af6
5
5
  SHA512:
6
- metadata.gz: 4f08f8ddbd3f0b39ff0b0d21a91b338a51e2ab3547c0feaaa7867ec1e37cb0e53a072eecdda8bb74de9b65d82a1b13ec2fa087681cb16d5cb979f6ac2ea1404a
7
- data.tar.gz: 87e6ccbcd9591319d645bb1539d9f4e55fee88650b4eee9c06cb226cf3bcbca1a293dcacc948fb4ace2ea0f3614d2c2377d854fd847d7ee713bd360840a36fd0
6
+ metadata.gz: 2b539faef10cb76a218304afb10648829649558f063c9c6ddcf2c32026d3bfe5c8fdda4239a7d9e68baba3ae7b6a7be030f845014540d7352c347c0a6fc981fd
7
+ data.tar.gz: 72297d51941a535c3825c53fc550e67e105b09ad607f98c287b8af676c4190cf333062f1fb4c84d4777662c657df0798e7231ddb76489138cb8b36484e1e0330
@@ -34,9 +34,8 @@ module Lita
34
34
  }
35
35
  socket = PusherClient::Socket.new(@pusher_key, options)
36
36
  socket.connect(true)
37
- socket.bind('pusher:connection_established') do |data|
38
- socket_id = JSON.parse(data)['socket_id']
39
- socket.subscribe(channel_name, socket_id)
37
+ socket.bind('pusher:connection_established') do
38
+ socket.subscribe(channel_name, user_id: @bot['id'])
40
39
  end
41
40
 
42
41
  socket.bind('message:created') do |data|
@@ -1,5 +1,5 @@
1
1
  module Lita
2
2
  module Idobata
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-idobata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - fukayatsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita