health_check 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +25 -22
- data/README.rdoc +2 -2
- data/lib/health_check/health_check_controller.rb +2 -2
- data/lib/health_check/utils.rb +2 -2
- data/lib/health_check/version.rb +1 -1
- data/test/fake_smtp_server +2 -2
- data/test/rails_4.1.gemfile +19 -0
- data/test/test_with_railsapp +4 -0
- metadata +17 -5
- checksums.yaml +0 -15
data/.travis.yml
CHANGED
@@ -16,10 +16,10 @@ bundler_args: "--binstubs"
|
|
16
16
|
script: ./test/test_with_railsapp
|
17
17
|
|
18
18
|
rvm:
|
19
|
-
- 2.
|
19
|
+
- 2.1.2
|
20
20
|
|
21
21
|
gemfile:
|
22
|
-
- test/rails_4.
|
22
|
+
- test/rails_4.1.gemfile
|
23
23
|
|
24
24
|
matrix:
|
25
25
|
allow_failures:
|
@@ -44,38 +44,44 @@ matrix:
|
|
44
44
|
- rvm: jruby-head
|
45
45
|
gemfile: test/rails_edge.gemfile
|
46
46
|
|
47
|
-
# rails 4.
|
47
|
+
# rails 4.1 April 8, 2014
|
48
48
|
|
49
|
-
- rvm: 1.
|
50
|
-
gemfile: test/rails_4.
|
49
|
+
- rvm: 2.1.2
|
50
|
+
gemfile: test/rails_4.1.gemfile
|
51
|
+
env: RAILS_SERVER=puma
|
51
52
|
|
52
|
-
- rvm:
|
53
|
-
gemfile: test/rails_4.
|
53
|
+
- rvm: 2.1.2
|
54
|
+
gemfile: test/rails_4.1.gemfile
|
55
|
+
env: RAILS_SERVER=passenger
|
54
56
|
|
55
|
-
- rvm:
|
57
|
+
- rvm: 2.1.2
|
58
|
+
gemfile: test/rails_4.1.gemfile
|
59
|
+
env: RAILS_SERVER=thin
|
60
|
+
|
61
|
+
- rvm: rbx-2.2.6
|
56
62
|
gemfile: test/rails_4.0.gemfile
|
57
63
|
env: RAILS_ENV2=development
|
58
64
|
|
59
|
-
- rvm: 2.
|
60
|
-
gemfile: test/rails_4.
|
61
|
-
env: RAILS_SERVER=
|
65
|
+
- rvm: 2.1.2
|
66
|
+
gemfile: test/rails_4.1.gemfile
|
67
|
+
env: RAILS_SERVER=unicorn
|
62
68
|
|
63
|
-
- rvm:
|
69
|
+
- rvm: jruby-19mode
|
70
|
+
gemfile: test/rails_4.1.gemfile
|
71
|
+
|
72
|
+
# rails 4.0 June 25, 2013
|
73
|
+
|
74
|
+
- rvm: 1.9.3
|
64
75
|
gemfile: test/rails_4.0.gemfile
|
65
|
-
env: RAILS_SERVER=passenger
|
66
76
|
|
67
|
-
- rvm: 2.
|
77
|
+
- rvm: rbx-2.2.6
|
68
78
|
gemfile: test/rails_4.0.gemfile
|
69
|
-
env:
|
79
|
+
env: RAILS_ENV2=development
|
70
80
|
|
71
81
|
- rvm: 2.0.0
|
72
82
|
gemfile: test/rails_4.0.gemfile
|
73
|
-
env: RAILS_SERVER=unicorn
|
74
83
|
|
75
84
|
# rails 3.2 jan 20, 2012 - ruby 1.8.7 or 1.9.2
|
76
|
-
- rvm: 1.8.7
|
77
|
-
gemfile: test/rails_3.2.gemfile
|
78
|
-
|
79
85
|
- rvm: 1.9.3
|
80
86
|
gemfile: test/rails_3.2.gemfile
|
81
87
|
|
@@ -85,9 +91,6 @@ matrix:
|
|
85
91
|
- rvm: jruby-19mode
|
86
92
|
gemfile: test/rails_3.2.gemfile
|
87
93
|
|
88
|
-
- rvm: rbx
|
89
|
-
gemfile: test/rails_3.2.gemfile
|
90
|
-
|
91
94
|
# rails 3.1 aug 31, 2011 - ruby 1.8.7 or 1.9.2
|
92
95
|
- rvm: 1.9.2
|
93
96
|
gemfile: test/rails_3.1.gemfile
|
data/README.rdoc
CHANGED
@@ -24,7 +24,7 @@ On failure a 500 http status is returned with a simple explanation of the failur
|
|
24
24
|
curl localhost:3000/health_check/fail
|
25
25
|
health_check failed: invalid argument to health_test.
|
26
26
|
|
27
|
-
The health_check controller disables sessions
|
27
|
+
The health_check controller disables sessions for versions that eagerly load sessions. Only failures are logged for rails < '4.1'.
|
28
28
|
|
29
29
|
== Checks
|
30
30
|
|
@@ -229,7 +229,7 @@ The command `rake test` will also launch these tests, except it cannot install t
|
|
229
229
|
|
230
230
|
== Copyright
|
231
231
|
|
232
|
-
Copyright (c) 2010-
|
232
|
+
Copyright (c) 2010-2014 Ian Heggie, released under the MIT license.
|
233
233
|
See MIT-LICENSE for details.
|
234
234
|
|
235
235
|
== Contributors
|
@@ -32,9 +32,9 @@ module HealthCheck
|
|
32
32
|
end
|
33
33
|
# Log a single line as some uptime checkers only record that it failed, not the text returned
|
34
34
|
if logger
|
35
|
-
silence_level, logger.level = logger.level, @old_logger_level
|
35
|
+
silence_level, logger.level = logger.level, @old_logger_level if @old_logger_level
|
36
36
|
logger.info msg
|
37
|
-
logger.level = silence_level
|
37
|
+
logger.level = silence_level if @old_logger_level
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/lib/health_check/utils.rb
CHANGED
@@ -117,11 +117,11 @@ module HealthCheck
|
|
117
117
|
while status != nil && status !~ /^2/
|
118
118
|
status = t.gets
|
119
119
|
end
|
120
|
-
t.puts "HELO #{settings[:domain]}"
|
120
|
+
t.puts "HELO #{settings[:domain]}\r"
|
121
121
|
while status != nil && status !~ /^250/
|
122
122
|
status = t.gets
|
123
123
|
end
|
124
|
-
t.puts "QUIT"
|
124
|
+
t.puts "QUIT\r"
|
125
125
|
status = t.gets
|
126
126
|
ensure
|
127
127
|
t.close
|
data/lib/health_check/version.rb
CHANGED
data/test/fake_smtp_server
CHANGED
@@ -23,8 +23,8 @@ client = server.accept # Wait for a client to connect
|
|
23
23
|
send(client, "220 dummy-smtp.example.com SMTP")
|
24
24
|
cmd = receive(client)
|
25
25
|
|
26
|
-
while cmd !~ /^QUIT/
|
27
|
-
if cmd =~ /^HELO/
|
26
|
+
while cmd !~ /^QUIT\r/
|
27
|
+
if cmd =~ /^HELO(.*)\r/
|
28
28
|
send(client, "250 Welcome to a dummy smtp server")
|
29
29
|
else
|
30
30
|
send(client, "502 I am so dumb I only understand HELO and QUIT")
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Gemfile for health_test testing
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
ruby '1.9.3' if RUBY_VERSION < '1.9.3'
|
6
|
+
|
7
|
+
gem 'rails', "~> 4.1.0"
|
8
|
+
gem 'rake', '>= 0.8.3'
|
9
|
+
gem "rack", '~> 1.5.2'
|
10
|
+
|
11
|
+
group :development, :test do
|
12
|
+
if defined?(JRUBY_VERSION)
|
13
|
+
gem 'jruby-openssl'
|
14
|
+
gem 'activerecord-jdbcsqlite3-adapter'
|
15
|
+
else
|
16
|
+
gem 'sqlite3', "~> 1.3.7"
|
17
|
+
end
|
18
|
+
gem 'shoulda'
|
19
|
+
end
|
data/test/test_with_railsapp
CHANGED
@@ -306,6 +306,10 @@ common_tests()
|
|
306
306
|
date > $custom_file
|
307
307
|
}
|
308
308
|
|
309
|
+
|
310
|
+
# required for rails 4.1+ in production mode
|
311
|
+
export SECRET_KEY_BASE=cf2f49c38a3fe67416ddf680f4f3187c0fce7dd1b9b117b34d195df75b274e08a04877e23803b2fdf1aa9a655269d94bc4888aa325cf7e721cc47368cfe56a80
|
312
|
+
|
309
313
|
echo ========================================================
|
310
314
|
echo TESTING WITHOUT CATCHALL in test env
|
311
315
|
echo ========================================================
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: health_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Ian Heggie
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rails
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: rake
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: shoulda
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: bundler
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -105,6 +114,7 @@ files:
|
|
105
114
|
- test/rails_3.1.gemfile
|
106
115
|
- test/rails_3.2.gemfile
|
107
116
|
- test/rails_4.0.gemfile
|
117
|
+
- test/rails_4.1.gemfile
|
108
118
|
- test/rails_edge.gemfile
|
109
119
|
- test/setup_railsapp
|
110
120
|
- test/test_helper.rb
|
@@ -114,26 +124,27 @@ files:
|
|
114
124
|
- test/unit/routes_test.rb
|
115
125
|
homepage: https://github.com/ianheggie/health_check
|
116
126
|
licenses: []
|
117
|
-
metadata: {}
|
118
127
|
post_install_message:
|
119
128
|
rdoc_options: []
|
120
129
|
require_paths:
|
121
130
|
- lib
|
122
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
123
133
|
requirements:
|
124
134
|
- - ! '>='
|
125
135
|
- !ruby/object:Gem::Version
|
126
136
|
version: '0'
|
127
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
128
139
|
requirements:
|
129
140
|
- - ! '>='
|
130
141
|
- !ruby/object:Gem::Version
|
131
142
|
version: '0'
|
132
143
|
requirements: []
|
133
144
|
rubyforge_project:
|
134
|
-
rubygems_version:
|
145
|
+
rubygems_version: 1.8.23.2
|
135
146
|
signing_key:
|
136
|
-
specification_version:
|
147
|
+
specification_version: 3
|
137
148
|
summary: Simple health check of Rails app for uptime monitoring with Pingdom, NewRelic,
|
138
149
|
EngineYard or uptime.openacs.org etc.
|
139
150
|
test_files:
|
@@ -149,6 +160,7 @@ test_files:
|
|
149
160
|
- test/rails_3.1.gemfile
|
150
161
|
- test/rails_3.2.gemfile
|
151
162
|
- test/rails_4.0.gemfile
|
163
|
+
- test/rails_4.1.gemfile
|
152
164
|
- test/rails_edge.gemfile
|
153
165
|
- test/setup_railsapp
|
154
166
|
- test/test_helper.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
ODRiZmUyM2E5NDZhNzM4MjgxZDEwMDI3OTcwYzg2Zjc0OTQxNDMxZg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZDQxYTQ1NmIzMGU4YmNiNWQ4MzUxMzkwZmYyNWJiMmRjYzQ1YjAwYw==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MDUwNWM3MmVmN2MxODIwMzVjN2E1YTJlNGVhN2M1YjJhZTRhODRjNmU5YmJh
|
10
|
-
N2VhNzkyNjAyZTBmOTk2OTgzYWZiYjdjYmU4ZjRlYzIwMjllZTEwYTRkYjNj
|
11
|
-
ZmJjNDY2M2E4YjEyZmVlMWJmZjhiNDBhNmI4NTc1NjA3ZjVlYmU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZmYzMjVhZGMyZmE0ZGMxY2E4YmRiYTQ4ODEzNTI2YWYxMmEyNDYyNDliOWQy
|
14
|
-
ZjVmMjUyMzA0OTZhN2MxZDU1NmMxNTdlOTg5NzFkNjdkY2RhZGMwYTAyODA5
|
15
|
-
ZGIxZTE5NDI1ZmY1YzA3N2E4MTRhYjYxMzJkNDI2NzdmYjRjNGU=
|