rack-active_record_status 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,11 @@
1
1
  module Rack
2
2
  class ActiveRecordStatus
3
- def initialize(app)
4
- @app = app
3
+ def initialize(app, path='/active_record_status')
4
+ @app, @path = app, path
5
5
  end
6
6
 
7
7
  def call(env)
8
- if env['PATH_INFO'] == '/active_record_status'
8
+ if @path == env['PATH_INFO']
9
9
  get_status
10
10
  else
11
11
  @app.call(env)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack-active_record_status'
3
- s.version = '0.2'
3
+ s.version = '0.3'
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aaron Suggs