raygun-apm 1.0.69-x64-mingw32 → 1.0.70-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: f844dbd9c6b712c2fd8c97765a60a217a58150a220ab6521f9f1ca1099c6b3ec
4
- data.tar.gz: d1e8343b4c3e483c01c1ca3c66150af815715a6c3c168d51ebec0a2bf63fb4c3
3
+ metadata.gz: 40a56168723e4666502c3e22514a0dba97cd26557e33d79579434c1f0ebb78c6
4
+ data.tar.gz: 86a86fb6d57182f5afa0e7b4b91e376fcc31653497ee779084aa4b8553a7e8e8
5
5
  SHA512:
6
- metadata.gz: 361cf026c3a67c77939e315fea526c2a4eef35851520efdd8e4f429c5db8cfbe9c9c61b76a40fda7cb6eb5564b5c03420051b566f03bc4d3a42765f71ec0d46f
7
- data.tar.gz: ee699b17b00ba5ccc9e3d129e2879571904c9b60225fd70bc89895720c22e6f04c2fed4cce7543e3f5de0ae06c2ca3d4fca924b9ce0b31f14501c6f19660e44c
6
+ metadata.gz: 637eeb5a2e852a57e93d9b6480b2004a78a6abf70566a1883ae8ee48a65286c8c8e66fcb77056e323e9e2d19ba18903fff72061fae3f7ea06cc127f5fb1b8f8c
7
+ data.tar.gz: b2e1cd85a1a4eb4bc3741b376b04520b2db89e9c29918ce70be3f0f6e935e1650d434905544f8bc5f083b72a83a1a7fb837117c4f48bddd6574fd4e72378139c
Binary file
Binary file
Binary file
@@ -18,6 +18,9 @@ module Raygun
18
18
  "production" => Tracer::ENV_PRODUCTION
19
19
  }
20
20
 
21
+ DEFAULT_BLACKLIST_PATH_UNIX = "/usr/share/Raygun/Blacklist"
22
+ DEFAULT_BLACKLIST_PATH_WINDOWS = "C:\\ProgramData\\Raygun\\Blacklist"
23
+
21
24
  attr_accessor :env
22
25
  def initialize(env=ENV)
23
26
  @env = env
@@ -82,6 +85,13 @@ module Raygun
82
85
  environment = env['RACK_ENV'] || env['RAILS_ENV'] || 'production'
83
86
  ENVIRONMENTS[environment] || Tracer::ENV_PRODUCTION
84
87
  end
88
+
89
+ # Prefer what is set by PROTON_USER_OVERRIDES_FILE env
90
+ def blacklist_file
91
+ return proton_user_overrides_file if proton_user_overrides_file
92
+ path = Gem.win_platform? ? DEFAULT_BLACKLIST_PATH_WINDOWS : DEFAULT_BLACKLIST_PATH_UNIX
93
+ "#{File.join(path, proton_api_key)}.txt"
94
+ end
85
95
  end
86
96
  end
87
97
  end
@@ -57,15 +57,16 @@ module Raygun
57
57
 
58
58
  def initialize_blacklist
59
59
  @blacklist_parser = Raygun::Apm::Blacklist::Parser.new(self)
60
- @blacklist = if @config.proton_user_overrides_file && File.exists?(@config.proton_user_overrides_file)
61
- File.readlines(@config.proton_user_overrides_file)
60
+ file = @config.blacklist_file
61
+ @blacklist = if file && File.exist?(file)
62
+ File.readlines(file)
62
63
  else
63
64
  []
64
65
  end
65
- # From file
66
- @blacklist_parser.add_filters @blacklist
67
66
  # Defaults
68
67
  @blacklist_parser.add_filters Raygun::Apm::Blacklist.resolve_entries
68
+ # From file
69
+ @blacklist_parser.add_filters @blacklist
69
70
  end
70
71
 
71
72
  def register_known_library_paths
@@ -1,6 +1,6 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.69"
3
+ VERSION = "1.0.70"
4
4
  MINIMUM_AGENT_VERSION = "1.0.1190.0"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.69
4
+ version: 1.0.70
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Raygun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-10 00:00:00.000000000 Z
12
+ date: 2020-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source