raygun-apm 1.0.51-x86-linux → 1.0.52-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: 137abde428560aea5e42f842edd60f9c59258659e45ec4b5434f739778166179
4
- data.tar.gz: 311d37fa1758e35249b541b39e11cb2e71ab97eaf122e3e55a17bc7942370b18
3
+ metadata.gz: 02fa1c570b93b8e0004051ea1f35e434cc5ae676936600bfa7221204babfa477
4
+ data.tar.gz: 353e746a8da8cbaaa8f0d0a33578497f358c50054b25f641b4c8004549bf14f6
5
5
  SHA512:
6
- metadata.gz: d09a8c94d20d67bcd351f62f9146a91260bc30def56d12a82b9022670dfd07ef00fffaf02161013ee086c81d010563e2a6b939d5da1a3a917926ffb2a926f430
7
- data.tar.gz: a6d6daea28d595332f476e56f8281519a9dbbb10d06db912fd996551ca4ac9d5d789735dfdeb3435dab4715986567b71353c534b5f85c7c8343f9b6f187d90d9
6
+ metadata.gz: 96f9e5c87256e4ba7ff69e3ef49af6c837c16b14e090c837e4e0fd91bad9d05b5d0ee03b1dde16811853332f249c7c67e317dab714c6c7f7b157a4411e57d0da
7
+ data.tar.gz: e3442e87e22aa9176cae52c5d2b62ef2a399b7d657996f205a9453ef0158a5f739fef1762689d8de5e6cbf2333f0b5a4f181342ba9ed4091357b22a7009dac5f
@@ -18,7 +18,7 @@ module Raygun
18
18
  def verify_agent(tracer)
19
19
  socket.write "GetAgentInfo"
20
20
  response = JSON.parse(socket.gets)
21
- if response['Version'] < Raygun::Apm::MINIMUM_AGENT_VERSION
21
+ if minimum_agent_version_not_met?(response['Version'])
22
22
  puts AGENT_MINIMUM_VERSION_NOT_MET
23
23
  tracer.noop!
24
24
  else
@@ -38,6 +38,15 @@ module Raygun
38
38
  def socket
39
39
  @socket ||= s = TCPSocket.new(@host, @port)
40
40
  end
41
+
42
+ def minimum_agent_version_not_met?(version)
43
+ # Legacy path
44
+ if String === version
45
+ version < Raygun::Apm::MINIMUM_AGENT_VERSION
46
+ else
47
+ "#{version['Major']}.#{version['Minor']}.#{version['Build']}.#{version['Revision']}" < Raygun::Apm::MINIMUM_AGENT_VERSION
48
+ end
49
+ end
41
50
  end
42
51
  end
43
52
  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.52"
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.52
5
5
  platform: x86-linux
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-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source