rack-active_record_status 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,11 +22,11 @@ module Rack
22
22
  # Check that the application is connected to the database
23
23
  ActiveRecord::Base.connection.select_all('select 1')
24
24
  # Success
25
- [200, {'Content-Type' => 'text/plain'}, @response]
25
+ [200, {'Content-Type' => 'text/plain'}, [@response]]
26
26
  rescue
27
27
  body = ['ERROR', "#{$!.class}: #{$!.message}", "Backtrace:"] + $!.backtrace
28
28
  body *= "\n"
29
- [500, {'Content-Type' => 'text/plain'}, body]
29
+ [500, {'Content-Type' => 'text/plain'}, [body]]
30
30
  end
31
31
  end
32
32
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack-active_record_status'
3
- s.version = '0.5.0'
3
+ s.version = '0.6.0'
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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-active_record_status
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
8
+ - 6
9
9
  - 0
10
- version: 0.5.0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Suggs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-05 00:00:00 -04:00
18
+ date: 2011-11-29 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency