rookout 0.1.43 → 0.1.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rookout/augs/locations/location.rb +1 -1
- data/lib/rookout/com_ws/envelope_wrapper.rb +3 -1
- data/lib/rookout/commit.rb +1 -1
- data/lib/rookout/processor/namespace_serializer2.rb +9 -1
- data/lib/rookout/processor/namespaces/ruby_object_namespace.rb +12 -12
- data/lib/rookout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 444c8c92029ebc2363f554f4fec406a1d7f6b3f90e54e846bc0768e6fbe5c996
|
4
|
+
data.tar.gz: 827026de861517076758522a6463e309b25ead5571a5ae46c66998aa174fba8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b656285e0ce9cb3ce0a02baaaa056b27e3e590b0263e899ae1be3955bbd49036fc358e09a57f9f57074fac2b14f71d4e471f6793b07b2c663fb65a7610656b73
|
7
|
+
data.tar.gz: 33ad61a0b53c7912f8b4529fceeb00c88bb6f38c4b85a523b05b00d8832088eb3e94647cd5b6d1960deedfb12931d162e69eb63b8ce3d45723e558f41ab17c34
|
@@ -29,7 +29,9 @@ class Variant2EnvelopeWrapper < EnvelopeWrapperBase
|
|
29
29
|
report_id: report_id
|
30
30
|
@serializer = Rookout::Processor::NamespaceSerializer2.new
|
31
31
|
@aug_report_message.arguments2 = @serializer.dump arguments, true
|
32
|
-
@serializer.string_cache.each
|
32
|
+
@serializer.string_cache.each do |key, value|
|
33
|
+
@aug_report_message.strings_cache[key.encode "UTF-8", invalid: :replace, undef: :replace, replace: "?"] = value
|
34
|
+
end
|
33
35
|
@envelope = wrap_in_envelope @aug_report_message
|
34
36
|
@aug_report_message = nil
|
35
37
|
end
|
data/lib/rookout/commit.rb
CHANGED
@@ -16,6 +16,13 @@ module Rookout
|
|
16
16
|
MASH = nil
|
17
17
|
end
|
18
18
|
|
19
|
+
begin
|
20
|
+
require "active_support/core_ext/hash/indifferent_access"
|
21
|
+
HASH_WITH_INDIFFERENT_ACCESS = ActiveSupport::HashWithIndifferentAccess
|
22
|
+
rescue LoadError
|
23
|
+
HASH_WITH_INDIFFERENT_ACCESS = nil
|
24
|
+
end
|
25
|
+
|
19
26
|
def initialize
|
20
27
|
@string_cache = {}
|
21
28
|
@estimated_pending_bytes = 0
|
@@ -105,7 +112,8 @@ module Rookout
|
|
105
112
|
dump_time obj, variant
|
106
113
|
elsif obj.class == Array
|
107
114
|
dump_array obj, variant, current_depth, config, log_object_errors
|
108
|
-
elsif obj.class == Hash || (!MASH.nil? && obj.is_a?(MASH))
|
115
|
+
elsif obj.class == Hash || (!MASH.nil? && obj.is_a?(MASH)) ||
|
116
|
+
(!HASH_WITH_INDIFFERENT_ACCESS.nil? && obj.is_a?(HASH_WITH_INDIFFERENT_ACCESS))
|
109
117
|
dump_hash obj, variant, current_depth, config, log_object_errors
|
110
118
|
elsif obj.is_a? Exception
|
111
119
|
dump_exception obj, variant, current_depth, config, log_object_errors
|
@@ -91,23 +91,23 @@ module Rookout
|
|
91
91
|
def dump log_object_errors
|
92
92
|
dump_raw_object @obj, 0, @dump_config, log_object_errors
|
93
93
|
end
|
94
|
-
end
|
95
94
|
|
96
|
-
|
95
|
+
private
|
97
96
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
97
|
+
def read_key_as_int key
|
98
|
+
key_int = key.to_i
|
99
|
+
return RubyObjectNamespace.new @obj[key_int] if key_int >= 0 && key_int < @obj.length
|
100
|
+
raise Exceptions::RookKeyNotFound, key
|
101
|
+
end
|
103
102
|
|
104
|
-
|
105
|
-
|
106
|
-
|
103
|
+
def read_key_from_hash key
|
104
|
+
return RubyObjectNamespace.new @obj[key] if @obj.key? key
|
105
|
+
return RubyObjectNamespace.new @obj[key.to_sym] if @obj.key? key.to_s.to_sym
|
107
106
|
|
108
|
-
|
107
|
+
@obj.each { |it, value| return RubyObjectNamespace.new value if it.to_s == key }
|
109
108
|
|
110
|
-
|
109
|
+
raise Exceptions::RookKeyNotFound, key
|
110
|
+
end
|
111
111
|
end
|
112
112
|
end
|
113
113
|
end
|
data/lib/rookout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rookout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liran Haimovitch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|