hack_night/solution/prob-6.rb in asir-1.2.1 vs hack_night/solution/prob-6.rb in asir-1.2.2
- old
+ new
@@ -6,9 +6,11 @@
require 'asir/coder/marshal'
require 'math_service'
MathService.send(:include, ASIR::Client)
+Process.exit!(0) if RUBY_PLATFORM =~ /java/i
+
port = 3001
begin
t = ASIR::Transport::Webrick.new(:uri => "http://localhost:#{port}/")
t._log_enabled = true
c = t.encoder = ASIR::Coder::Marshal.new