rails_tracepoint_stack 0.3.0 → 0.3.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37171281cd058faf3a6dadf86d4a2e56e57417f1ccf46af6d010a2a1f5657562
|
4
|
+
data.tar.gz: 7bc1956035baaf3308ed562024c7376eb59a6c6bb59e23e450a66f51e2b2d650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f452899bde414b1a11dce5fd483843b980629c1dad42aa73b045c9c3315dd9226b36cd98f47b8a5c11221aed26d2aaf62c87fd294a07145936a100c164f3a07
|
7
|
+
data.tar.gz: 37fb83da7315e329a9d75ad32ca198c7464be7aadead056abd19f0a1ad3190e859c0d4c4bb47572a0755cb259349b45bd3984ec50ef74ece89a843aa4f2d5c52
|
@@ -1,12 +1,17 @@
|
|
1
1
|
module RailsTracepointStack
|
2
2
|
class Configuration
|
3
|
-
attr_accessor :
|
3
|
+
attr_accessor :file_path_to_filter_patterns,
|
4
|
+
:ignore_patterns,
|
5
|
+
:log_format,
|
6
|
+
:log_external_sources,
|
7
|
+
:logger
|
4
8
|
|
5
9
|
def initialize
|
6
|
-
@ignore_patterns = []
|
7
10
|
@file_path_to_filter_patterns = []
|
8
|
-
@
|
11
|
+
@ignore_patterns = []
|
9
12
|
@log_format = :text
|
13
|
+
@log_external_sources = false
|
14
|
+
@logger = nil
|
10
15
|
end
|
11
16
|
end
|
12
17
|
end
|
@@ -18,9 +18,12 @@ module RailsTracepointStack
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.from_gempath_or_lib_path?(trace)
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
!RailsTracepointStack.configuration&.log_external_sources &&
|
22
|
+
(
|
23
|
+
file_path_starts_with_gem_path?(trace) ||
|
24
|
+
file_path_starts_with_ruby_lib_path?(trace) ||
|
25
|
+
file_path_starts_with_bundler_path?(trace)
|
26
|
+
)
|
24
27
|
end
|
25
28
|
|
26
29
|
def self.is_a_to_ignore_pattern?(trace)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_tracepoint_stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Daniel Pohlod
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|