scout_agent 3.2.4 → 3.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 3.2.5
2
+
3
+ * Added a workaround for an issue in RestClient 1.0 (an incorrect error)
4
+
1
5
  == 3.2.4
2
6
 
3
7
  * Fixed a bug with Symbol keys when queuing Marshal data
@@ -92,7 +92,7 @@ module ScoutAgent
92
92
  end
93
93
 
94
94
  # The version of this agent.
95
- VERSION = "3.2.4".freeze
95
+ VERSION = "3.2.5".freeze
96
96
  # A Pathname reference to the agent code directory, used in dynamic loading.
97
97
  LIB_DIR = Pathname.new(File.dirname(__FILE__)) + agent_name
98
98
  end
@@ -93,6 +93,12 @@ module ScoutAgent
93
93
  "Could not send check-in to untrusted server." )
94
94
  false # cannot trust server
95
95
  rescue Exception => error # networking problem
96
+ # bypass for a RestClient bug
97
+ if error.is_a?(NoMethodError) and
98
+ error.backtrace and
99
+ error.backtrace.first.to_s =~ /\brest-client\b/
100
+ return true
101
+ end
96
102
  log.warn("Check-in could not be sent: #{error.class}.")
97
103
  false # we failed to send and will retry later
98
104
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Edward Gray II