rservicebus-beanstalk-webadmin 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rservicebus-beanstalk-webadmin.rb +11 -9
- 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: 82f22909774063aff2f3f3ad41ba8e33913d1e9f
|
4
|
+
data.tar.gz: 7288d316c1e3c2e4979ccf3c36c79c6917636540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50fea6dd1b206d6b06658f7dce18b966b106ab2776a45327ca7c41177dce91d5b3fd587bb903ae7f6e41f4cdb7faad7269dcb5a8c562b27969ee207cf8f75863
|
7
|
+
data.tar.gz: 8e5fc658f92a8cd64f33acc100774697d8f234b06b66e2b8d6800a2d651ef81cc7ce8bba1d0163d72d2f1dc49f9c9caaac4718877ba64c7fceb6105c086772dc
|
@@ -27,6 +27,7 @@ def convert_rservicebus2_msg_to_hash(idx, body)
|
|
27
27
|
hash = Hash['idx', idx,
|
28
28
|
'msg_id', msg_wrapper.msg_id,
|
29
29
|
'return_address', msg_wrapper.return_address,
|
30
|
+
'body', body,
|
30
31
|
'error_list', []]
|
31
32
|
|
32
33
|
msg_wrapper.error_list.each do |e|
|
@@ -42,20 +43,21 @@ def convert_rservicebus2_msg_to_hash(idx, body)
|
|
42
43
|
end
|
43
44
|
|
44
45
|
def convert_rservicebus_msg_to_hash(idx, body)
|
45
|
-
require '
|
46
|
+
require 'rservicebus'
|
46
47
|
msg_wrapper = YAML.load(body)
|
47
48
|
|
48
49
|
hash = Hash['idx', idx,
|
49
|
-
'msg_id', msg_wrapper.
|
50
|
-
'return_address', msg_wrapper.
|
50
|
+
'msg_id', msg_wrapper.msgId,
|
51
|
+
'return_address', msg_wrapper.returnAddress,
|
52
|
+
'body', body,
|
51
53
|
'error_list', []]
|
52
54
|
|
53
|
-
msg_wrapper.error_list.each do |e|
|
54
|
-
h = Hash['occurredat', e.occurredat,
|
55
|
-
'source_queue', e.source_queue,
|
56
|
-
'error_msg', e.error_msg]
|
57
|
-
hash['error_list'] << h
|
58
|
-
end
|
55
|
+
# msg_wrapper.error_list.each do |e|
|
56
|
+
# h = Hash['occurredat', e.occurredat,
|
57
|
+
# 'source_queue', e.source_queue,
|
58
|
+
# 'error_msg', e.error_msg]
|
59
|
+
# hash['error_list'] << h
|
60
|
+
# end
|
59
61
|
|
60
62
|
hash['name'] = body.match('ruby/object:([A-Za-z0-9_:]*?)[^A-Za-z0-9_:]',
|
61
63
|
'-- !ruby/object:RServiceBus2::Message'.length)[1]
|