tp_healthcheck 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/tp_healthcheck/check_controller.rb +1 -1
  3. data/lib/tp_healthcheck/version.rb +1 -1
  4. metadata +3 -83
  5. data/spec/dummy/README.rdoc +0 -28
  6. data/spec/dummy/Rakefile +0 -7
  7. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  8. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  9. data/spec/dummy/app/controllers/application_controller.rb +0 -6
  10. data/spec/dummy/app/helpers/application_helper.rb +0 -3
  11. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  12. data/spec/dummy/bin/bundle +0 -4
  13. data/spec/dummy/bin/rails +0 -5
  14. data/spec/dummy/bin/rake +0 -5
  15. data/spec/dummy/bin/setup +0 -30
  16. data/spec/dummy/config.ru +0 -5
  17. data/spec/dummy/config/application.rb +0 -11
  18. data/spec/dummy/config/boot.rb +0 -6
  19. data/spec/dummy/config/database.yml +0 -25
  20. data/spec/dummy/config/environment.rb +0 -6
  21. data/spec/dummy/config/environments/development.rb +0 -42
  22. data/spec/dummy/config/environments/production.rb +0 -41
  23. data/spec/dummy/config/environments/test.rb +0 -39
  24. data/spec/dummy/config/initializers/assets.rb +0 -12
  25. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
  26. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -4
  27. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -5
  28. data/spec/dummy/config/initializers/inflections.rb +0 -17
  29. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  30. data/spec/dummy/config/initializers/session_store.rb +0 -4
  31. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -15
  32. data/spec/dummy/config/locales/en.yml +0 -23
  33. data/spec/dummy/config/routes.rb +0 -57
  34. data/spec/dummy/config/secrets.yml +0 -22
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/log/development.log +0 -0
  37. data/spec/dummy/log/test.log +0 -1713
  38. data/spec/dummy/public/404.html +0 -67
  39. data/spec/dummy/public/422.html +0 -67
  40. data/spec/dummy/public/500.html +0 -66
  41. data/spec/dummy/public/favicon.ico +0 -0
  42. data/spec/integration_test/app/controllers/tp_healthcheck/check_controller_spec.rb +0 -44
  43. data/spec/rails_helper.rb +0 -28
  44. data/spec/spec_helper.rb +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f4af573a6717c96ff85c7392e545d7a6656202b
4
- data.tar.gz: 5f0d230c44c54871976e08f9984afa4db128e07e
3
+ metadata.gz: fdc2b7f4f8d9c38133138df23ee16f8e1c867f45
4
+ data.tar.gz: f69de25372febaec113498af8e736500aaa19e04
5
5
  SHA512:
6
- metadata.gz: 0a0268e841d05bf75450d6b4e120322e552b54eb6f2144d93a1fa9b8cc082997424fe49701bcac1fee668e61410b96c9fd9c5d073063053c0fbb842a93492ed3
7
- data.tar.gz: ce20c6a0d22fec784cf24a36982362f210d353295248d55adbffa56b0d8b0a36f26c0b6742c7925b1000ae93c8c3658381fdc20bb879f26ae5604e4026d25ddc
6
+ metadata.gz: 8913af3b52bfcce76135e4e13ecf58224e922009c4832dc1f3839b7bd4e2573c3bd831285c839999db878bf2475bfbb6067a9dc6db686626949566dfe4ada4e4
7
+ data.tar.gz: 5e0b08c612a99659e7057fe4f0db4da2a00546a45259b7c0975c8bf81623a0e2246a11ec4e9d84731fd8d203882ad43ad0b6734b508b6ee044e3bebf16eefaaa
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- class TPHealthcheck::CheckController < ApplicationController
2
+ class TPHealthcheck::CheckController < ActionController::Base
3
3
  include TPHealthcheck::DataBaseHelper
4
4
  rescue_from StandardError, with: :handle_exception
5
5
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module TPHealthcheck
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tp_healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabricio Oliveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -154,46 +154,6 @@ files:
154
154
  - lib/tp_healthcheck.rb
155
155
  - lib/tp_healthcheck/engine.rb
156
156
  - lib/tp_healthcheck/version.rb
157
- - spec/dummy/README.rdoc
158
- - spec/dummy/Rakefile
159
- - spec/dummy/app/assets/javascripts/application.js
160
- - spec/dummy/app/assets/stylesheets/application.css
161
- - spec/dummy/app/controllers/application_controller.rb
162
- - spec/dummy/app/helpers/application_helper.rb
163
- - spec/dummy/app/views/layouts/application.html.erb
164
- - spec/dummy/bin/bundle
165
- - spec/dummy/bin/rails
166
- - spec/dummy/bin/rake
167
- - spec/dummy/bin/setup
168
- - spec/dummy/config.ru
169
- - spec/dummy/config/application.rb
170
- - spec/dummy/config/boot.rb
171
- - spec/dummy/config/database.yml
172
- - spec/dummy/config/environment.rb
173
- - spec/dummy/config/environments/development.rb
174
- - spec/dummy/config/environments/production.rb
175
- - spec/dummy/config/environments/test.rb
176
- - spec/dummy/config/initializers/assets.rb
177
- - spec/dummy/config/initializers/backtrace_silencers.rb
178
- - spec/dummy/config/initializers/cookies_serializer.rb
179
- - spec/dummy/config/initializers/filter_parameter_logging.rb
180
- - spec/dummy/config/initializers/inflections.rb
181
- - spec/dummy/config/initializers/mime_types.rb
182
- - spec/dummy/config/initializers/session_store.rb
183
- - spec/dummy/config/initializers/wrap_parameters.rb
184
- - spec/dummy/config/locales/en.yml
185
- - spec/dummy/config/routes.rb
186
- - spec/dummy/config/secrets.yml
187
- - spec/dummy/db/test.sqlite3
188
- - spec/dummy/log/development.log
189
- - spec/dummy/log/test.log
190
- - spec/dummy/public/404.html
191
- - spec/dummy/public/422.html
192
- - spec/dummy/public/500.html
193
- - spec/dummy/public/favicon.ico
194
- - spec/integration_test/app/controllers/tp_healthcheck/check_controller_spec.rb
195
- - spec/rails_helper.rb
196
- - spec/spec_helper.rb
197
157
  homepage: https://github.com/fabricio-oliveira/tp_heathcheck
198
158
  licenses:
199
159
  - MIT
@@ -218,44 +178,4 @@ rubygems_version: 2.5.2
218
178
  signing_key:
219
179
  specification_version: 4
220
180
  summary: gem thas implement healthcheck
221
- test_files:
222
- - spec/dummy/bin/rake
223
- - spec/dummy/bin/setup
224
- - spec/dummy/bin/bundle
225
- - spec/dummy/bin/rails
226
- - spec/dummy/config.ru
227
- - spec/dummy/app/helpers/application_helper.rb
228
- - spec/dummy/app/assets/javascripts/application.js
229
- - spec/dummy/app/assets/stylesheets/application.css
230
- - spec/dummy/app/views/layouts/application.html.erb
231
- - spec/dummy/app/controllers/application_controller.rb
232
- - spec/dummy/README.rdoc
233
- - spec/dummy/Rakefile
234
- - spec/dummy/log/development.log
235
- - spec/dummy/log/test.log
236
- - spec/dummy/public/404.html
237
- - spec/dummy/public/500.html
238
- - spec/dummy/public/422.html
239
- - spec/dummy/public/favicon.ico
240
- - spec/dummy/db/test.sqlite3
241
- - spec/dummy/config/routes.rb
242
- - spec/dummy/config/application.rb
243
- - spec/dummy/config/boot.rb
244
- - spec/dummy/config/environments/production.rb
245
- - spec/dummy/config/environments/development.rb
246
- - spec/dummy/config/environments/test.rb
247
- - spec/dummy/config/locales/en.yml
248
- - spec/dummy/config/database.yml
249
- - spec/dummy/config/initializers/assets.rb
250
- - spec/dummy/config/initializers/mime_types.rb
251
- - spec/dummy/config/initializers/inflections.rb
252
- - spec/dummy/config/initializers/cookies_serializer.rb
253
- - spec/dummy/config/initializers/backtrace_silencers.rb
254
- - spec/dummy/config/initializers/filter_parameter_logging.rb
255
- - spec/dummy/config/initializers/session_store.rb
256
- - spec/dummy/config/initializers/wrap_parameters.rb
257
- - spec/dummy/config/environment.rb
258
- - spec/dummy/config/secrets.yml
259
- - spec/rails_helper.rb
260
- - spec/integration_test/app/controllers/tp_healthcheck/check_controller_spec.rb
261
- - spec/spec_helper.rb
181
+ test_files: []
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
data/spec/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Rails.application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
- class ApplicationController < ActionController::Base
3
- # Prevent CSRF attacks by raising an exception.
4
- # For APIs, you may want to use :null_session instead.
5
- protect_from_forgery with: :exception
6
- end
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
- module ApplicationHelper
3
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
4
- load Gem.bin_path('bundler', 'bundle')
data/spec/dummy/bin/rails DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
- APP_PATH = File.expand_path('../../config/application', __FILE__)
4
- require_relative '../config/boot'
5
- require 'rails/commands'
data/spec/dummy/bin/rake DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
- require_relative '../config/boot'
4
- require 'rake'
5
- Rake.application.run
data/spec/dummy/bin/setup DELETED
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
- require 'pathname'
4
-
5
- # path to your application root.
6
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
7
-
8
- Dir.chdir APP_ROOT do
9
- # This script is a starting point to setup your application.
10
- # Add necessary setup steps to this file:
11
-
12
- puts '== Installing dependencies =='
13
- system 'gem install bundler --conservative'
14
- system 'bundle check || bundle install'
15
-
16
- # puts "\n== Copying sample files =="
17
- # unless File.exist?("config/database.yml")
18
- # system "cp config/database.yml.sample config/database.yml"
19
- # end
20
-
21
- puts "\n== Preparing database =="
22
- system 'bin/rake db:setup'
23
-
24
- puts "\n== Removing old logs and tempfiles =="
25
- system 'rm -f log/*'
26
- system 'rm -rf tmp/cache'
27
-
28
- puts "\n== Restarting application server =="
29
- system 'touch tmp/restart.txt'
30
- end
data/spec/dummy/config.ru DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
- # This file is used by Rack-based servers to start the application.
3
-
4
- require ::File.expand_path('../config/environment', __FILE__)
5
- run Rails.application
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
- require File.expand_path('../boot', __FILE__)
3
-
4
- require 'rails/all'
5
-
6
- Bundler.require(*Rails.groups)
7
- require 'tp_healthcheck'
8
-
9
- module Dummy
10
- class Application < Rails::Application; end
11
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
- # Set up gems listed in the Gemfile.
3
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
4
-
5
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
6
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- development:
13
- <<: *default
14
- database: db/development.sqlite3
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- <<: *default
21
- database: db/test.sqlite3
22
-
23
- production:
24
- <<: *default
25
- database: db/production.sqlite3
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
- # Load the Rails application.
3
- require File.expand_path('../application', __FILE__)
4
-
5
- # Initialize the Rails application.
6
- Rails.application.initialize!
@@ -1,42 +0,0 @@
1
- # frozen_string_literal: true
2
- Rails.application.configure do
3
- # Settings specified here will take precedence over those in config/application.rb.
4
-
5
- # In the development environment your application's code is reloaded on
6
- # every request. This slows down response time but is perfect for development
7
- # since you don't have to restart the web server when you make code changes.
8
- config.cache_classes = false
9
-
10
- # Do not eager load code on boot.
11
- config.eager_load = false
12
-
13
- # Show full error reports and disable caching.
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send.
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger.
21
- config.active_support.deprecation = :log
22
-
23
- # Raise an error on page load if there are pending migrations.
24
- config.active_record.migration_error = :page_load
25
-
26
- # Debug mode disables concatenation and preprocessing of assets.
27
- # This option may cause significant delays in view rendering with a large
28
- # number of complex assets.
29
- config.assets.debug = true
30
-
31
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
32
- # yet still be able to expire them through the digest params.
33
- config.assets.digest = true
34
-
35
- # Adds additional error checking when serving assets at runtime.
36
- # Checks for improperly declared sprockets dependencies.
37
- # Raises helpful error messages.
38
- config.assets.raise_runtime_errors = true
39
-
40
- # Raises error for missing translations
41
- # config.action_view.raise_on_missing_translations = true
42
- end
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
- Rails.application.configure do
3
- # Settings specified here will take precedence over those in config/application.rb.
4
-
5
- # Code is not reloaded between requests.
6
- config.cache_classes = true
7
-
8
- # Eager load code on boot. This eager loads most of Rails and
9
- # your application in memory, allowing both threaded web servers
10
- # and those relying on copy on write to perform better.
11
- # Rake tasks automatically ignore this option for performance.
12
- config.eager_load = true
13
-
14
- # Full error reports are disabled and caching is turned on.
15
- config.consider_all_requests_local = false
16
- config.action_controller.perform_caching = true
17
-
18
- # Compress JavaScripts and CSS.
19
- config.assets.js_compressor = :uglifier
20
- # config.assets.css_compressor = :sass
21
-
22
- # Do not fallback to assets pipeline if a precompiled asset is missed.
23
- config.assets.compile = false
24
-
25
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
26
- # yet still be able to expire them through the digest params.
27
- config.assets.digest = true
28
-
29
- config.log_level = :debug
30
-
31
- config.i18n.fallbacks = true
32
-
33
- # Send deprecation notices to registered listeners.
34
- config.active_support.deprecation = :notify
35
-
36
- # Use default logging formatter so that PID and timestamp are not suppressed.
37
- config.log_formatter = ::Logger::Formatter.new
38
-
39
- # Do not dump schema after migrations.
40
- config.active_record.dump_schema_after_migration = false
41
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
- Rails.application.configure do
3
- # Settings specified here will take precedence over those in config/application.rb.
4
-
5
- # The test environment is used exclusively to run your application's
6
- # test suite. You never need to work with it otherwise. Remember that
7
- # your test database is "scratch space" for the test suite and is wiped
8
- # and recreated between test runs. Don't rely on the data there!
9
- config.cache_classes = true
10
-
11
- # Do not eager load code on boot. This avoids loading your whole application
12
- # just for the purpose of running a single test. If you are using a tool that
13
- # preloads Rails for running tests, you may have to set it to true.
14
- config.eager_load = false
15
-
16
- # Show full error reports and disable caching.
17
- config.consider_all_requests_local = true
18
- config.action_controller.perform_caching = false
19
-
20
- # Raise exceptions instead of rendering exception templates.
21
- config.action_dispatch.show_exceptions = false
22
-
23
- # Disable request forgery protection in test environment.
24
- config.action_controller.allow_forgery_protection = false
25
-
26
- # Tell Action Mailer not to deliver emails to the real world.
27
- # The :test delivery method accumulates sent emails in the
28
- # ActionMailer::Base.deliveries array.
29
- config.action_mailer.delivery_method = :test
30
-
31
- # Randomize the order test cases are executed.
32
- config.active_support.test_order = :random
33
-
34
- # Print deprecation notices to the stderr.
35
- config.active_support.deprecation = :stderr
36
-
37
- # Raises error for missing translations
38
- # config.action_view.raise_on_missing_translations = true
39
- end