raygun-apm 1.0.69-x86-linux → 1.0.70-x86-linux

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: a8fcd8ffc8006a1bb8ccb5b6874fd4827a1c9c66a259907f0917c9c94c98df1a
4
- data.tar.gz: 68e5d34b1e3691c233b1e1b3ddc9f262a0e8d2ac2681ecb025f0c032cf806478
3
+ metadata.gz: 5e41ca011179dc8a724eef1e9095bc66e75426d3f0cefab3f14cd1492a36f440
4
+ data.tar.gz: f7203b8535560385785d8dc7cdb5a8149bdcf6dd31f3e22fee03b347242fc66f
5
5
  SHA512:
6
- metadata.gz: 6c2a79e23b52225950e0dabc8001fb85c89f51ceae385bc222e39990d55052b7b6f7a312f6df84e151043dd8ef5b908fa4b18177dcf6311835e38141bff3b1c8
7
- data.tar.gz: 88cdf56989e3c9b3fef4639c60ac73d3f91f07293bc553c9efd200ad9ce2d2a90ba82d8dd027d04e1d0cbda2e3ce13be95bf779e2082321b2f428613a75b386c
6
+ metadata.gz: 66f62afa1ea7070dae8005ecd4f0bebb59318bceb8686f80c5165bd78e90f2c8e31bebacbd5dcafadc8556983df354854897578fc8877fc341b0a3e1f2d41b1d
7
+ data.tar.gz: 0d3c2b4d3a465e083a70286001d58c57079eb0f30db38ac48a008d1e904460520c7808b7b4f784eb64825374905c9e9bb4b0f5cb087e8b7228e6f21f1324a3c1
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: x86-linux
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