raygun-apm 1.0.51-universal-darwin → 1.0.52-universal-darwin

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: 7593b0e9bb1cba72a535be3ef08424e91284f2dd291ffe3fbb0fe2a604983bd6
4
- data.tar.gz: 2a9aba1d39886397edfddfd38df5566bbf06770cb6509efd67dbad10fa2f911f
3
+ metadata.gz: d0950f9e9d4fdb14504369abe5a5ee30a5c42a9d2900abc43ff931b9804a77ec
4
+ data.tar.gz: f48282130f0da0b1a3a141c5afb814469aa34792934dff907e89869d04524e42
5
5
  SHA512:
6
- metadata.gz: 5511a1acfb63fce2b2453e2d2cb96284a8b028cbc7404287e7a518383231a605f7711e00080aaa0a29a042e85d0c47ea05b3c4efcbb25d1366c524ce66b5fcf8
7
- data.tar.gz: 7e01408c3b4462756ae526564ca4f5974213dd13db9c03b333e657e2fe96c95b427947d02c55504a0ba675bdd277c89f7fa498b4628cde6188bcebea97e37706
6
+ metadata.gz: 9b1cab4c727304574066393cc9573b1926161561fd4f5b2d9974425fcdfee7612af5da73c2a9fad9f1d5ed3936303095fc8213aa27d886e5a79eab7557c63b62
7
+ data.tar.gz: e5676e36bd9244e7985b62ce1684040326d3ffb826202d9e17cc4b1c36eaf5fb08e95b6e1b4d523d6b8e507864167cd342699ab498f2fc77cbf43ccd7af59ff0
@@ -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: universal-darwin
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-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source