raygun-apm 1.0.69-x86-linux → 1.0.75-x86-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8fcd8ffc8006a1bb8ccb5b6874fd4827a1c9c66a259907f0917c9c94c98df1a
4
- data.tar.gz: 68e5d34b1e3691c233b1e1b3ddc9f262a0e8d2ac2681ecb025f0c032cf806478
3
+ metadata.gz: 0d2f234e29e85b01b446d149c5c11cd63221c0af7ead096c51dfd6288b383dc2
4
+ data.tar.gz: 0ddd81e9bea785da8f475ed9cb174891fafb4bbb0046386a38242f91b389a858
5
5
  SHA512:
6
- metadata.gz: 6c2a79e23b52225950e0dabc8001fb85c89f51ceae385bc222e39990d55052b7b6f7a312f6df84e151043dd8ef5b908fa4b18177dcf6311835e38141bff3b1c8
7
- data.tar.gz: 88cdf56989e3c9b3fef4639c60ac73d3f91f07293bc553c9efd200ad9ce2d2a90ba82d8dd027d04e1d0cbda2e3ce13be95bf779e2082321b2f428613a75b386c
6
+ metadata.gz: 9bd4d281ef06a7b2b1a48d670e9ad55ad559c77d56dba3bf55fb3f5ffcb9f482e9aa77e2b5d17d2c1abcabc6556276bb98f36f9d768d8eb4181e518044f39062
7
+ data.tar.gz: 034aa27d583a54587ecb668ca726a9853e70a43465fccabd3e6b1970beb15243017e8ed756fdfc358b9c7c9cd4548dfe8d7a03854893dd2ac7217f8b09c34989
@@ -1,6 +1,8 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Makefile generator helper - from standard library
3
4
  require 'mkmf'
5
+ # References core headers extracted by Ruby minor version in https://github.com/os97673/debase-ruby_core_source . Required for some of the lower level profiler features
4
6
  require 'debase/ruby_core_source'
5
7
 
6
8
  headers = proc do
@@ -11,12 +13,15 @@ end
11
13
 
12
14
  dir_config('raygun')
13
15
 
16
+ # To allow for swapping out the compiler - clang in favour of gcc for example
14
17
  RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
15
18
 
19
+ # Pendatic about all the things
16
20
  append_cflags '-pedantic'
17
21
  append_cflags '-Wall'
18
22
  append_cflags '-Werror=switch'
19
23
  append_cflags '-std=c99'
24
+ # Enables additional flags, stack protection and debug symbols
20
25
  if ENV['DEBUG']
21
26
  have_library 'ssp'
22
27
  have_func '__stack_chk_guard'
@@ -33,6 +38,7 @@ else
33
38
  append_cflags '-O3'
34
39
  end
35
40
 
41
+ # Renders an ASCII presentation of the shadow stack at runtime
36
42
  if ENV['DEBUG_SHADOW_STACK']
37
43
  append_cflags '-DRB_RG_DEBUG_SHADOW_STACK'
38
44
  end
@@ -42,6 +48,7 @@ unless create_header
42
48
  exit(1)
43
49
  end
44
50
 
51
+ # Check for the presence of headers in ruby_core_headers for the version currently compiled for
45
52
  unless Debase::RubyCoreSource.create_makefile_with_core(headers, 'raygun_ext')
46
53
  STDERR.print("Makefile creation failed\n")
47
54
  STDERR.print("One or more ruby headers not found\n")
Binary file
Binary file
Binary file
@@ -26,6 +26,7 @@ module Raygun
26
26
  Continuation#
27
27
  Data#
28
28
  Dir#
29
+ Dir::
29
30
  ENV#
30
31
  EOFError#
31
32
  Encoding#
@@ -98,6 +99,8 @@ module Raygun
98
99
  SecurityError#
99
100
  Set#
100
101
  SimpleDelegator#
102
+ Singleton#
103
+ Singleton::
101
104
  Signal#
102
105
  SignalException#
103
106
  SizedQueue#
@@ -156,8 +159,8 @@ module Raygun
156
159
  Gem::
157
160
  FileUtils#
158
161
  FileUtils::
159
- TempFile#
160
- TempFile::
162
+ Tempfile#
163
+ Tempfile::
161
164
  Logger#
162
165
  Logger::
163
166
  }
@@ -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,20 +57,23 @@ 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
72
73
  if defined?(Bundler)
73
- self.register_libraries Bundler.load.specs.map(&:full_gem_path).sort << RbConfig::CONFIG['rubylibdir']
74
+ libs = Bundler.load.specs.map(&:full_gem_path).sort << RbConfig::CONFIG['rubylibdir']
75
+ libs.delete(Dir.getwd)
76
+ self.register_libraries libs
74
77
  else
75
78
  self.register_libraries [RbConfig::CONFIG['rubylibdir']]
76
79
  end
@@ -1,6 +1,6 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.69"
3
+ VERSION = "1.0.75"
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.75
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-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source