fastbeans 0.4.2 → 0.4.3

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
  !binary "U0hBMQ==":
3
- metadata.gz: 27bd3839dd17d18030d38715ebd1d273cdf57622
4
- data.tar.gz: cfb487c0a5723a0c5768d2fc008cce75ea5fc9b3
3
+ metadata.gz: ab341c73978b21a62e372c3e23da95d72e389dfa
4
+ data.tar.gz: 0db338be50a9bafbdc46aba5be3327fb45552ba4
5
5
  !binary "U0hBNTEy":
6
- metadata.gz: e85a497570e1311550c0f0a9e95eaa7adae175f1051b5ff107e6a0bf5dc1a0bb94e1d132e812c2dc12f282783132852dca9f9627045eda6564f3ac599e7d4b05
7
- data.tar.gz: d56d7b3db30810cf6d67f9c6ea148722c8670767068823fcdd5402cb8e260748b783edd88a24b6ed49309a667789fe077fc070a8673d32b1827c560f25fe40dd
6
+ metadata.gz: a9dd4a29b0c1d3d9c43c1444a6181c8fab0bd28aa9c12f37cf4895d06349179cbf4eb14a6b866df79e8385ed6079164a60d8d5226c66563a1cd6edaa8f55ba16
7
+ data.tar.gz: 29c1ecd44b3a3b99fe33ca62ee1a3554c04a4788f74845967c462f7db334d4a4ea92f7a367b11d714d75faeadaeba90e7621b9e679de4ba9e80bb62b52dae4e5
@@ -3,20 +3,12 @@ module Fastbeans
3
3
  class RPCException < StandardError
4
4
  attr_accessor :orig_exc
5
5
 
6
- def initialize(msg, backtrace=nil)
6
+ def initialize(msg, java_backtrace=nil)
7
7
  super(msg)
8
- @backtrace = backtrace
9
- end
10
-
11
- def backtrace
12
- if @backtrace
13
- if @backtrace.is_a?(String)
14
- @backtrace.split(/\n/).map(&:strip)
15
- else
16
- @backtrace
17
- end
8
+ @java_backtrace_arr = if java_backtrace.is_a?(String)
9
+ java_backtrace.split(/\n/).map(&:strip)
18
10
  else
19
- super
11
+ []
20
12
  end
21
13
  end
22
14
  end
@@ -25,7 +17,11 @@ module Fastbeans
25
17
  class RemoteException < Fastbeans::RPCException; end
26
18
  class RemoteConnectionFailed < Fastbeans::RPCException; end
27
19
  class RemoteConnectionDead < Fastbeans::RPCException; end
28
- class AutogeneratedException < Fastbeans::RPCException; end
20
+ class AutogeneratedException < Fastbeans::RPCException
21
+ def backtrace
22
+ [@java_backtrace_arr, super].flatten.compact
23
+ end
24
+ end
29
25
  class ResponseSignatureMismatch < RemoteConnectionFailed; end
30
26
  class ResponseReadTimeout < RemoteCallFailed; end
31
27
 
@@ -1,3 +1,3 @@
1
1
  module Fastbeans
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastbeans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Sabanin