pipe_rpc 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/lib/pipe_rpc/hub_request_error.rb +3 -3
- data/lib/pipe_rpc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00b9fd7747019296e0f38f844c0b3ccdfa72145d
|
4
|
+
data.tar.gz: ae9824a1ae407666e8f184a11628943170d46e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66262aef176a1bcd7e4d4cdca855de91539ae01c60faee5ad0a4503bd0508e5cc4dfdf7fe4b1234fcad5409dd5d482d6143a242c52dfde9a4270aa921a746199
|
7
|
+
data.tar.gz: 900ecdb81c9e023da3bf7219085122a1b5f68191205da0ce956332dedcd43999c72d574173167409cd77f9c7a3b7d6f0423cf2d0e456796a284b9e6761183876
|
@@ -10,8 +10,8 @@ module PipeRpc
|
|
10
10
|
def code
|
11
11
|
case @error
|
12
12
|
when NoServerError then -32604
|
13
|
-
when method_call_error? && NoMethodError then -32601
|
14
|
-
when method_call_error? && ArgumentError then -32602
|
13
|
+
when method_call_error? && ::NoMethodError then -32601
|
14
|
+
when method_call_error? && ::ArgumentError then -32602
|
15
15
|
when InternalError then -32605
|
16
16
|
else -32603
|
17
17
|
end
|
@@ -27,7 +27,7 @@ module PipeRpc
|
|
27
27
|
# method definition and not from where it is called as first location
|
28
28
|
# in the backtrace. To normalize argument and no method errors,
|
29
29
|
# remove the first location for argument errors.
|
30
|
-
backtrace.shift if @error.is_a?(ArgumentError) and not Object.const_defined?(:MRUBY_VERSION)
|
30
|
+
backtrace.shift if @error.is_a?(::ArgumentError) and not Object.const_defined?(:MRUBY_VERSION)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
data/lib/pipe_rpc/version.rb
CHANGED