rack-active_record_status 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -20,9 +20,19 @@ config file (<tt>config/application.rb</tt> for Rails 3, <tt>config/environment.
20
20
 
21
21
  config.middleware.use Rack::ActiveRecordStatus
22
22
 
23
+ Test your ActiveRecord connection by hitting
24
+
25
+ GET /app_status
26
+
27
+ Anything other than a 200 OK HTTP response code is an error.
28
+
29
+ You may change which path the app middleware uses by passing an argument:
30
+
31
+ config.middleware.use Rack::ActiveRecordStatus, '/custom_path'
32
+
23
33
  == Sponsorship
24
34
 
25
- All new work on active_record_rack_status is sponsored by {Medidata Solutions}[http://github.com/mdsol]
35
+ Work on rack-active_record_status is sponsored by {Medidata Solutions}[http://github.com/mdsol]
26
36
  == Copyright
27
37
 
28
38
  (The MIT License)
@@ -1,6 +1,6 @@
1
1
  module Rack
2
2
  class ActiveRecordStatus
3
- def initialize(app, path='/active_record_status')
3
+ def initialize(app, path='/app_status')
4
4
  @app, @path = app, path
5
5
  end
6
6
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack-active_record_status'
3
- s.version = '0.3'
3
+ s.version = '0.4'
4
4
 
5
5
  s.summary = "Rack middelware to check ActiveRecord's connection"
6
6
  s.description = "A server health check for active_record."
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-active_record_status
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- version: "0.3"
8
+ - 4
9
+ version: "0.4"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aaron Suggs
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-05-02 00:00:00 -04:00
17
+ date: 2011-05-03 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency