is_it_working-cbeer 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,7 @@ A monitoring handler for this set up could be set up in <tt>config/initializers/
52
52
 
53
53
  == Output
54
54
 
55
- The response from the handler will be a plain text description of the checks that were run and the results of those checks. If all the checks passed, the response code will be 200. If any checks fail, the response code will be 500. The response will look something like this:
55
+ The response from the handler will be a plain text description of the checks that were run and the results of those checks. If all the checks passed, the response code will be 200. If any checks fail, the response code will be 417. The response will look something like this:
56
56
 
57
57
  Host: example.com
58
58
  PID: 696
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.12
1
+ 1.0.13
@@ -1,7 +1,7 @@
1
1
  module IsItWorking
2
2
  # Rack handler that will run a set of status checks on the application and report the
3
3
  # results. The results are formatted in plain text. If any of the checks fails, the
4
- # response code will be 500 Server Error.
4
+ # response code will be 417 Expectation Failed.
5
5
  #
6
6
  # The checks to perform are defined in the initialization block. Each check needs a name
7
7
  # and can either be a predefined check, block, or an object that responds to the +call+
@@ -145,7 +145,7 @@ module IsItWorking
145
145
  info << "Timestamp: #{Time.now.iso8601}"
146
146
  info << "Elapsed Time: #{(elapsed_time * 1000).round}ms"
147
147
 
148
- code = (fail ? 200 : 500)
148
+ code = (fail ? 200 : 417)
149
149
 
150
150
  [code, headers, [info.join("\n"), "\n\n", messages.join("\n")]]
151
151
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: is_it_working-cbeer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -152,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  segments:
154
154
  - 0
155
- hash: -807806617677205946
155
+ hash: -4565141826381760965
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  none: false
158
158
  requirements:
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -807806617677205946
164
+ hash: -4565141826381760965
165
165
  requirements: []
166
166
  rubyforge_project:
167
167
  rubygems_version: 1.8.24