pingable 0.0.6 → 0.0.7

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.
@@ -6,23 +6,12 @@ Pingable.add_check lambda {
6
6
  {:message => "oh noes"}
7
7
  }
8
8
 
9
- if true
10
- # Rack 1.4.0 and later
11
- map '/ping' do
12
- use Pingable::Handler, "myapp"
13
- end
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
@@ -2,8 +2,7 @@ module Pingable
2
2
 
3
3
  class Handler
4
4
 
5
- def initialize(app, name = nil)
6
- @app = app
5
+ def initialize(name = nil)
7
6
  @name = name
8
7
  end
9
8
 
@@ -1,3 +1,3 @@
1
1
  module Pingable
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
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-27 00:00:00 Z
18
+ date: 2012-01-31 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec