heavylog 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -17
- data/lib/heavylog/version.rb +1 -1
- data/lib/heavylog.rb +3 -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: d50a4cf6a2a830246560d9056cb7080e589f9d44ce9d967aa3fed2b8496700cc
|
4
|
+
data.tar.gz: 3dfa2b1adab89119540d01872f7fd5bf041abbc55c0f5c77582e2c2e13349fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e79e3f8fee96ba0e7f61895cd0f5778816272cabaff98143ba84ecdf954a4c628cc152f68d64d58cbc1ba34a0795a085bd5cf3f5e0b1777ddcc2cabcc0bc21a9
|
7
|
+
data.tar.gz: e99fed2f79cd1d6545da888c53b5fa36b275e70854c5884661a1fea19d143eb7d40ed632e543b631920b2bcab1f05457c14b316c6788e634a03175bd4c8d3f35
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
heavylog (0.0.
|
4
|
+
heavylog (0.0.11)
|
5
5
|
actionpack (>= 5)
|
6
6
|
activesupport (>= 5)
|
7
7
|
railties (>= 5)
|
@@ -10,45 +10,45 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionpack (5.2.
|
14
|
-
actionview (= 5.2.
|
15
|
-
activesupport (= 5.2.
|
13
|
+
actionpack (5.2.3)
|
14
|
+
actionview (= 5.2.3)
|
15
|
+
activesupport (= 5.2.3)
|
16
16
|
rack (~> 2.0)
|
17
17
|
rack-test (>= 0.6.3)
|
18
18
|
rails-dom-testing (~> 2.0)
|
19
19
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
20
|
-
actionview (5.2.
|
21
|
-
activesupport (= 5.2.
|
20
|
+
actionview (5.2.3)
|
21
|
+
activesupport (= 5.2.3)
|
22
22
|
builder (~> 3.1)
|
23
23
|
erubi (~> 1.4)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
25
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
26
|
-
activesupport (5.2.
|
26
|
+
activesupport (5.2.3)
|
27
27
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
28
28
|
i18n (>= 0.7, < 2)
|
29
29
|
minitest (~> 5.1)
|
30
30
|
tzinfo (~> 1.1)
|
31
31
|
ast (2.4.0)
|
32
32
|
builder (3.2.3)
|
33
|
-
concurrent-ruby (1.1.
|
33
|
+
concurrent-ruby (1.1.5)
|
34
34
|
crass (1.0.4)
|
35
35
|
diff-lcs (1.3)
|
36
|
-
erubi (1.
|
37
|
-
i18n (1.
|
36
|
+
erubi (1.8.0)
|
37
|
+
i18n (1.6.0)
|
38
38
|
concurrent-ruby (~> 1.0)
|
39
39
|
jaro_winkler (1.5.2)
|
40
40
|
loofah (2.2.3)
|
41
41
|
crass (~> 1.0.2)
|
42
42
|
nokogiri (>= 1.5.9)
|
43
43
|
method_source (0.9.2)
|
44
|
-
mini_portile2 (2.
|
44
|
+
mini_portile2 (2.4.0)
|
45
45
|
minitest (5.11.3)
|
46
|
-
nokogiri (1.
|
47
|
-
mini_portile2 (~> 2.
|
46
|
+
nokogiri (1.10.3)
|
47
|
+
mini_portile2 (~> 2.4.0)
|
48
48
|
parallel (1.17.0)
|
49
49
|
parser (2.6.3.0)
|
50
50
|
ast (~> 2.4.0)
|
51
|
-
rack (2.0.
|
51
|
+
rack (2.0.7)
|
52
52
|
rack-test (1.1.0)
|
53
53
|
rack (>= 1.0, < 3)
|
54
54
|
rails-dom-testing (2.0.3)
|
@@ -56,9 +56,9 @@ GEM
|
|
56
56
|
nokogiri (>= 1.6)
|
57
57
|
rails-html-sanitizer (1.0.4)
|
58
58
|
loofah (~> 2.2, >= 2.2.2)
|
59
|
-
railties (5.2.
|
60
|
-
actionpack (= 5.2.
|
61
|
-
activesupport (= 5.2.
|
59
|
+
railties (5.2.3)
|
60
|
+
actionpack (= 5.2.3)
|
61
|
+
activesupport (= 5.2.3)
|
62
62
|
method_source
|
63
63
|
rake (>= 0.8.7)
|
64
64
|
thor (>= 0.19.0, < 2.0)
|
data/lib/heavylog/version.rb
CHANGED
data/lib/heavylog.rb
CHANGED
@@ -14,6 +14,7 @@ module Heavylog
|
|
14
14
|
module_function
|
15
15
|
|
16
16
|
TRUNCATION = "[TRUNCATED]"
|
17
|
+
ANSI_REGEX = /\e\[(\d+)m/.freeze
|
17
18
|
|
18
19
|
mattr_accessor :logger, :application, :formatter, :log_level
|
19
20
|
|
@@ -92,7 +93,8 @@ module Heavylog
|
|
92
93
|
end
|
93
94
|
end
|
94
95
|
|
95
|
-
message = message.gsub(
|
96
|
+
message = message.gsub(ANSI_REGEX, "") if message.respond_to?(:gsub)
|
97
|
+
message = message.map { |m| m.respond_to?(:gsub) ? m.gsub(ANSI_REGEX, "") : m } if message.is_a?(Array)
|
96
98
|
|
97
99
|
RequestStore.store[:heavylog_buffer] ||= StringIO.new
|
98
100
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heavylog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristjan Rang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|