jstp 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: