raygun-apm 0.0.18-x64-mingw32 → 0.0.19-x64-mingw32

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: 28d8c12957ae637a2fdb1765eff006ddc121ad26a901525b728bc3fdd3cb84f6
4
- data.tar.gz: 49dd31b9a0c28c0bcf19dd1284283bac5b14a8632d9649e554a679c7503c535b
3
+ metadata.gz: 49d313cee7492ddb35f4f0fc355201169f63da4cc793e2a8a87bacd44eb0496e
4
+ data.tar.gz: 57d0c146dce48a585a8329b1ca59839c3337297f3831bda4fbaff60380a40131
5
5
  SHA512:
6
- metadata.gz: 5c10ab20113fc5ec89c869eedfa4e76d4a358e7d85e4207c2e6217fa08eae81fbd07e17504b8476467ac1b2eca3539fe54cc3baef924301b2df7b0edf12e4b6d
7
- data.tar.gz: fc14b4417b8b625cdf9600d1b7ba0e0966bd2fe847301927e40f5237fa55e67e5e0bf45ac27176d4cfea7df90ab07dfab1871f7218389547d84979298c28b77e
6
+ metadata.gz: bd77e2f0b97508c4ef93ee712fa46f7b00be25adcfedc9269bd5deee54c4e32dcd9949115051cf98e3554694537fd2978afd2cab83ff7bba9e9d1e4761a4901b
7
+ data.tar.gz: 14230f617221a6323b9305c196c55e6f7db1199c26c360fcad57f95b5c34a010e7ae81238023877936eaa4bbcfa86a8bae443b0eeb8bbb6a783664e0c625903c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raygun-apm (0.0.18)
4
+ raygun-apm (0.0.19)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
Binary file
Binary file
@@ -108,6 +108,7 @@ module Raygun
108
108
  ScriptError
109
109
  SecurityError
110
110
  Set
111
+ SimpleDelegator
111
112
  Signal
112
113
  SignalException
113
114
  SizedQueue
@@ -134,6 +135,7 @@ module Raygun
134
135
  UnicodeNormalize
135
136
  Warning
136
137
  ZeroDivisionError
138
+ IPAddr
137
139
  }
138
140
 
139
141
  def self.extend_with(list)
@@ -11,21 +11,10 @@ module Raygun
11
11
  else
12
12
  []
13
13
  end
14
- @blacklist.each do |line|
15
- line.strip!
16
- if line.start_with?('#')
17
- # comment
18
- elsif line.start_with?('+')
19
- add_whitelist line[1..-1]
20
- elsif line.start_with?('-')
21
- add_blacklist line[1..-1]
22
- elsif line.size > 0
23
- add_blacklist line
24
- end
25
- end
26
- Raygun::Apm::Blacklist.resolve_entries.each do |line|
27
- add_blacklist line
28
- end
14
+ add_filters @blacklist
15
+ # Ignore comments set to false here to account for #<Class: etc. in Rails blacklist
16
+ add_filters Raygun::Apm::Blacklist.resolve_entries, ignore_comments: false
17
+ show_filters if config.loglevel == Tracer::LOG_BLACKLIST
29
18
  install_tracepoint(
30
19
  startup_period: config.proton_startup_period,
31
20
  trace_blocks: config.proton_rb_trace_blocks,
@@ -39,6 +28,22 @@ module Raygun
39
28
  raise Raygun::Apm::FatalError, "Raygun APM tracer could not be initialized: #{e.message}"
40
29
  end
41
30
 
31
+ def add_filters(filters, ignore_comments: true)
32
+ filters.each do |filter|
33
+ filter.strip!
34
+ # comment
35
+ if filter.start_with?('#')
36
+ add_blacklist filter unless ignore_comments
37
+ elsif filter.start_with?('+')
38
+ add_whitelist filter[1..-1]
39
+ elsif filter.start_with?('-')
40
+ add_blacklist filter[1..-1]
41
+ elsif filter.size > 0
42
+ add_blacklist filter
43
+ end
44
+ end
45
+ end
46
+
42
47
  def udp_sink!
43
48
  require "socket"
44
49
  sock = UDPSocket.new
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Erkki Eilonen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-06 00:00:00.000000000 Z
11
+ date: 2019-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase-ruby_core_source