health_check 2.5.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -0
  3. data/.travis.yml +162 -111
  4. data/CHANGELOG +36 -0
  5. data/README.rdoc +109 -43
  6. data/Rakefile +1 -1
  7. data/Vagrantfile +32 -0
  8. data/config/routes.rb +1 -1
  9. data/health_check.gemspec +7 -6
  10. data/lib/health_check.rb +51 -6
  11. data/lib/health_check/elasticsearch_health_check.rb +15 -0
  12. data/lib/health_check/health_check_controller.rb +32 -25
  13. data/lib/health_check/health_check_routes.rb +1 -1
  14. data/lib/health_check/middleware_health_check.rb +6 -1
  15. data/lib/health_check/rabbitmq_health_check.rb +16 -0
  16. data/lib/health_check/redis_health_check.rb +20 -7
  17. data/lib/health_check/s3_health_check.rb +9 -14
  18. data/lib/health_check/utils.rb +55 -33
  19. data/lib/health_check/version.rb +1 -1
  20. data/test/fake_smtp_server +143 -24
  21. data/test/init_variables +19 -1
  22. data/test/migrate/nine/9_create_countries.rb +1 -1
  23. data/test/migrate/twelve/011_create_roles.roles.rb +1 -1
  24. data/test/migrate/twelve/012_create_users.rb +2 -2
  25. data/test/migrate/twelve/9_create_countries.rb +1 -1
  26. data/test/provision_vagrant +103 -0
  27. data/test/rails_5.0.gemfile +10 -7
  28. data/test/rails_5.1.gemfile +34 -0
  29. data/test/rails_5.2.gemfile +34 -0
  30. data/test/rails_6.0.gemfile +30 -0
  31. data/test/rails_6.1.gemfile +29 -0
  32. data/test/rails_6.2.gemfile +30 -0
  33. data/test/rails_edge.gemfile +14 -9
  34. data/test/setup_railsapp +175 -95
  35. data/test/test_with_railsapp +152 -46
  36. data/test/testurl +9 -0
  37. metadata +45 -22
  38. data/test/rails_4.0.gemfile +0 -33
  39. data/test/rails_4.1.gemfile +0 -33
  40. data/test/rails_4.2.gemfile +0 -30
@@ -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.0.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
-
20
- # redis based checks
21
- gem 'sidekiq', :require => !ENV['SIDEKIQ'].nil?
22
- gem 'redis', :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,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'
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
-
20
- # redis based checks
21
- gem 'sidekiq', :require => !ENV['SIDEKIQ'].nil?
22
- gem 'redis', :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,30 +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'
9
- #gem "rack", '~> 1.6.0'
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', :require => !ENV['SIDEKIQ'].nil?
22
- gem 'redis', :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
- # mime-types 2.0 requires Ruby version >= 1.9.2
29
- # mime-types 3.0 requires Ruby version >= 2.0
30
- gem 'mime-types', defined?(JRUBY_VERSION) || RUBY_VERSION < '2.0' ? '< 3' : '>= 3.0' # REQUIRED