tracee 1.0.17 → 1.0.18

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
  SHA1:
3
- metadata.gz: ce9b9c625b013c9550d5ab0e916469aa1b737760
4
- data.tar.gz: ba9f465bc61388bcf4ac18a29be29f8d1e41cea4
3
+ metadata.gz: 2cac6156326e776850178857fc5b581cfeaec257
4
+ data.tar.gz: 03d22da54ab90666432ac4bce77fca84d6e038c6
5
5
  SHA512:
6
- metadata.gz: 6a9fcf84812a5d1bd0d30f44c07df73af7f3e8abeaf023603e80673f5d1186da28a655db1495048e2efa533a69e044447f49bdd8ec7ce0b49b2d3b3715fb759b
7
- data.tar.gz: 9aa66dd31a118be858528af0e8a0df566cb161304a079c1a986c8ade2cab9108267c8af3206fd127c7ff8071d3644333c10231e8f7807aa94369b49412848869
6
+ metadata.gz: e4ab84df3390b8490636cca136fd53b9db5e860f8be280565d12ee80acc4e4b4eca2fc2329732f88f98ffbd6accf8cb250bb705fd6a119164907caa9121b517b
7
+ data.tar.gz: bbb7a39d04f1d3532b00bf02d5059f9cc95c106a7cce3d03cc0f39d181462f486ab12eb51eaa8b8aeb47113e545aa489e578a7fca0b347248a7c75f2eb36f274
@@ -13,7 +13,7 @@ module Tracee
13
13
  logger.fatal message
14
14
 
15
15
  frames = @error_page.backtrace_frames # original definition
16
- frames = frames.map(&:to_s).reject {|line| line =~ IGNORE_RE}
16
+ frames = frames.map(&:to_s) # .reject {|line| line =~ IGNORE_RE}
17
17
  frames = Stack::BaseDecorator.(frames, paint_code_line: :greenish)
18
18
  frames.each do |frame|
19
19
  if frame =~ /^[-\w]+ \(\d+\.[\w\.]+\) /
@@ -12,8 +12,11 @@ module Tracee::Preprocessors
12
12
 
13
13
  def initialize(color_map=COLOR_MAP)
14
14
  @color_map = color_map
15
- exception_classes = Exception.descendants
16
- @exception_classes_re = Exception.descendants.map(&:name).join '|'
15
+ exception_classes = []
16
+ ObjectSpace.each_object(Exception.singleton_class) do |k|
17
+ exception_classes.unshift k unless k == self
18
+ end
19
+ @exception_classes_re = exception_classes.map(&:name).join '|'
17
20
  end
18
21
 
19
22
  def call(msg_level, datetime, progname, msg, caller_slice=[])
@@ -1,3 +1,3 @@
1
1
  module Tracee
2
- VERSION = "1.0.17"
2
+ VERSION = "1.0.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler