health_check 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -1
- data/CHANGELOG +1 -0
- data/Gemfile +1 -4
- data/README.rdoc +10 -18
- data/health_check.gemspec +2 -0
- data/lib/health_check/version.rb +1 -1
- data/test/rails_2.3.gemfile +1 -1
- data/test/rails_2.3_lts.gemfile +1 -1
- data/test/setup_railsapp +3 -3
- metadata +111 -79
data/.travis.yml
CHANGED
@@ -7,7 +7,8 @@ notifications:
|
|
7
7
|
before_install:
|
8
8
|
- gem update --system $RUBYGEMS_VERSION
|
9
9
|
- gem --version
|
10
|
-
- gem install bundler
|
10
|
+
- gem install bundler ${BUNDLER_VERSION:+-v} ${BUNDLER_VERSION}
|
11
|
+
- gem install smarter_bundler
|
11
12
|
- bundle --version
|
12
13
|
- mkdir -p tmp/bundle
|
13
14
|
|
data/CHANGELOG
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
= Change Log =
|
2
2
|
|
3
3
|
* rails2.3 branch
|
4
|
+
*1.6.3 - Specify ruby version >= 1.8.7, cleaned up testing code to assist with pull requests
|
4
5
|
*1.6.2 - Added Vagrantfile with provisioning script for easier testing, removed badges that don't work with branches
|
5
6
|
*1.6.1 - rails 2.3 only version
|
6
7
|
* rails 2.3 only version
|
data/Gemfile
CHANGED
@@ -25,12 +25,9 @@ group :development, :test do
|
|
25
25
|
end
|
26
26
|
# run travis-lint to check .travis.yml
|
27
27
|
gem 'travis-lint'
|
28
|
-
platforms :ruby_18 do
|
29
|
-
# mime-types 2.0 requires Ruby version >= 1.9.2
|
30
|
-
gem "mime-types", "< 2.0"
|
31
|
-
end
|
32
28
|
#gem 'rake', ">= 0.8.3", "< 11.0"
|
33
29
|
#gem 'rack', "< 2.0"
|
34
30
|
|
35
31
|
end
|
36
32
|
|
33
|
+
gem 'json', [">=0", "< 2.0.0"] if RUBY_VERSION < '1.9.3' # REQUIRED - Added by SmarterBundler
|
data/README.rdoc
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
= health_check gem (rails2.3 branch)
|
2
2
|
|
3
|
-
Simple health check of Rails
|
3
|
+
Simple health check of Rails 2.3 apps for use with Pingdom, NewRelic, EngineYard or uptime.openacs.org etc.
|
4
4
|
|
5
|
-
|
6
|
-
See {master}[https://github.com/ianheggie/health_check/tree/master] branch for using with later versions.
|
5
|
+
The basic goal is to quickly check that rails is up and running and that it has access to correctly configured resources (database, email gateway).
|
7
6
|
|
8
|
-
|
7
|
+
Check the latest README {master}[https://github.com/ianheggie/health_check/tree/master] for other Rails versions.
|
8
|
+
We recommend {RAILS LTS}[https://railslts.com/] rather than the unsupported 2.3 version.
|
9
9
|
|
10
10
|
health_check provides various monitoring URIs, for example:
|
11
11
|
|
@@ -50,7 +50,7 @@ Specify full or include email in the list of checks to verify the smtp settings
|
|
50
50
|
|
51
51
|
Add the following line to Gemfile
|
52
52
|
|
53
|
-
gem "health_check"
|
53
|
+
gem "health_check", "~> 1.6.3"
|
54
54
|
|
55
55
|
And then execute
|
56
56
|
|
@@ -58,13 +58,13 @@ And then execute
|
|
58
58
|
|
59
59
|
Or install it yourself as:
|
60
60
|
|
61
|
-
gem install health_check
|
61
|
+
gem install --version '~> 1.6.3' health_check
|
62
62
|
|
63
63
|
=== As a Gem from rubygems (Rails 2.3)
|
64
64
|
|
65
65
|
Install the gem using the following command
|
66
66
|
|
67
|
-
gem install health_check
|
67
|
+
gem install --version '~> 1.6.3' health_check
|
68
68
|
|
69
69
|
Then add the following line to config/environment.rb within the config block
|
70
70
|
|
@@ -174,16 +174,6 @@ Will return a result with Content-Type: application/xml and body like:
|
|
174
174
|
|
175
175
|
See https://github.com/ianheggie/health_check/wiki/Ajax-Example for an Ajax example
|
176
176
|
|
177
|
-
== Note on Patches/Pull Requests
|
178
|
-
|
179
|
-
<em>Feedback welcome! Especially with suggested replacement code and corresponding tests</em>
|
180
|
-
|
181
|
-
1. Fork it
|
182
|
-
2. Create your feature branch (<tt>git checkout -b my-new-feature</tt>)
|
183
|
-
3. Commit your changes (<tt>git commit -am 'Add some feature'</tt>)
|
184
|
-
4. Push to the branch (<tt>git push origin my-new-feature</tt>)
|
185
|
-
5. Create new Pull Request.
|
186
|
-
|
187
177
|
== Known Issues
|
188
178
|
|
189
179
|
* No inline documentation for methods
|
@@ -249,7 +239,7 @@ The command `rake test` will also launch these tests, except it cannot install t
|
|
249
239
|
|
250
240
|
== Copyright
|
251
241
|
|
252
|
-
Copyright (c) 2010-
|
242
|
+
Copyright (c) 2010-2018 Ian Heggie, released under the MIT license.
|
253
243
|
See MIT-LICENSE for details.
|
254
244
|
|
255
245
|
== Contributors
|
@@ -264,3 +254,5 @@ Thanks go to the various people who have given feedback and suggestions via the
|
|
264
254
|
4. Push to the branch (`git push origin my-new-feature`)
|
265
255
|
5. Create new Pull Request (Code with BDD tests are favoured)
|
266
256
|
|
257
|
+
<em>Feedback welcome! Especially with suggested replacement code and corresponding tests!</em>
|
258
|
+
|
data/health_check.gemspec
CHANGED
@@ -20,7 +20,9 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
21
21
|
gem.extra_rdoc_files = [ "README.rdoc" ]
|
22
22
|
gem.require_paths = ["lib"]
|
23
|
+
gem.required_ruby_version = '>= 1.8.7'
|
23
24
|
gem.add_dependency(%q<rails>, ['~> 2.3.0'])
|
25
|
+
gem.add_development_dependency(%q<smarter_bundler>, [">= 0.1.0"])
|
24
26
|
gem.add_development_dependency(%q<rake>, [">= 0.8.3", "< 11.0"])
|
25
27
|
gem.add_development_dependency(%q<shoulda>, ["~> 2.11.0"])
|
26
28
|
gem.add_development_dependency(%q<bundler>, ["~> 1.2"])
|
data/lib/health_check/version.rb
CHANGED
data/test/rails_2.3.gemfile
CHANGED
data/test/rails_2.3_lts.gemfile
CHANGED
data/test/setup_railsapp
CHANGED
@@ -45,7 +45,7 @@ else
|
|
45
45
|
fi
|
46
46
|
|
47
47
|
echo "Running bundle with BUNDLE_GEMFILE=$BUNDLE_GEMFILE ..."
|
48
|
-
if !
|
48
|
+
if ! smarter_bundle ; then
|
49
49
|
echo "Test aborted (missing required gems)"
|
50
50
|
exit 2
|
51
51
|
else
|
@@ -84,7 +84,7 @@ echo Set GEM_PATH=$GEM_PATH
|
|
84
84
|
case "$BUNDLE_GEMFILE" in
|
85
85
|
*_lts*)
|
86
86
|
echo "Re-running bundle with changed GEM_PATH (required by git install of rails lts) ..."
|
87
|
-
if !
|
87
|
+
if ! env GEM_HOME=$tmp_dir/gems smarter_bundle ; then
|
88
88
|
echo "Test aborted (missing required gems)"
|
89
89
|
exit 2
|
90
90
|
else
|
@@ -201,7 +201,7 @@ then
|
|
201
201
|
cat Gemfile
|
202
202
|
echo
|
203
203
|
echo running bundle install
|
204
|
-
|
204
|
+
smarter_bundle
|
205
205
|
$rehash
|
206
206
|
echo "Using binstubs in $railsapp/bin for rails and rake commands"
|
207
207
|
rails="$railsapp/bin/rails"
|
metadata
CHANGED
@@ -1,95 +1,119 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: health_check
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 6
|
9
|
+
- 3
|
10
|
+
version: 1.6.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Ian Heggie
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2018-03-13 00:00:00 +11:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
15
22
|
name: rails
|
16
|
-
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 3
|
32
|
+
- 0
|
21
33
|
version: 2.3.0
|
22
|
-
type: :runtime
|
23
34
|
prerelease: false
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
requirement: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: smarter_bundler
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
25
40
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 27
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 1
|
48
|
+
- 0
|
49
|
+
version: 0.1.0
|
50
|
+
prerelease: false
|
51
|
+
type: :development
|
52
|
+
requirement: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
31
54
|
name: rake
|
32
|
-
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
33
56
|
none: false
|
34
|
-
requirements:
|
35
|
-
- -
|
36
|
-
- !ruby/object:Gem::Version
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 57
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
- 8
|
64
|
+
- 3
|
37
65
|
version: 0.8.3
|
38
66
|
- - <
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 39
|
69
|
+
segments:
|
70
|
+
- 11
|
71
|
+
- 0
|
72
|
+
version: "11.0"
|
42
73
|
prerelease: false
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
- - ! '>='
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 0.8.3
|
49
|
-
- - <
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '11.0'
|
52
|
-
- !ruby/object:Gem::Dependency
|
74
|
+
type: :development
|
75
|
+
requirement: *id003
|
76
|
+
- !ruby/object:Gem::Dependency
|
53
77
|
name: shoulda
|
54
|
-
|
78
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
55
79
|
none: false
|
56
|
-
requirements:
|
80
|
+
requirements:
|
57
81
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 35
|
84
|
+
segments:
|
85
|
+
- 2
|
86
|
+
- 11
|
87
|
+
- 0
|
59
88
|
version: 2.11.0
|
60
|
-
type: :development
|
61
89
|
prerelease: false
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 2.11.0
|
68
|
-
- !ruby/object:Gem::Dependency
|
90
|
+
type: :development
|
91
|
+
requirement: *id004
|
92
|
+
- !ruby/object:Gem::Dependency
|
69
93
|
name: bundler
|
70
|
-
|
94
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
71
95
|
none: false
|
72
|
-
requirements:
|
96
|
+
requirements:
|
73
97
|
- - ~>
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 11
|
100
|
+
segments:
|
101
|
+
- 1
|
102
|
+
- 2
|
103
|
+
version: "1.2"
|
77
104
|
prerelease: false
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '1.2'
|
84
|
-
description: ! " \tSimple health check of Rails app for uptime monitoring with Pingdom,
|
85
|
-
NewRelic, EngineYard or uptime.openacs.org etc.\n"
|
86
|
-
email:
|
105
|
+
type: :development
|
106
|
+
requirement: *id005
|
107
|
+
description: " \tSimple health check of Rails app for uptime monitoring with Pingdom, NewRelic, EngineYard or uptime.openacs.org etc.\n"
|
108
|
+
email:
|
87
109
|
- ian@heggie.biz
|
88
110
|
executables: []
|
111
|
+
|
89
112
|
extensions: []
|
90
|
-
|
113
|
+
|
114
|
+
extra_rdoc_files:
|
91
115
|
- README.rdoc
|
92
|
-
files:
|
116
|
+
files:
|
93
117
|
- .document
|
94
118
|
- .gitignore
|
95
119
|
- .travis.yml
|
@@ -125,35 +149,43 @@ files:
|
|
125
149
|
- test/testurl
|
126
150
|
- test/unit/health_check_controller_test.rb
|
127
151
|
- test/unit/routes_test.rb
|
152
|
+
has_rdoc: true
|
128
153
|
homepage: https://github.com/ianheggie/health_check
|
129
154
|
licenses: []
|
155
|
+
|
130
156
|
post_install_message:
|
131
157
|
rdoc_options: []
|
132
|
-
|
158
|
+
|
159
|
+
require_paths:
|
133
160
|
- lib
|
134
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
162
|
none: false
|
136
|
-
requirements:
|
137
|
-
- -
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
|
140
|
-
segments:
|
141
|
-
-
|
142
|
-
|
143
|
-
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
hash: 57
|
167
|
+
segments:
|
168
|
+
- 1
|
169
|
+
- 8
|
170
|
+
- 7
|
171
|
+
version: 1.8.7
|
172
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
173
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
hash: 3
|
178
|
+
segments:
|
179
|
+
- 0
|
180
|
+
version: "0"
|
149
181
|
requirements: []
|
182
|
+
|
150
183
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.
|
184
|
+
rubygems_version: 1.6.2
|
152
185
|
signing_key:
|
153
186
|
specification_version: 3
|
154
|
-
summary: Simple health check of Rails app for uptime monitoring with Pingdom, NewRelic,
|
155
|
-
|
156
|
-
test_files:
|
187
|
+
summary: Simple health check of Rails app for uptime monitoring with Pingdom, NewRelic, EngineYard or uptime.openacs.org etc.
|
188
|
+
test_files:
|
157
189
|
- test/fake_smtp_server
|
158
190
|
- test/init_variables
|
159
191
|
- test/migrate/empty/do_not_remove.txt
|