scout 5.5.1 → 5.5.2

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,5 +1,9 @@
1
1
  == Master
2
2
 
3
+ == 5.5.2
4
+
5
+ * Fixed --http-proxy & --https-proxy support, which were broken in 5.5.0
6
+
3
7
  == 5.5.1
4
8
 
5
9
  * Updating history on plugin timeouts (last run & memory). Previously, the data from the last successful run was retained.
data/lib/scout/server.rb CHANGED
@@ -64,7 +64,6 @@ module Scout
64
64
  headers["If-Modified-Since"] = @history["plan_last_modified"]
65
65
  end
66
66
  get(url, "Could not ping #{url} for refresh info", headers) do |res|
67
- info "inside 'refresh?' #{res.to_hash.to_json}"
68
67
  @streamer_command = res["x-streamer-command"] # usually will be nil, but can be [start,abcd,1234,5678|stop]
69
68
  if res.is_a?(Net::HTTPNotModified)
70
69
  return false
@@ -53,7 +53,13 @@ module Scout
53
53
  def request(url, response_handler, error, &connector)
54
54
  response = nil
55
55
  Timeout.timeout(5 * 60, APITimeoutError) do
56
- http = Net::HTTP.new(url.host, url.port)
56
+ # take care of http/https proxy, if specified in command line options
57
+ # Given a blank string, the proxy_uri URI instance's host/port/user/pass will be nil
58
+ # Net::HTTP::Proxy returns a regular Net::HTTP class if the first argument (host) is nil
59
+ info "using http_proxy=#{@http_proxy}, https_proxy=#{@https_proxy}" if @http_proxy != '' || @https_proxy != ''
60
+ proxy_uri = URI.parse(url.is_a?(URI::HTTPS) ? @https_proxy : @http_proxy)
61
+ http=Net::HTTP::Proxy(proxy_uri.host,proxy_uri.port,proxy_uri.user,proxy_uri.port).new(url.host, url.port)
62
+
57
63
  if url.is_a? URI::HTTPS
58
64
  http.use_ssl = true
59
65
  http.ca_file = File.join(File.dirname(__FILE__),
data/lib/scout/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Scout
2
- VERSION = "5.5.1"
2
+ VERSION = "5.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.1
4
+ version: 5.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-01-11 00:00:00.000000000 Z
14
+ date: 2012-01-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: elif
18
- requirement: &2160186240 !ruby/object:Gem::Requirement
18
+ requirement: &70188519768680 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2160186240
26
+ version_requirements: *70188519768680
27
27
  description: ! 'Scout makes monitoring and reporting on your web applications as flexible
28
28
  and simple as possible.
29
29