tracee 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -1
- data/lib/tracee/ext/active_support.rb +3 -5
- data/lib/tracee/logger.rb +1 -1
- data/lib/tracee/version.rb +1 -1
- data/lib/tracee.rb +1 -3
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7271591545c3b1459481925cd6affa68f0cb4657
|
4
|
+
data.tar.gz: 8f931c372871a15c87e4d0df88ce38dde4995e3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1121fcb4f4e0950d9aae02900afce4351cbe59ada5d1a2212e0020f78a5ca6c7a644b71c01a16e1c8ef539030c31e5c94d3323833c93e1ce284ed9f9a26d990f
|
7
|
+
data.tar.gz: ae5cd83d8c372777d7126c60ec8f891bf51d6937a0d67b483e482695ddab65aa33bf6176f6eb674b38d766462c68745747e05f75cffc056429565e8ede43556b
|
data/Rakefile
CHANGED
@@ -3,17 +3,15 @@ module Tracee
|
|
3
3
|
module ActiveSupport
|
4
4
|
|
5
5
|
module BacktraceCleaner
|
6
|
-
extend ::ActiveSupport::Concern
|
7
6
|
|
8
|
-
|
7
|
+
def self.prepended(*)
|
9
8
|
if defined? Rails
|
10
9
|
Rails.backtrace_cleaner.add_silencer {|line| line =~ IGNORE_RE}
|
11
10
|
end
|
12
|
-
alias_method_chain :clean, :decorate
|
13
11
|
end
|
14
12
|
|
15
|
-
def
|
16
|
-
Stack::BaseDecorator.(
|
13
|
+
def decorate(backtrace, kind=:silent)
|
14
|
+
Stack::BaseDecorator.(super)
|
17
15
|
end
|
18
16
|
|
19
17
|
end
|
data/lib/tracee/logger.rb
CHANGED
@@ -111,7 +111,7 @@ module Tracee
|
|
111
111
|
return if @level > #{level_int}
|
112
112
|
|
113
113
|
unless args[1].nil? or args[1].is_a?(Hash)
|
114
|
-
raise TypeError, "
|
114
|
+
raise TypeError, "\#{self.class.name}#\#{__callee__}'s second argument if given, is expected to be Hash. \#{args[1].class.name} is given."
|
115
115
|
end
|
116
116
|
|
117
117
|
if block
|
data/lib/tracee/version.rb
CHANGED
data/lib/tracee.rb
CHANGED
@@ -89,9 +89,7 @@ module Tracee
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def decorate_active_support_stack
|
92
|
-
ActiveSupport::BacktraceCleaner.
|
93
|
-
include Tracee::Extensions::ActiveSupport::BacktraceCleaner
|
94
|
-
end
|
92
|
+
ActiveSupport::BacktraceCleaner.prepend Tracee::Extensions::ActiveSupport::BacktraceCleaner
|
95
93
|
end
|
96
94
|
|
97
95
|
def decorate_stack_everywhere
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Baev
|
@@ -14,70 +14,70 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.10'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: colorize
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Tracee is a simple extensible logger with stack tracing, benchmarking,
|
@@ -90,9 +90,9 @@ executables: []
|
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
|
-
- .gitignore
|
94
|
-
- .rspec
|
95
|
-
- .travis.yml
|
93
|
+
- ".gitignore"
|
94
|
+
- ".rspec"
|
95
|
+
- ".travis.yml"
|
96
96
|
- Gemfile
|
97
97
|
- LICENSE
|
98
98
|
- README.md
|
@@ -124,17 +124,17 @@ require_paths:
|
|
124
124
|
- lib
|
125
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.4.8
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: An extensible logger with stack tracing, benchmarking, preprocessing, and
|