jstp 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module JSTP
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
@@ -17,7 +17,12 @@ module Reader
17
17
  @server = TCPServer.open @source.port.inbound
18
18
  loop {
19
19
  Thread.start(@server.accept) { |client|
20
- ::JSTP::Engine.instance.dispatch JSON.parse client.gets
20
+ begin
21
+ ::JSTP::Engine.instance.dispatch JSON.parse client.gets
22
+ rescue Exception => e
23
+ puts "\e[31m#{e.message}\e[0m"
24
+ puts e.backtrace
25
+ end
21
26
  }
22
27
  }
23
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: