scout_agent 3.2.3 → 3.2.4

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 3.2.4
2
+
3
+ * Fixed a bug with Symbol keys when queuing Marshal data
4
+
1
5
  == 3.2.3
2
6
 
3
7
  * Upgraded to JSON 1.1.6
data/lib/scout_agent.rb CHANGED
@@ -92,7 +92,7 @@ module ScoutAgent
92
92
  end
93
93
 
94
94
  # The version of this agent.
95
- VERSION = "3.2.3".freeze
95
+ VERSION = "3.2.4".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,7 +93,9 @@ module ScoutAgent
93
93
  else # it's Marshal
94
94
  fields = Marshal.load(fields)
95
95
  if fields.is_a? Hash # Stringify Hash keys
96
- fields = Hash[*fields.map { |k, v| [k.to_s, v] }.flatten]
96
+ (fields.keys - fields.keys.grep(String)).each do |key|
97
+ fields[key.to_s] = fields.delete(key)
98
+ end
97
99
  end
98
100
  end
99
101
  rescue Exception
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.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Edward Gray II