pingable 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/example/config.ru +5 -16
- data/lib/pingable/handler.rb +1 -2
- data/lib/pingable/version.rb +1 -1
- metadata +4 -4
data/example/config.ru
CHANGED
@@ -6,23 +6,12 @@ Pingable.add_check lambda {
|
|
6
6
|
{:message => "oh noes"}
|
7
7
|
}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
# Earlier Rack versions barf without this
|
10
|
+
map '/ping' do
|
11
|
+
run Pingable::Handler.new('myapp')
|
12
|
+
end
|
13
|
+
map '/' do
|
14
14
|
run lambda { |env|
|
15
15
|
[200, {'Content-Type' => 'text/plain'}, ['OK']]
|
16
16
|
}
|
17
|
-
else
|
18
|
-
# Earlier Rack versions barf without this
|
19
|
-
map '/ping' do
|
20
|
-
use Pingable::Handler, "myapp"
|
21
|
-
run nil
|
22
|
-
end
|
23
|
-
map '/' do
|
24
|
-
run lambda { |env|
|
25
|
-
[200, {'Content-Type' => 'text/plain'}, ['OK']]
|
26
|
-
}
|
27
|
-
end
|
28
17
|
end
|
data/lib/pingable/handler.rb
CHANGED
data/lib/pingable/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pingable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexander Staubo
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-31 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|