raygun-apm 1.0.51-x86-mingw32 → 1.0.56-x86-mingw32

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: 919ff5c88596461dfdca96d2b8777d64ac6b7f51bcc26182ad11b0704864545a
4
- data.tar.gz: c3ab74606dd5f61278aaf49591330569dbdaab9246953c46a0785884f0ca467d
3
+ metadata.gz: 7c4bd60f3fd57ba018c881aa18bca95dc31656a97e6afe79e2296f6ee6aa56a9
4
+ data.tar.gz: da7d8863fc26ae3abc6db351a08373da1459e6799f8ac54e9251e0fc47b510a8
5
5
  SHA512:
6
- metadata.gz: b458f0457b9e03ce95708994318a5decab5a424c134f59c0bdad65467c2ab6497b8b9c98a8bc63ee5441fdf9a783be46295352032d2a86fbfdd7af6950502616
7
- data.tar.gz: ae25e9796dbfa7c4009b009d55d14b944d857f2710b2b14d9f94ead2ee808f80db7e2347e207e714867af320161e62c72db6868fddefeb966ef6e104c105f3b7
6
+ metadata.gz: 2ee77b68cae7605e0cf961533f47b7abbe0d881cbb16af0c2e4746152616b1b1b3f07eb3029c2f5c07c6d3ed76d48f68e7f64d2edd36f518e643ca76423c7120
7
+ data.tar.gz: f35eaffc1a8f5f420b5c09fdf1211bcd85920ba783e97f5c86e352df1e2233fcd9717a78a6ba78cf5963f13410f81dce0e4367b25f94ea5839e89892486b6f4e
Binary file
Binary file
Binary file
@@ -9,6 +9,7 @@ module Raygun
9
9
  AGENT_STATE_UP_MISCONFIGURED = "\nThe Raygun APM Agent is running, but misconfigured.\nThe API Key needs to be set through the Raygun_ApiKey environment variable.\nThe API key can be found under 'Application Settings' in the Raygun UI"
10
10
  AGENT_STATE_UP_CONFIGURED = "\nThe Raygun APM Agent is configured properly!"
11
11
  AGENT_MINIMUM_VERSION_NOT_MET = "\nVersion #{Raygun::Apm::VERSION} of the Raygun APM Profiler requires a minimum Agent version #{Raygun::Apm::MINIMUM_AGENT_VERSION}\nPlease download the latest Agent from https://raygun.com/documentation/product-guides/apm/agent/downloads/"
12
+ PROFILER_NOOPED = "Profiler loaded in noop mode and will be disabled due to the minimum Agent version not met"
12
13
 
13
14
  def initialize(host: Apm::Config::TCP_MANAGEMENT_HOST, port: Apm::Config::TCP_MANAGEMENT_PORT)
14
15
  @host = host
@@ -18,9 +19,10 @@ module Raygun
18
19
  def verify_agent(tracer)
19
20
  socket.write "GetAgentInfo"
20
21
  response = JSON.parse(socket.gets)
21
- if response['Version'] < Raygun::Apm::MINIMUM_AGENT_VERSION
22
+ if minimum_agent_version_not_met?(response['Version'])
22
23
  puts AGENT_MINIMUM_VERSION_NOT_MET
23
24
  tracer.noop!
25
+ puts PROFILER_NOOPED
24
26
  else
25
27
  if response['Status'] == 1
26
28
  puts AGENT_STATE_UP_CONFIGURED
@@ -38,6 +40,15 @@ module Raygun
38
40
  def socket
39
41
  @socket ||= s = TCPSocket.new(@host, @port)
40
42
  end
43
+
44
+ def minimum_agent_version_not_met?(version)
45
+ # Legacy path
46
+ if String === version
47
+ version < Raygun::Apm::MINIMUM_AGENT_VERSION
48
+ else
49
+ "#{version['Major']}.#{version['Minor']}.#{version['Build']}.#{version['Revision']}" < Raygun::Apm::MINIMUM_AGENT_VERSION
50
+ end
51
+ end
41
52
  end
42
53
  end
43
54
  end
@@ -1,6 +1,6 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.51"
4
- MINIMUM_AGENT_VERSION = "1.0.1186.0"
3
+ VERSION = "1.0.56"
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.51
4
+ version: 1.0.56
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Raygun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-07-26 00:00:00.000000000 Z
12
+ date: 2020-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source