city-watch 0.5.0 → 0.5.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.
@@ -13,8 +13,8 @@ class Nginx
13
13
  acc
14
14
  end
15
15
 
16
- if `curl -I http://localhost/nginx_status`[/^HTTP\/1.1 200/]
17
- active, garbage, nums, open = `curl http://localhost/nginx_status`.split("\n")
16
+ if `curl -I -silent http://localhost/nginx_status`[/^HTTP\/1.1 200/]
17
+ active, garbage, nums, open = `curl -silent http://localhost/nginx_status`.split("\n")
18
18
  accepts, handled, requests = nums.split
19
19
  garbage, reading, garbage, writing, garbage, waiting = open.split
20
20
  out = out.merge({:active_connections => active.gsub(/.*:/,'').to_i, :accepted => accepts.to_i, :handled => handled.to_i, :requests => requests.to_i, :reading => reading.to_i, :writing => writing.to_i, :waiting => waiting.to_i})
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CityWatch
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: city-watch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Bragg