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: a6e61976b25735790c540866ecebe19e2107f14ca9f2434fc0c176de91953303
4
- data.tar.gz: 5df99b05328e5158e8763469e2f5f24ffd34fb914c251d88ef0bcb7f3ee96e49
3
+ metadata.gz: 37171281cd058faf3a6dadf86d4a2e56e57417f1ccf46af6d010a2a1f5657562
4
+ data.tar.gz: 7bc1956035baaf3308ed562024c7376eb59a6c6bb59e23e450a66f51e2b2d650
5
5
  SHA512:
6
- metadata.gz: 867a2672fd90e65f0244632cc2ba9f189c865d7d8ae81ea0004e2a8461770c61dabb0b9fc45a32c9e244218292cf6b8ca34beae31a965a7508fd1d90e4327283
7
- data.tar.gz: 043e6d052f87535dccd6acaeaa224fe94337e2305ffbcdca392c946fbf3cfab4645648cc4b9d80252835018954376af16d8df76fd017e7693ec22d9d36e6f53b
6
+ metadata.gz: 0f452899bde414b1a11dce5fd483843b980629c1dad42aa73b045c9c3315dd9226b36cd98f47b8a5c11221aed26d2aaf62c87fd294a07145936a100c164f3a07
7
+ data.tar.gz: 37fb83da7315e329a9d75ad32ca198c7464be7aadead056abd19f0a1ad3190e859c0d4c4bb47572a0755cb259349b45bd3984ec50ef74ece89a843aa4f2d5c52
@@ -1,12 +1,17 @@
1
1
  module RailsTracepointStack
2
2
  class Configuration
3
- attr_accessor :ignore_patterns, :logger, :log_format, :file_path_to_filter_patterns
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
- @logger = nil
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
- file_path_starts_with_gem_path?(trace) ||
22
- file_path_starts_with_ruby_lib_path?(trace) ||
23
- file_path_starts_with_bundler_path?(trace)
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)
@@ -1,3 +1,3 @@
1
1
  module RailsTracepointStack
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.3"
3
3
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec