health_check 2.8.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 812ae12a10cfd6d24437f79dac7bd3b56ba46b01
4
+ data.tar.gz: a9df5e7810a0a165c56f69f6bf837ace4e2280cd
5
+ SHA512:
6
+ metadata.gz: 0da389e2581efa8883b27cea5dd76aa789caae942d11abccddd64455b7a03add304869b9e418e61f1a20206f6ed86eea4fa52ad74162c1e885724d0d984ba1d1
7
+ data.tar.gz: 4a726df067df79fe849dadf29e23d5794205de76c3b3fcd18756e354b711c650cc73c6d10a6121ac11adedf69aeaaacfe70c518377d3687ba4bfd6aff98cfec7
@@ -30,100 +30,50 @@ matrix:
30
30
  # -------------------------------------
31
31
  # Standard
32
32
 
33
- # rails 4.2 Dec, 2014
33
+ # ruby 5.0 Jun. 2016
34
34
 
35
- - rvm: 2.2.0
36
- gemfile: test/rails_4.2.gemfile
37
- env: RAILS_VERSION=4.2 MIDDLEWARE=no
35
+ - rvm: 2.2.2
36
+ gemfile: test/rails_5.0.gemfile
37
+ env: RAILS_VERSION=5.0 MIDDLEWARE=no
38
38
 
39
- - rvm: 2.1.2
40
- gemfile: test/rails_4.2.gemfile
41
- env: RAILS_SERVER=puma RAILS_VERSION=4.2 MIDDLEWARE=no
39
+ - rvm: 2.3.6
40
+ gemfile: test/rails_5.0.gemfile
41
+ env: RAILS_VERSION=5.0 MIDDLEWARE=no
42
42
 
43
- # Can't find i18n?? because it can't compile?
44
- #- rvm: 2.1.2
45
- # gemfile: test/rails_4.2.gemfile
46
- # env: RAILS_SERVER=passenger RAILS_VERSION=4.2
47
-
48
- - rvm: 2.1.2
49
- gemfile: test/rails_4.2.gemfile
50
- env: RAILS_SERVER=thin RAILS_VERSION=4.2 MIDDLEWARE=no
51
-
52
- # No longer supported by travis
53
- #- rvm: rbx-2.2.6
54
- # gemfile: test/rails_4.0.gemfile
55
- # env: RAILS_ENV2=development RAILS_VERSION=4.0
56
-
57
- - rvm: 2.1.2
58
- gemfile: test/rails_4.2.gemfile
59
- env: RAILS_SERVER=unicorn RAILS_VERSION=4.2 MIDDLEWARE=no
60
-
61
- # Disabled because it takes way too long (40+ mins)
62
- # Temporary version lock until Bundler >= 1.13.2
63
- # https://github.com/bundler/bundler/issues/4975
64
- #- rvm: jruby-19mode
65
- # gemfile: test/rails_4.2.gemfile
66
- # env: BUNDLER_VERSION=1.12.5 RAILS_VERSION=4.2
67
-
68
- # rails 4.1 April 8, 2014
43
+ # rails 5.1 sometime before May 2017
69
44
 
70
- - rvm: 2.1.2
71
- gemfile: test/rails_4.1.gemfile
72
- env: RAILS_VERSION=4.1 MIDDLEWARE=no
45
+ - rvm: 2.2.2
46
+ gemfile: test/rails_5.1.gemfile
47
+ env: RAILS_VERSION=5.1 MIDDLEWARE=no
73
48
 
74
- # rails 4.0
75
-
76
- - rvm: 1.9.3
77
- gemfile: test/rails_4.0.gemfile
78
- env: RAILS_VERSION=4.0 MIDDLEWARE=no
49
+ - rvm: 2.3.6
50
+ gemfile: test/rails_5.1.gemfile
51
+ env: RAILS_VERSION=5.1 MIDDLEWARE=no
52
+
53
+ - rvm: 2.4.3
54
+ gemfile: test/rails_5.1.gemfile
55
+ env: RAILS_VERSION=5.1 MIDDLEWARE=no
79
56
 
80
57
  # -------------------------------------
81
- # INSTALLED AS MIDDLEWARE
58
+ # Middleware
82
59
 
83
- # rails 4.2 Dec, 2014
60
+ # ruby 5.0 Jun. 2016
84
61
 
85
- - rvm: 2.2.0
86
- gemfile: test/rails_4.2.gemfile
87
- env: RAILS_VERSION=4.2 MIDDLEWARE=YES
62
+ - rvm: 2.2.2
63
+ gemfile: test/rails_5.0.gemfile
64
+ env: RAILS_VERSION=5.0 MIDDLEWARE=yes
88
65
 
89
- - rvm: 2.1.2
90
- gemfile: test/rails_4.2.gemfile
91
- env: RAILS_SERVER=puma RAILS_VERSION=4.2 MIDDLEWARE=YES
66
+ - rvm: 2.3.6
67
+ gemfile: test/rails_5.0.gemfile
68
+ env: RAILS_VERSION=5.0 MIDDLEWARE=yes
92
69
 
93
- # Can't find i18n?? because it can't compile?
94
- #- rvm: 2.1.2
95
- # gemfile: test/rails_4.2.gemfile
96
- # env: RAILS_SERVER=passenger RAILS_VERSION=4.2
97
-
98
- - rvm: 2.1.2
99
- gemfile: test/rails_4.2.gemfile
100
- env: RAILS_SERVER=thin RAILS_VERSION=4.2 MIDDLEWARE=YES
101
-
102
- # No longer supported by travis
103
- #- rvm: rbx-2.2.6
104
- # gemfile: test/rails_4.0.gemfile
105
- # env: RAILS_ENV2=development RAILS_VERSION=4.0 MIDDLEWARE=YES
106
-
107
- - rvm: 2.1.2
108
- gemfile: test/rails_4.2.gemfile
109
- env: RAILS_SERVER=unicorn RAILS_VERSION=4.2 MIDDLEWARE=YES
110
-
111
- # Disabled because it takes way too long (40+ mins)
112
- # Temporary version lock until Bundler >= 1.13.2
113
- # https://github.com/bundler/bundler/issues/4975
114
- #- rvm: jruby-19mode
115
- # gemfile: test/rails_4.2.gemfile
116
- # env: BUNDLER_VERSION=1.12.5 RAILS_VERSION=4.2 MIDDLEWARE=YES
117
-
118
- # rails 4.1 April 8, 2014
70
+ # rails 5.1 sometime before May 2017
119
71
 
120
- - rvm: 2.1.2
121
- gemfile: test/rails_4.1.gemfile
122
- env: RAILS_VERSION=4.1 MIDDLEWARE=YES
72
+ - rvm: 2.2.2
73
+ gemfile: test/rails_5.1.gemfile
74
+ env: RAILS_VERSION=5.1 MIDDLEWARE=yes
123
75
 
124
- # rails 4.0
125
-
126
- - rvm: 1.9.3
127
- gemfile: test/rails_4.0.gemfile
128
- env: RAILS_VERSION=4.0 MIDDLEWARE=YES
76
+ - rvm: 2.4.3
77
+ gemfile: test/rails_5.1.gemfile
78
+ env: RAILS_VERSION=5.1 MIDDLEWARE=yes
129
79
 
data/CHANGELOG CHANGED
@@ -1,11 +1,15 @@
1
1
  = Change Log =
2
2
 
3
- * 2.8.0
4
- * First release on renamed rails4 branch
5
- * redis_url now defaults to nil (url determined by redis gem)
3
+ * 3.0.0
4
+ * First release on rails5 branch
6
5
  * Depends on railties rather than rails so it can be used with trimmed down stacks
7
- * Cleaned up README, made install instructions version specific
8
- * Cleaned up test code, uses smarter_bundler to handle gem ruby version isssues
6
+ * Corrected ruby version required to match rails
7
+ * Cleaned up README
8
+ * redis_url now defaults to nil (url determined by redis gem)
9
+ * Cleaned out rails 4.0 dependent code
10
+ * Cleaned up test code and updated to rails 5 standards, uses smarter_bundler to handle gem ruby version isssues
11
+ * Added rails 5.1 test
12
+ * Split all releases to this rails* branchs - master is only for edge development
9
13
 
10
14
  * 2.7.0
11
15
  * Add ability to check health of redis when url is non-standard redis url
data/Gemfile CHANGED
@@ -18,6 +18,3 @@ group :development, :test do
18
18
  gem 'mime-types', defined?(JRUBY_VERSION) || RUBY_VERSION < '2.0' ? '< 3' : '>= 3.0'
19
19
 
20
20
  end
21
-
22
- gem 'rake', '< 12.3.0' if RUBY_VERSION < '2.0' # REQUIRED
23
- gem 'nokogiri', [">=0", "< 1.7.0"] if RUBY_VERSION < '2.0' # REQUIRED
@@ -1,6 +1,6 @@
1
- = health_check gem (rails4)
1
+ = health_check gem
2
2
 
3
- Simple health check of Rails 4.x apps for use with Pingdom, NewRelic, EngineYard or uptime.openacs.org etc.
3
+ Simple health check of Rails 5.x apps for use with Pingdom, NewRelic, EngineYard or uptime.openacs.org etc.
4
4
 
5
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)
6
6
 
@@ -28,7 +28,7 @@ On failure (detected by health_check) a 500 http status is returned with a simpl
28
28
  curl localhost:3000/health_check/fail
29
29
  health_check failed: invalid argument to health_test.
30
30
 
31
- The health_check controller disables sessions for versions that eagerly load sessions. Only failures are logged for rails < '4.1'.
31
+ The health_check controller disables sessions for versions that eagerly load sessions.
32
32
 
33
33
  == Checks
34
34
 
@@ -57,7 +57,7 @@ Note: rails also checks migrations by default in development mode and throws an
57
57
 
58
58
  Add the following line to Gemfile
59
59
 
60
- gem "health_check", "~> 2.8"
60
+ gem "health_check"
61
61
 
62
62
  And then execute
63
63
 
@@ -65,7 +65,7 @@ And then execute
65
65
 
66
66
  Or install it yourself as:
67
67
 
68
- gem install --version '~> 2.8' health_check
68
+ gem install health_check
69
69
 
70
70
  == Configuration
71
71
 
@@ -247,7 +247,7 @@ Last-modified is set to the current time (rounded down to a multiple of max_age
247
247
 
248
248
  === Automated testing and other checks
249
249
 
250
- * {<img src="https://travis-ci.org/ianheggie/health_check.svg?branch=rails4">}[https://travis-ci.org/ianheggie/health_check.svg?branch=rails4] - Travis CI
250
+ * {<img src="https://travis-ci.org/ianheggie/health_check.svg?branch=rails5">}[https://travis-ci.org/ianheggie/health_check.svg?branch=rails5] - Travis CI
251
251
 
252
252
  === Manual testing
253
253
 
@@ -20,8 +20,8 @@ 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.9.3'
24
- gem.add_dependency(%q<railties>, ["~> 4.0"])
23
+ gem.required_ruby_version = '>= 2.2.2'
24
+ gem.add_dependency(%q<railties>, [">= 5.0"])
25
25
  gem.add_development_dependency(%q<smarter_bundler>, [">= 0.1.0"])
26
26
  gem.add_development_dependency(%q<rake>, [">= 0.8.3"])
27
27
  gem.add_development_dependency(%q<shoulda>, ["~> 2.11.0"])
@@ -44,10 +44,10 @@ module HealthCheck
44
44
  msg ||= HealthCheck.success
45
45
  obj = { :healthy => healthy, :message => msg}
46
46
  respond_to do |format|
47
- format.html { render plain_key => msg, :status => text_status, :content_type => 'text/plain' }
47
+ format.html { render :plain => msg, :status => text_status, :content_type => 'text/plain' }
48
48
  format.json { render :json => obj, :status => obj_status }
49
49
  format.xml { render :xml => obj, :status => obj_status }
50
- format.any { render plain_key => msg, :status => text_status, :content_type => 'text/plain' }
50
+ format.any { render :plain => msg, :status => text_status, :content_type => 'text/plain' }
51
51
  end
52
52
  end
53
53
 
@@ -61,7 +61,7 @@ module HealthCheck
61
61
  def check_origin_ip
62
62
  unless HealthCheck.origin_ip_whitelist.blank? ||
63
63
  HealthCheck.origin_ip_whitelist.include?(request.ip)
64
- render plain_key => 'Health check is not allowed for the requesting IP',
64
+ render :plain => 'Health check is not allowed for the requesting IP',
65
65
  :status => HealthCheck.http_status_for_ip_whitelist_error,
66
66
  :content_type => 'text/plain'
67
67
  end
@@ -72,9 +72,5 @@ module HealthCheck
72
72
  false
73
73
  end
74
74
 
75
- def plain_key
76
- # Rails 4.0 doesn't have :plain, but it is deprecated later on
77
- Rails.version < '4.1' ? :text : :plain
78
- end
79
75
  end
80
76
  end
@@ -1,3 +1,3 @@
1
1
  module HealthCheck
2
- VERSION = "2.8.0"
2
+ VERSION = "3.0.0"
3
3
  end
@@ -1,4 +1,4 @@
1
- class CreateCountries < ActiveRecord::Migration
1
+ class CreateCountries < ActiveRecord::Migration[5.0]
2
2
  def self.up
3
3
  create_table :countries do |t|
4
4
  t.column :name, :string
@@ -1,4 +1,4 @@
1
- class CreateRoles < ActiveRecord::Migration
1
+ class CreateRoles < ActiveRecord::Migration[5.0]
2
2
  def self.up
3
3
  create_table :roles do |t|
4
4
  t.column :name, :string
@@ -1,4 +1,4 @@
1
- class CreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration[5.0]
2
2
  def self.up
3
3
  create_table "users", :force => true do |t|
4
4
  t.column :name, :string
@@ -1,4 +1,4 @@
1
- class CreateCountries < ActiveRecord::Migration
1
+ class CreateCountries < ActiveRecord::Migration[5.0]
2
2
  def self.up
3
3
  create_table :countries do |t|
4
4
  t.column :name, :string
@@ -0,0 +1,28 @@
1
+ # Gemfile for health_test testing
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ ruby RUBY_VERSION < '2.2.2' ? '2.2.2' : RUBY_VERSION
6
+
7
+ gem 'rails', '~> 5.0.0'
8
+ gem 'rake', '>= 0.8.7'
9
+
10
+ gem 'listen', '<3.1.2' # REQUIRED
11
+
12
+ group :development, :test do
13
+ if defined?(JRUBY_VERSION)
14
+ gem 'jruby-openssl'
15
+ gem 'activerecord-jdbcsqlite3-adapter'
16
+ else
17
+ gem 'sqlite3', "~> 1.3.7"
18
+ end
19
+ gem 'shoulda'
20
+
21
+ # redis based checks
22
+ gem 'sidekiq', :require => !ENV['SIDEKIQ'].nil?
23
+ gem 'redis', :require => !ENV['REDIS_URL'].nil?
24
+ gem 'resque', :require => !ENV['RESQUE'].nil?
25
+ # s3 check
26
+ gem 'aws-sdk', :require => !ENV['AWS_ACCESS_KEY_ID'].nil?
27
+ end
28
+
@@ -0,0 +1,35 @@
1
+ # Gemfile for health_test testing
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ ruby RUBY_VERSION < '2.2.2' ? '2.2.2' : RUBY_VERSION
6
+
7
+ gem 'rails', '~> 5.1.0'
8
+ gem 'rake', '>= 0.8.7'
9
+
10
+ # spring-watcher-listen was resolved to 2.0.1, which depends on
11
+ # listen was resolved to 3.1.5, which depends on
12
+ # ruby_dep
13
+ # and ruby_dep 1.5 requires 2.2.3 or later
14
+ gem 'ruby_dep', '~> 1.3.0' # REQUIRED
15
+
16
+ gem 'listen', '<3.1.2' # REQUIRED
17
+
18
+ group :development, :test do
19
+ if defined?(JRUBY_VERSION)
20
+ gem 'jruby-openssl'
21
+ gem 'activerecord-jdbcsqlite3-adapter'
22
+ else
23
+ gem 'sqlite3', "~> 1.3.7"
24
+ end
25
+ gem 'shoulda'
26
+
27
+ # redis based checks
28
+ gem 'sidekiq', :require => !ENV['SIDEKIQ'].nil?
29
+ gem 'redis', :require => !ENV['REDIS_URL'].nil?
30
+ gem 'resque', :require => !ENV['RESQUE'].nil?
31
+ # s3 check
32
+ gem 'aws-sdk', :require => !ENV['AWS_ACCESS_KEY_ID'].nil?
33
+
34
+ end
35
+
@@ -123,8 +123,24 @@ case `ruby -e 'puts JRUBY_VERSION' 2> /dev/null` in
123
123
  esac
124
124
 
125
125
  echo "Creating $actual_rails_version app in $tmp_dir/railsapp using adapter $db"
126
-
127
- $rails new railsapp --skip-bundle -d $db
126
+ case "$actual_rails_version" in
127
+ *' '[12].*)
128
+ $rails railsapp -d $db
129
+ ;;
130
+ *' '[345].*)
131
+ case "$BUNDLE_GEMFILE" in
132
+ *rails_edge.gemfile)
133
+ $rails new railsapp --skip-bundle -d $db --edge
134
+ ;;
135
+ *)
136
+ $rails new railsapp --skip-bundle -d $db
137
+ ;;
138
+ esac
139
+ ;;
140
+ *)
141
+ echo "Unknown rails version"
142
+ ;;
143
+ esac
128
144
 
129
145
  cd $railsapp
130
146
 
@@ -177,9 +193,6 @@ then
177
193
  echo Missing Gemfile!
178
194
  exit 2
179
195
  fi
180
-
181
- rm -f Gemfile.lock
182
-
183
196
  echo Adding health_check as gem to Gemfile...
184
197
  echo "gem 'health_check', :path => '$base_dir'" >> Gemfile
185
198
 
@@ -193,11 +206,7 @@ webrick|'')
193
206
  ;;
194
207
  esac
195
208
 
196
- case "$INITIAL_BUNDLE_GEMFILE" in
197
- */test/rails_4.0.gemfile)
198
- sed -i.bak -e '/turbolinks/s/^/#Broken with ruby 1.9.3 # /' Gemfile
199
- ;;
200
- esac
209
+ sed -i.bak -e '/listen/s/^/#Earlier version required # /' Gemfile
201
210
 
202
211
  egrep REQUIRED < ${INITIAL_BUNDLE_GEMFILE} >> Gemfile || echo No required gems found...
203
212
 
@@ -341,20 +350,13 @@ cat > app/controllers/example_controller.rb <<'EOF'
341
350
  class ExampleController < ApplicationController
342
351
 
343
352
  def index
344
- render plain_key => 'example page'
353
+ render :plain => 'example page'
345
354
  end
346
355
 
347
356
  def catchall
348
- render plain_key => 'catch all route'
357
+ render :plain => 'catch all route'
349
358
  end
350
359
 
351
- private
352
-
353
- def plain_key
354
- # Rails 4.0 doesn't have :plain, but it is deprecated later on
355
- Rails.version < '4.1' ? :text : :plain
356
- end
357
-
358
360
  end
359
361
 
360
362
  EOF
@@ -374,7 +376,7 @@ case "$MIDDLEWARE" in
374
376
 
375
377
  echo " # -----------------------------------------"
376
378
  echo " # START OF SECTION FOR TESTING HEALTH_CHECK"
377
- echo " config.middleware.insert_after 'Rails::Rack::Logger', HealthCheck::MiddlewareHealthcheck"
379
+ echo " config.middleware.insert_after Rails::Rack::Logger, HealthCheck::MiddlewareHealthcheck"
378
380
  echo " # END OF SECTION FOR TESTING HEALTH_CHECK"
379
381
  echo " # ---------------------------------------"
380
382
  ruby -n -e 'print if /^ *end/..9999' config/application.rb-old | tee /tmp/t$$
@@ -39,15 +39,6 @@ redo)
39
39
  ;;
40
40
  esac
41
41
 
42
- case "$actual_rails_version" in
43
- '4.0.'*|*' 4.0.'*)
44
- example_mime_type=text/html
45
- ;;
46
- *)
47
- example_mime_type=text/plain
48
- ;;
49
- esac
50
-
51
42
  run_test=$2
52
43
 
53
44
  cd $railsapp
@@ -250,14 +241,14 @@ common_tests()
250
241
  test_no=`expr 1 + $test_no`
251
242
  if [ -z "$run_test" ] || [ $test_no == "$run_test" ]; then
252
243
  echo "${test_no}: TESTING can get an example controller ..."
253
- $testurl ${host}/example 200 $example_mime_type 'example page'
244
+ $testurl ${host}/example 200 text/plain 'example page'
254
245
  echo
255
246
  fi
256
247
 
257
248
  test_no=`expr 1 + $test_no`
258
249
  if [ -z "$run_test" ] || [ $test_no == "$run_test" ]; then
259
250
  echo "${test_no}: TESTING direct call to catchall method on example controller ..."
260
- $testurl ${host}/example/catchall 200 $example_mime_type 'catch all route'
251
+ $testurl ${host}/example/catchall 200 text/plain 'catch all route'
261
252
  echo
262
253
  fi
263
254
 
@@ -658,7 +649,7 @@ case "$run_test" in
658
649
 
659
650
  echo
660
651
  echo 'TESTING catchall route active ...'
661
- $testurl ${host}/another/url 200 $example_mime_type 'catch all route'
652
+ $testurl ${host}/another/url 200 text/plain 'catch all route'
662
653
  echo
663
654
 
664
655
  common_tests 200
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
5
- prerelease:
4
+ version: 3.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ian Heggie
@@ -14,84 +13,74 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '4.0'
19
+ version: '5.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '4.0'
26
+ version: '5.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: smarter_bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.1.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.1.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.8.3
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.8.3
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: shoulda
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: 2.11.0
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: 2.11.0
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: bundler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: '1.2'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: '1.2'
94
- description: ! " \tSimple health check of Rails app for uptime monitoring with Pingdom,
83
+ description: " \tSimple health check of Rails app for uptime monitoring with Pingdom,
95
84
  NewRelic, EngineYard or uptime.openacs.org etc.\n"
96
85
  email:
97
86
  - ian@heggie.biz
@@ -100,9 +89,9 @@ extensions: []
100
89
  extra_rdoc_files:
101
90
  - README.rdoc
102
91
  files:
103
- - .document
104
- - .gitignore
105
- - .travis.yml
92
+ - ".document"
93
+ - ".gitignore"
94
+ - ".travis.yml"
106
95
  - CHANGELOG
107
96
  - Gemfile
108
97
  - MIT-LICENSE
@@ -131,35 +120,33 @@ files:
131
120
  - test/migrate/twelve/012_create_users.rb
132
121
  - test/migrate/twelve/9_create_countries.rb
133
122
  - test/provision_vagrant
134
- - test/rails_4.0.gemfile
135
- - test/rails_4.1.gemfile
136
- - test/rails_4.2.gemfile
123
+ - test/rails_5.0.gemfile
124
+ - test/rails_5.1.gemfile
137
125
  - test/setup_railsapp
138
126
  - test/test_with_railsapp
139
127
  - test/testurl
140
128
  homepage: https://github.com/ianheggie/health_check
141
129
  licenses: []
130
+ metadata: {}
142
131
  post_install_message:
143
132
  rdoc_options: []
144
133
  require_paths:
145
134
  - lib
146
135
  required_ruby_version: !ruby/object:Gem::Requirement
147
- none: false
148
136
  requirements:
149
- - - ! '>='
137
+ - - ">="
150
138
  - !ruby/object:Gem::Version
151
- version: 1.9.3
139
+ version: 2.2.2
152
140
  required_rubygems_version: !ruby/object:Gem::Requirement
153
- none: false
154
141
  requirements:
155
- - - ! '>='
142
+ - - ">="
156
143
  - !ruby/object:Gem::Version
157
144
  version: '0'
158
145
  requirements: []
159
146
  rubyforge_project:
160
- rubygems_version: 1.8.23.2
147
+ rubygems_version: 2.5.2
161
148
  signing_key:
162
- specification_version: 3
149
+ specification_version: 4
163
150
  summary: Simple health check of Rails app for uptime monitoring with Pingdom, NewRelic,
164
151
  EngineYard or uptime.openacs.org etc.
165
152
  test_files:
@@ -171,9 +158,8 @@ test_files:
171
158
  - test/migrate/twelve/012_create_users.rb
172
159
  - test/migrate/twelve/9_create_countries.rb
173
160
  - test/provision_vagrant
174
- - test/rails_4.0.gemfile
175
- - test/rails_4.1.gemfile
176
- - test/rails_4.2.gemfile
161
+ - test/rails_5.0.gemfile
162
+ - test/rails_5.1.gemfile
177
163
  - test/setup_railsapp
178
164
  - test/test_with_railsapp
179
165
  - test/testurl
@@ -1,36 +0,0 @@
1
- # Gemfile for health_test testing
2
-
3
- source 'https://rubygems.org'
4
-
5
- ruby RUBY_VERSION < '1.9.3' ? '1.9.3' : RUBY_VERSION
6
-
7
- gem 'rails', "~> 4.0.0"
8
- gem 'rake', '>= 0.8.3' # REQUIRED
9
- gem "rack", '~> 1.5.2' # REQUIRED
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
-
20
- # redis based checks
21
- gem 'sidekiq', '< 5.0.4',:require => !ENV['SIDEKIQ'].nil?
22
- gem 'redis', '< 4.0', :require => !ENV['REDIS_URL'].nil?
23
- gem 'resque', :require => !ENV['RESQUE'].nil?
24
- # s3 check
25
- gem 'aws-sdk', :require => !ENV['AWS_ACCESS_KEY_ID'].nil?
26
- end
27
-
28
- # Initial Gemfile has therubyracer commented out
29
- gem 'therubyrhino', :platform => :jruby # REQUIRED
30
- gem 'therubyracer', :platform => :ruby # REQUIRED
31
- # mime-types 2.0 requires Ruby version >= 1.9.2
32
- # mime-types 3.0 requires Ruby version >= 2.0
33
- gem 'mime-types', defined?(JRUBY_VERSION) || RUBY_VERSION < '2.0' ? '< 3' : '>= 3.0' # REQUIRED
34
-
35
-
36
- gem 'turbolinks', :github => 'turbolinks/turbolinks-classic' # REQUIRED instead of turbolinks
@@ -1,33 +0,0 @@
1
- # Gemfile for health_test testing
2
-
3
- source 'https://rubygems.org'
4
-
5
- ruby RUBY_VERSION < '1.9.3' ? '1.9.3' : RUBY_VERSION
6
-
7
- gem 'rails', "~> 4.1.0"
8
- gem 'rake', '>= 0.8.3' # REQUIRED
9
- gem "rack", '~> 1.5.2' # REQUIRED
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
-
20
- # redis based checks
21
- gem 'sidekiq', '< 5.0.4', :require => !ENV['SIDEKIQ'].nil?
22
- gem 'redis', '< 4.0', :require => !ENV['REDIS_URL'].nil?
23
- gem 'resque', :require => !ENV['RESQUE'].nil?
24
- # s3 check
25
- gem 'aws-sdk', :require => !ENV['AWS_ACCESS_KEY_ID'].nil?
26
- end
27
-
28
- # Initial Gemfile has therubyracer commented out
29
- gem 'therubyrhino', :platform => :jruby # REQUIRED
30
- gem 'therubyracer', :platform => :ruby # REQUIRED
31
- # mime-types 2.0 requires Ruby version >= 1.9.2
32
- # mime-types 3.0 requires Ruby version >= 2.0
33
- gem 'mime-types', defined?(JRUBY_VERSION) || RUBY_VERSION < '2.0' ? '< 3' : '>= 3.0' # REQUIRED
@@ -1,32 +0,0 @@
1
- # Gemfile for health_test testing
2
-
3
- source 'https://rubygems.org'
4
-
5
- ruby RUBY_VERSION < '1.9.3' ? '1.9.3' : RUBY_VERSION
6
-
7
- gem 'rails', "~> 4.2.0"
8
- gem 'rake', '>= 0.8.3' # REQUIRED
9
- #gem "rack", '~> 1.6.0'
10
-
11
- gem 'sass', '<3.5.0'
12
-
13
- group :development, :test do
14
- if defined?(JRUBY_VERSION)
15
- gem 'jruby-openssl'
16
- gem 'activerecord-jdbcsqlite3-adapter'
17
- else
18
- gem 'sqlite3', "~> 1.3.7"
19
- end
20
- gem 'shoulda'
21
-
22
- # redis based checks
23
- gem 'sidekiq', '< 5.0.4', :require => !ENV['SIDEKIQ'].nil?
24
- gem 'redis', '< 4.0', :require => !ENV['REDIS_URL'].nil?
25
- gem 'resque', :require => !ENV['RESQUE'].nil?
26
- # s3 check
27
- gem 'aws-sdk', :require => !ENV['AWS_ACCESS_KEY_ID'].nil?
28
- end
29
-
30
- # mime-types 2.0 requires Ruby version >= 1.9.2
31
- # mime-types 3.0 requires Ruby version >= 2.0
32
- gem 'mime-types', defined?(JRUBY_VERSION) || RUBY_VERSION < '2.0' ? '< 3' : '>= 3.0' # REQUIRED