scout_agent 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/scout_agent.rb +1 -1
- data/lib/scout_agent/api.rb +5 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/scout_agent.rb
CHANGED
@@ -91,7 +91,7 @@ module ScoutAgent
|
|
91
91
|
end
|
92
92
|
|
93
93
|
# The version of this agent.
|
94
|
-
VERSION = "3.1.
|
94
|
+
VERSION = "3.1.4".freeze
|
95
95
|
# A Pathname reference to the agent code directory, used in dynamic loading.
|
96
96
|
LIB_DIR = Pathname.new(File.dirname(__FILE__)) + agent_name
|
97
97
|
end
|
data/lib/scout_agent/api.rb
CHANGED
@@ -5,7 +5,11 @@ require "rbconfig" # used to find the Ruby we are running under
|
|
5
5
|
require "pathname" # all paths are Pathname objects
|
6
6
|
|
7
7
|
begin
|
8
|
-
|
8
|
+
#
|
9
|
+
# the agent communicates in JSON, so we need to load the gem unless we are in
|
10
|
+
# something like Rails that already provides us with JSON capabilities
|
11
|
+
#
|
12
|
+
require "json" unless Hash.new.respond_to? :to_json
|
9
13
|
rescue LoadError # library not found
|
10
14
|
begin
|
11
15
|
require "rubygems"
|
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.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Edward Gray II
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2009-05-
|
15
|
+
date: 2009-05-08 00:00:00 -05:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|