rack-statsd 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack-statsd.rb +3 -6
- data/rack-statsd.gemspec +1 -1
- metadata +3 -3
data/lib/rack-statsd.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module RackStatsD
|
2
|
-
VERSION = "0.1.
|
2
|
+
VERSION = "0.1.1"
|
3
3
|
|
4
4
|
# Simple middleware to add a quick status URL for tools like Nagios.
|
5
5
|
class RequestStatus
|
@@ -39,11 +39,8 @@ module RackStatsD
|
|
39
39
|
def call(env)
|
40
40
|
if env[REQUEST_METHOD] == GET
|
41
41
|
if env[PATH_INFO] == @status_path
|
42
|
-
|
43
|
-
|
44
|
-
else
|
45
|
-
return @callback
|
46
|
-
end
|
42
|
+
method = @callback.respond_to?(:call) ? :call : :to_s
|
43
|
+
return [200, {}, @callback.send(method)]
|
47
44
|
end
|
48
45
|
end
|
49
46
|
|
data/rack-statsd.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'rack-statsd'
|
16
|
-
s.version = '0.1.
|
16
|
+
s.version = '0.1.1'
|
17
17
|
s.date = '2011-12-14'
|
18
18
|
s.rubyforge_project = 'rack-statsd'
|
19
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-statsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-12-14 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack-test
|
17
|
-
requirement: &
|
17
|
+
requirement: &70288897702740 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70288897702740
|
26
26
|
description: Tools for monitoring Rack apps in production.
|
27
27
|
email: technoweenie@gmail.com
|
28
28
|
executables: []
|