scout_agent 3.0.0 → 3.0.1

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,9 @@
1
+ == 3.0.1
2
+
3
+ * Added more error protection to the server wrapper so thinks like
4
+ OpenSSL::SSL::SSLError and SocketError don't kill the agent.
5
+ * Switched to the beta URL.
6
+
1
7
  == 3.0.0
2
8
 
3
9
  * Initial release
data/lib/scout_agent.rb CHANGED
@@ -64,7 +64,7 @@ module ScoutAgent
64
64
  end
65
65
 
66
66
  # The version of this agent.
67
- VERSION = "3.0.0".freeze
67
+ VERSION = "3.0.1".freeze
68
68
  # A Pathname reference to the agent code directory, used in dynamic loading.
69
69
  LIB_DIR = Pathname.new(File.dirname(__FILE__)) + agent_name
70
70
  end
@@ -16,7 +16,7 @@ module ScoutAgent
16
16
 
17
17
  # The default configuration for this agent.
18
18
  def defaults
19
- [ [:server_url, "https://scoutapp.com"],
19
+ [ [:server_url, "http://beta.scoutapp.com:3000"],
20
20
  [:run_as_daemon, true],
21
21
  [:logging_level, "INFO"],
22
22
  [:test_mode, false],
@@ -49,7 +49,7 @@ module ScoutAgent
49
49
  rescue RestClient::NotModified
50
50
  log.info("Plan was not modified.")
51
51
  "" # empty plan
52
- rescue Errno::ECONNREFUSED, RestClient::Exception => error # bad networking
52
+ rescue Exception => error # networking problem
53
53
  log.warn("Plan could not be retrieved: #{error.class}.")
54
54
  nil # failed to retrieve plan
55
55
  end
@@ -88,7 +88,7 @@ module ScoutAgent
88
88
  "#{error.http_code}." )
89
89
  false
90
90
  end
91
- rescue Errno::ECONNREFUSED, RestClient::Exception # networking problem
91
+ rescue Exception => error # networking problem
92
92
  log.warn("Check-in could not be sent: #{error.class}.")
93
93
  false # we failed to send and will retry later
94
94
  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.0.0
4
+ version: 3.0.1
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-03-31 00:00:00 -05:00
15
+ date: 2009-04-01 00:00:00 -05:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency