tracia 0.2.5 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/tracia/gem_paths.rb +1 -3
- data/lib/tracia/version.rb +1 -1
- data/lib/tracia.rb +2 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc2d81fead9f93a65e43c6f12eab0c2c780944336bcc46a3b4b1954db607b85c
|
4
|
+
data.tar.gz: 07f39b8b528e0eaf17e68e7fb25ccc3643deb83c47cc310962faab616539ff62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ab7c66bd930c473c70236ac5da77eded3bd28747d68f30d4b132b2bb2e14f2ce834d6270f20cb9f7cc3cb0c6402779ee22dc86f834a0b30797a8ee0d227e54
|
7
|
+
data.tar.gz: 1fa5ac6f5a4cf003b850407d2b67d0f22f331550e014d8a5f51b8ee07b987c0d665eaa6c9b81c2090c11060df16aa63aee2e57b2b771d49145bb3bb2ba05fa0a
|
data/README.md
CHANGED
@@ -45,9 +45,9 @@ end
|
|
45
45
|
By default, Tracia writes result to STDOUT, you can set it somewhere else
|
46
46
|
|
47
47
|
```ruby
|
48
|
-
file = File.new('/path/to/log.
|
48
|
+
file = File.new('/path/to/log.html', 'w+')
|
49
49
|
|
50
|
-
Tracia.start(logger: Tracia::DefaultLogger.new(out: file)) do
|
50
|
+
Tracia.start(logger: Tracia::DefaultLogger.new(out: file, html: true)) do
|
51
51
|
# ...
|
52
52
|
end
|
53
53
|
```
|
data/lib/tracia/gem_paths.rb
CHANGED
@@ -4,9 +4,7 @@ class Tracia
|
|
4
4
|
module GemPaths
|
5
5
|
ABSTRACTS = {}
|
6
6
|
|
7
|
-
::
|
8
|
-
.detect{ |hash| hash.has_key?('GEM PATHS') }['GEM PATHS']
|
9
|
-
.each_with_index { |path, i| ABSTRACTS["GemPath#{i}"] = path }
|
7
|
+
::Gem.path.each_with_index { |path, i| ABSTRACTS["GemPath#{i}"] = path }
|
10
8
|
|
11
9
|
class << self
|
12
10
|
def shorten(location)
|
data/lib/tracia/version.rb
CHANGED
data/lib/tracia.rb
CHANGED
@@ -32,13 +32,14 @@ class Tracia
|
|
32
32
|
trc.log if trc.level == 0
|
33
33
|
end
|
34
34
|
|
35
|
-
def add(info)
|
35
|
+
def add(info = nil, &block)
|
36
36
|
trc = Thread.current[:_tracia_]
|
37
37
|
return unless trc
|
38
38
|
|
39
39
|
backtrace = binding.partial_callers(-trc.depth)
|
40
40
|
backtrace.reverse!
|
41
41
|
backtrace.pop
|
42
|
+
info = block.call if block
|
42
43
|
trc.add(backtrace, info)
|
43
44
|
end
|
44
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.
|
47
|
+
version: 0.1.9
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.9
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: binding_of_callers
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.2.3
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- block24block@gmail.com
|
72
72
|
executables: []
|
@@ -88,7 +88,7 @@ homepage: https://github.com/turnon/tracia
|
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata: {}
|
91
|
-
post_install_message:
|
91
|
+
post_install_message:
|
92
92
|
rdoc_options: []
|
93
93
|
require_paths:
|
94
94
|
- lib
|
@@ -103,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
107
|
-
signing_key:
|
106
|
+
rubygems_version: 3.3.7
|
107
|
+
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: bottum-up tracing
|
110
110
|
test_files: []
|