twitch-bot 2.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: b2e0942b8b6cf90e70cfec766be2664cf708f33b849bb2b59c5cc546f202e947
4
- data.tar.gz: 54af782c020710290308fe279e10d52dd5bd6dc088254ae997c257854c53f9e2
3
+ metadata.gz: b04ed5b85125452e5c58a1d4c48d308ca7d72000f09ae9768773287b242d91bf
4
+ data.tar.gz: a9251b16f1f8d67f8e3fb8f5ce8608628cb7649306adbbb60d6afa1119ced08d
5
5
  SHA512:
6
- metadata.gz: 833f91e3d01dd7b2c5fd894e026c5a62155350146df9d7e80172fc68c99961f7e6986cb4b03f53e76785d53ddbcb70dcd414b1224d03d8b50a56b0fb525fcae2
7
- data.tar.gz: 5e8bae84a2ab043e4aabb70206bb93eaf163e4bdd7711c7dde4d3977bd4100ddcff2bba905fcd68ca7ed81f5976a3346e8b42372b0c6a40f07cf31d965325bb8
6
+ metadata.gz: b831153426b24bb9af05ec085fe567c41d169e559560394a5867e95371074319c6ed1d9ea7551d52c8f74e5e6ed5ef901334e427234f19e80a1a48a24faaac9d
7
+ data.tar.gz: 2fb72af43444bf1ec0eeb978690150da15c9b8a1527db16423da0bde6e4a98a06df2ea2bf0834563ec00da839289960cb7ba9557733e7ab3ee3bb1283c9b14d8
@@ -100,7 +100,7 @@ module Twitch
100
100
  connect
101
101
  input_thread.join
102
102
  messages_thread.join
103
- logger.debug "Joined"
103
+ logger.info "Client ended."
104
104
  end
105
105
 
106
106
  def join(channel)
@@ -185,9 +185,7 @@ module Twitch
185
185
  def start_input_thread
186
186
  @input_thread = Thread.start do
187
187
  while running
188
- line = read_socket
189
- logger.debug "> #{line}"
190
- irc_message = IrcMessage.new(line)
188
+ irc_message = IrcMessage.new(read_socket)
191
189
  trigger(Twitch::Bot::MessageParser.new(irc_message).message)
192
190
  end
193
191
 
@@ -202,6 +200,7 @@ module Twitch
202
200
  while line.empty?
203
201
  line = socket.gets&.chomp
204
202
  end
203
+ logger.debug "> #{line}"
205
204
  line
206
205
  end
207
206
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Twitch
4
4
  module Bot
5
- VERSION = "2.0.0"
5
+ VERSION = "2.0.1"
6
6
  end
7
7
  end
@@ -25,7 +25,6 @@ RSpec.describe Twitch::Bot::Message::UserMessage do
25
25
  user: "tester",
26
26
  )
27
27
 
28
- binding.pry
29
28
  expect(message.command?).to be false
30
29
  end
31
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitch-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jochen Lillich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-15 00:00:00.000000000 Z
11
+ date: 2020-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler