rails_tracepoint_stack 0.3.0 → 0.3.1

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: 8403ca731eb5b9b0c54af770d35dc805260a49e4a8d6092c3ae09ee83487864c
4
+ data.tar.gz: b518853ab09f13da65fbdee1c49fa6683dbec7e615de3b62e42834dbcb5b0812
5
5
  SHA512:
6
- metadata.gz: 867a2672fd90e65f0244632cc2ba9f189c865d7d8ae81ea0004e2a8461770c61dabb0b9fc45a32c9e244218292cf6b8ca34beae31a965a7508fd1d90e4327283
7
- data.tar.gz: 043e6d052f87535dccd6acaeaa224fe94337e2305ffbcdca392c946fbf3cfab4645648cc4b9d80252835018954376af16d8df76fd017e7693ec22d9d36e6f53b
6
+ metadata.gz: b449b592efe2f0a92dbae19fb5cb218fc3712f8d069a3caedefc286c1e29f533c6cf13fea0833a4a50aeb689cc1ea235e57788bed060221e1caa25b7a3fdde99
7
+ data.tar.gz: e039bd1ad9de1c78b29ab371d80f0a3b82755d96700c7c06c209f4ea9fe67adb60f3ac939cbad42c4341176ced07d3253db1deec2bae0a5fd61926f7361626b5
@@ -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.1"
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.1
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-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec