rack-ecg 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/main.yml +22 -0
- data/.rubocop.yml +21 -0
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +69 -0
- data/Gemfile +1 -0
- data/README.md +118 -31
- data/Rakefile +10 -1
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/examples/basic.ru +3 -3
- data/examples/checks.ru +3 -3
- data/examples/hook.ru +17 -0
- data/examples/mounted_path.ru +3 -3
- data/examples/parameters.ru +12 -0
- data/examples/stand_alone.ru +4 -0
- data/lib/rack-ecg.rb +1 -0
- data/lib/rack/ecg.rb +37 -55
- data/lib/rack/ecg/check.rb +45 -0
- data/lib/rack/ecg/check/active_record_connection.rb +32 -0
- data/lib/rack/ecg/check/error.rb +16 -0
- data/lib/rack/ecg/check/git_revision.rb +26 -0
- data/lib/rack/ecg/check/http.rb +16 -0
- data/lib/rack/ecg/check/migration_version.rb +32 -0
- data/lib/rack/ecg/check/redis_connection.rb +34 -0
- data/lib/rack/ecg/check/sequel_connection.rb +54 -0
- data/lib/rack/ecg/check_factory.rb +28 -0
- data/lib/rack/ecg/check_registry.rb +43 -0
- data/lib/rack/ecg/version.rb +3 -1
- data/rack-ecg.gemspec +31 -14
- metadata +91 -31
- data/.travis.yml +0 -15
- data/spec/rack_middleware_spec.rb +0 -146
- data/spec/spec_helper.rb +0 -23
data/spec/spec_helper.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'rspec'
|
2
|
-
require 'rack/test'
|
3
|
-
require 'rack/ecg'
|
4
|
-
|
5
|
-
RSpec.configure do |config|
|
6
|
-
config.expect_with :rspec do |expectations|
|
7
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
8
|
-
end
|
9
|
-
|
10
|
-
config.mock_with :rspec do |mocks|
|
11
|
-
mocks.verify_partial_doubles = true
|
12
|
-
end
|
13
|
-
|
14
|
-
config.disable_monkey_patching!
|
15
|
-
|
16
|
-
config.warnings = true
|
17
|
-
|
18
|
-
config.include Rack::Test::Methods
|
19
|
-
|
20
|
-
def json_body
|
21
|
-
@json_body ||= JSON.parse(last_response.body)
|
22
|
-
end
|
23
|
-
end
|