govuk_app_config 2.2.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +21 -1
- data/Rakefile +6 -1
- data/docs/healthchecks.md +9 -18
- data/govuk_app_config.gemspec +4 -6
- data/lib/govuk_app_config/configure.rb +2 -2
- data/lib/govuk_app_config/govuk_content_security_policy.rb +9 -4
- data/lib/govuk_app_config/govuk_healthcheck.rb +4 -3
- data/lib/govuk_app_config/govuk_healthcheck/active_record.rb +1 -1
- data/lib/govuk_app_config/govuk_healthcheck/checkup.rb +1 -1
- data/lib/govuk_app_config/govuk_healthcheck/mongoid.rb +14 -0
- data/lib/govuk_app_config/govuk_healthcheck/rails_cache.rb +16 -0
- data/lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_check.rb +3 -3
- data/lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb +0 -1
- data/lib/govuk_app_config/govuk_logging.rb +10 -7
- data/lib/govuk_app_config/govuk_statsd.rb +2 -2
- data/lib/govuk_app_config/govuk_unicorn.rb +2 -1
- data/lib/govuk_app_config/rails_ext/action_dispatch/debug_exceptions.rb +5 -6
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +28 -32
- data/lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_size_check.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09d834575f5a08c3fbac882d165d1dbe413693f963d7e8e82b4a17b180fea526'
|
4
|
+
data.tar.gz: e762adcec651712f0b4172773f7c2128388245ddaba645409ce1ccd37c6326ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f75e55060e8204fea9eb2e202ffb2a392f74c4e5d4dbf2ec6acff1cfe0c502bffef302aa870a8cae0b1b114409514976f55d77f7f381d06fd237f98e0d9745e
|
7
|
+
data.tar.gz: a133f95a954b855b52b22b4aea77bf092a27c23fba96d4ac1171cc60839dda6731eeabc8c6106b8144121c3912fe590df63e6e08ee870c65962c24cafc8346c8
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
# 2.4.1
|
2
|
+
|
3
|
+
* Bump 'sentry-raven' to 3.1.1 to improve grouping of errors (https://github.com/alphagov/govuk_app_config/pull/162)
|
4
|
+
|
5
|
+
# 2.4.0
|
6
|
+
|
7
|
+
* Add new GovukHealthcheck::Mongoid and GovukHealthcheck::RailsCache health checks (https://github.com/alphagov/govuk_app_config/pull/161)
|
8
|
+
|
9
|
+
# 2.3.0
|
10
|
+
|
11
|
+
* Remove unused SidekiqQueueSizeCheck healthcheck base class (https://github.com/alphagov/govuk_app_config/pull/156)
|
12
|
+
|
13
|
+
# 2.2.2
|
14
|
+
|
15
|
+
* Add www.googletagmanager.com and www.gstatic.com to Content Security Policy (https://github.com/alphagov/govuk_app_config/pull/153)
|
16
|
+
|
17
|
+
# 2.2.1
|
18
|
+
|
19
|
+
* Fix linting issues (https://github.com/alphagov/govuk_app_config/pull/149)
|
20
|
+
|
1
21
|
# 2.2.0
|
2
22
|
|
3
23
|
* Monkey patch `ActionDispatch::DebugExceptions#log_error` so it logs errors on a single line (https://github.com/alphagov/govuk_app_config/pull/147)
|
@@ -246,7 +266,7 @@
|
|
246
266
|
* Add Unicorn (our web server) as a dependency
|
247
267
|
* Use version [2.7.0 of the Sentry client][sentry-270].
|
248
268
|
* Set up logging configuration for Rails applications.
|
249
|
-
* Don't send `ActionController::BadRequest`
|
269
|
+
* Don't send `ActionController::BadRequest`
|
250
270
|
|
251
271
|
[sentry-270]: https://github.com/getsentry/raven-ruby/commit/ef623824cb0a8a2f60be5fb7e12f80454da54fd7
|
252
272
|
|
data/Rakefile
CHANGED
data/docs/healthchecks.md
CHANGED
@@ -73,6 +73,15 @@ if it must be subclassed to work, but a concrete class which works on its own
|
|
73
73
|
doesn't need that suffix. You should aim to follow this convention in your own
|
74
74
|
apps, ideally putting custom health checks into a `Healthcheck` module.
|
75
75
|
|
76
|
+
### `RailsCache`
|
77
|
+
|
78
|
+
This checks that the Rails cache store, such as Memcached, is acessible by
|
79
|
+
writing and reading back a cache entry called "healthcheck-cache".
|
80
|
+
|
81
|
+
### `Mongoid`
|
82
|
+
|
83
|
+
This checks that the app has a connection to its Mongo database via Mongoid.
|
84
|
+
|
76
85
|
### `SidekiqRedis`
|
77
86
|
|
78
87
|
This checks that the app has a connection to Redis via Sidekiq.
|
@@ -128,24 +137,6 @@ class MySidekiqQueueLatencyCheck < GovukHealthcheck::SidekiqQueueLatencyCheck
|
|
128
137
|
end
|
129
138
|
```
|
130
139
|
|
131
|
-
### `SidekiqQueueSizeCheck`
|
132
|
-
|
133
|
-
This class is the basis for a check which compares the Sidekiq queue sizes
|
134
|
-
with warning or critical thresholds.
|
135
|
-
|
136
|
-
```ruby
|
137
|
-
class MySidekiqQueueSizeCheck < GovukHealthcheck::SidekiqQueueSizeCheck
|
138
|
-
def warning_threshold(queue:)
|
139
|
-
# the warning threshold for a particular queue
|
140
|
-
end
|
141
|
-
|
142
|
-
def critical_threshold(queue:)
|
143
|
-
# the critical threshold for a particular queue
|
144
|
-
end
|
145
|
-
end
|
146
|
-
```
|
147
|
-
|
148
|
-
|
149
140
|
### `SidekiqRetrySizeCheck`
|
150
141
|
|
151
142
|
Similar to `SidekiqQueueSizeCheck`, this class is the basis for a check which
|
data/govuk_app_config.gemspec
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
1
|
lib = File.expand_path("lib", __dir__)
|
4
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
3
|
require "govuk_app_config/version"
|
@@ -23,16 +21,16 @@ Gem::Specification.new do |spec|
|
|
23
21
|
spec.require_paths = %w[lib]
|
24
22
|
|
25
23
|
spec.add_dependency "logstasher", ">= 1.2.2", "< 1.4.0"
|
26
|
-
spec.add_dependency "sentry-raven", "
|
24
|
+
spec.add_dependency "sentry-raven", "~> 3.1.1"
|
27
25
|
spec.add_dependency "statsd-ruby", "~> 1.4.0"
|
28
|
-
spec.add_dependency "unicorn", ">= 5.4", "< 5.
|
26
|
+
spec.add_dependency "unicorn", ">= 5.4", "< 5.8"
|
29
27
|
|
30
|
-
spec.add_development_dependency "bundler", "~> 1.15"
|
31
28
|
spec.add_development_dependency "climate_control"
|
32
|
-
spec.add_development_dependency "rack-test", "~>
|
29
|
+
spec.add_development_dependency "rack-test", "~> 1.1.0"
|
33
30
|
spec.add_development_dependency "rails", "~> 6"
|
34
31
|
spec.add_development_dependency "rake", "~> 13.0"
|
35
32
|
spec.add_development_dependency "rspec", "~> 3.9.0"
|
36
33
|
spec.add_development_dependency "rspec-its", "~> 1.3.0"
|
34
|
+
spec.add_development_dependency "rubocop-govuk"
|
37
35
|
spec.add_development_dependency "webmock"
|
38
36
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
GovukError.configure do |config|
|
2
|
-
config.before_send =
|
2
|
+
config.before_send = proc { |e|
|
3
3
|
GovukStatsd.increment("errors_occurred")
|
4
4
|
GovukStatsd.increment("error_types.#{e.class.name.demodulize.underscore}")
|
5
5
|
e
|
@@ -43,7 +43,7 @@ GovukError.configure do |config|
|
|
43
43
|
# Rails will raise a ActionView::Template::Error, instead of the original error.
|
44
44
|
config.inspect_exception_causes_for_exclusion = true
|
45
45
|
|
46
|
-
config.transport_failure_callback =
|
46
|
+
config.transport_failure_callback = proc {
|
47
47
|
GovukStatsd.increment("error_reports_failed")
|
48
48
|
}
|
49
49
|
end
|
@@ -9,15 +9,18 @@ module GovukContentSecurityPolicy
|
|
9
9
|
# - https://cspvalidator.org
|
10
10
|
|
11
11
|
GOVUK_DOMAINS = [
|
12
|
-
|
12
|
+
"*.publishing.service.gov.uk",
|
13
13
|
"*.#{ENV['GOVUK_APP_DOMAIN_EXTERNAL'] || ENV['GOVUK_APP_DOMAIN'] || 'dev.gov.uk'}",
|
14
14
|
"www.gov.uk",
|
15
|
-
"*.dev.gov.uk"
|
15
|
+
"*.dev.gov.uk",
|
16
16
|
].uniq.freeze
|
17
17
|
|
18
|
-
GOOGLE_ANALYTICS_DOMAINS = %w
|
18
|
+
GOOGLE_ANALYTICS_DOMAINS = %w[www.google-analytics.com
|
19
19
|
ssl.google-analytics.com
|
20
|
-
stats.g.doubleclick.net
|
20
|
+
stats.g.doubleclick.net
|
21
|
+
www.googletagmanager.com].freeze
|
22
|
+
|
23
|
+
GOOGLE_STATIC_DOMAINS = %w[www.gstatic.com].freeze
|
21
24
|
|
22
25
|
def self.build_policy(policy)
|
23
26
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src
|
@@ -35,6 +38,7 @@ module GovukContentSecurityPolicy
|
|
35
38
|
policy.script_src :self,
|
36
39
|
*GOVUK_DOMAINS,
|
37
40
|
*GOOGLE_ANALYTICS_DOMAINS,
|
41
|
+
*GOOGLE_STATIC_DOMAINS,
|
38
42
|
# Allow JSONP call to Verify to check whether the user is logged in
|
39
43
|
"www.signin.service.gov.uk",
|
40
44
|
# Allow YouTube Embeds (Govspeak turns YouTube links into embeds)
|
@@ -51,6 +55,7 @@ module GovukContentSecurityPolicy
|
|
51
55
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src
|
52
56
|
policy.style_src :self,
|
53
57
|
*GOVUK_DOMAINS,
|
58
|
+
*GOOGLE_STATIC_DOMAINS,
|
54
59
|
# We use the `style=""` attribute on some HTML elements
|
55
60
|
:unsafe_inline
|
56
61
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
require "govuk_app_config/govuk_healthcheck/checkup"
|
2
2
|
require "govuk_app_config/govuk_healthcheck/active_record"
|
3
|
+
require "govuk_app_config/govuk_healthcheck/mongoid"
|
4
|
+
require "govuk_app_config/govuk_healthcheck/rails_cache"
|
3
5
|
require "govuk_app_config/govuk_healthcheck/sidekiq_redis"
|
4
6
|
require "govuk_app_config/govuk_healthcheck/threshold_check"
|
5
7
|
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_check"
|
6
8
|
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_latency_check"
|
7
|
-
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_size_check"
|
8
9
|
require "govuk_app_config/govuk_healthcheck/sidekiq_retry_size_check"
|
9
10
|
require "json"
|
10
11
|
|
@@ -13,8 +14,8 @@ module GovukHealthcheck
|
|
13
14
|
proc do
|
14
15
|
[
|
15
16
|
200,
|
16
|
-
{"Content-Type" => "application/json"},
|
17
|
-
[JSON.dump(healthcheck(checks))]
|
17
|
+
{ "Content-Type" => "application/json" },
|
18
|
+
[JSON.dump(healthcheck(checks))],
|
18
19
|
]
|
19
20
|
end
|
20
21
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module GovukHealthcheck
|
2
|
+
class RailsCache
|
3
|
+
def name
|
4
|
+
:rails_cache
|
5
|
+
end
|
6
|
+
|
7
|
+
def status
|
8
|
+
::Rails.cache.write("healthcheck-cache", true)
|
9
|
+
raise unless ::Rails.cache.read("healthcheck-cache")
|
10
|
+
|
11
|
+
GovukHealthcheck::OK
|
12
|
+
rescue StandardError
|
13
|
+
GovukHealthcheck::CRITICAL
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -41,7 +41,7 @@ module GovukHealthcheck
|
|
41
41
|
thresholds: {
|
42
42
|
critical: critical_threshold(queue: name),
|
43
43
|
warning: warning_threshold(queue: name),
|
44
|
-
}.
|
44
|
+
}.reject { |_, val| val.to_f.infinite? || val.to_f.nan? },
|
45
45
|
}
|
46
46
|
end,
|
47
47
|
}
|
@@ -51,11 +51,11 @@ module GovukHealthcheck
|
|
51
51
|
raise "This method must be overriden to be a hash of queue names and data."
|
52
52
|
end
|
53
53
|
|
54
|
-
def critical_threshold(queue:)
|
54
|
+
def critical_threshold(queue:) # rubocop:disable Lint/UnusedMethodArgument
|
55
55
|
raise "This method must be overriden to be the critical threshold."
|
56
56
|
end
|
57
57
|
|
58
|
-
def warning_threshold(queue:)
|
58
|
+
def warning_threshold(queue:) # rubocop:disable Lint/UnusedMethodArgument
|
59
59
|
raise "This method must be overriden to be the warning threshold."
|
60
60
|
end
|
61
61
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require_relative
|
1
|
+
require "logstasher"
|
2
|
+
require "action_controller"
|
3
|
+
require_relative "rails_ext/action_dispatch/debug_exceptions"
|
4
4
|
|
5
5
|
module GovukLogging
|
6
6
|
def self.configure
|
@@ -14,8 +14,11 @@ module GovukLogging
|
|
14
14
|
#
|
15
15
|
# To resolve this we've directed stdout to stderr, to cover any Rails
|
16
16
|
# writing. This frees up the normal stdout for the logstasher logs.
|
17
|
+
|
18
|
+
# rubocop:disable Style/GlobalVars
|
17
19
|
$real_stdout = $stdout.clone
|
18
20
|
$stdout.reopen($stderr)
|
21
|
+
# rubocop:enable Style/GlobalVars
|
19
22
|
|
20
23
|
# Send Rails' logs to STDERR because they're not JSON formatted.
|
21
24
|
Rails.logger = ActiveSupport::TaggedLogging.new(Logger.new($stderr, level: Rails.logger.level))
|
@@ -23,7 +26,7 @@ module GovukLogging
|
|
23
26
|
# Custom that will be added to the Rails request logs
|
24
27
|
LogStasher.add_custom_fields do |fields|
|
25
28
|
# Mirrors Nginx request logging, e.g GET /path/here HTTP/1.1
|
26
|
-
fields[:request] = "#{request.request_method} #{request.fullpath} #{request.headers[
|
29
|
+
fields[:request] = "#{request.request_method} #{request.fullpath} #{request.headers['SERVER_PROTOCOL']}"
|
27
30
|
|
28
31
|
# Pass request Id to logging
|
29
32
|
fields[:govuk_request_id] = request.headers["GOVUK-Request-Id"]
|
@@ -45,11 +48,11 @@ module GovukLogging
|
|
45
48
|
Rails.application.config.logstasher.job_enabled = false
|
46
49
|
|
47
50
|
Rails.application.config.logstasher.logger = Logger.new(
|
48
|
-
$real_stdout,
|
51
|
+
$real_stdout, # rubocop:disable Style/GlobalVars
|
49
52
|
level: Rails.logger.level,
|
50
53
|
formatter: proc { |_severity, _datetime, _progname, msg|
|
51
|
-
"#{String
|
52
|
-
}
|
54
|
+
"#{msg.is_a?(String) ? msg : msg.inspect}\n"
|
55
|
+
},
|
53
56
|
)
|
54
57
|
Rails.application.config.logstasher.suppress_app_log = true
|
55
58
|
|
@@ -4,10 +4,10 @@ require "forwardable"
|
|
4
4
|
module GovukStatsd
|
5
5
|
extend SingleForwardable
|
6
6
|
def_delegators :client, :increment, :decrement, :count, :time, :timing,
|
7
|
-
|
7
|
+
:gauge, :set, :batch
|
8
8
|
|
9
9
|
def self.client
|
10
|
-
@
|
10
|
+
@client ||= begin
|
11
11
|
statsd_client = ::Statsd.new("localhost")
|
12
12
|
statsd_client.namespace = ENV["GOVUK_STATSD_PREFIX"].to_s
|
13
13
|
statsd_client
|
@@ -9,8 +9,9 @@ module GovukUnicorn
|
|
9
9
|
config.stderr_path "#{ENV['GOVUK_APP_LOGROOT']}/app.err.log"
|
10
10
|
end
|
11
11
|
|
12
|
-
config.before_exec do |
|
12
|
+
config.before_exec do |_server|
|
13
13
|
next unless ENV["GOVUK_APP_ROOT"]
|
14
|
+
|
14
15
|
ENV["BUNDLE_GEMFILE"] = "#{ENV['GOVUK_APP_ROOT']}/Gemfile"
|
15
16
|
end
|
16
17
|
|
@@ -13,16 +13,15 @@ module GovukLogging
|
|
13
13
|
should_monkey_patch = actual_parameters == expected_parameters
|
14
14
|
|
15
15
|
unless should_monkey_patch
|
16
|
-
Rails.logger.warn "Refused to monkey patch ::ActionDispatch::DebugExceptions#log_error - "
|
17
|
-
"signatures do not match. "
|
16
|
+
Rails.logger.warn "Refused to monkey patch ::ActionDispatch::DebugExceptions#log_error - " \
|
17
|
+
"signatures do not match. " \
|
18
18
|
"Expected #{expected_parameters}, but got #{actual_parameters}"
|
19
19
|
end
|
20
20
|
|
21
21
|
should_monkey_patch
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"::ActionDispatch::DebugExceptions#log_error - #{ex.inspect}"
|
22
|
+
rescue StandardError => e
|
23
|
+
Rails.logger.warn "Failed to detect whether to monkey patch " \
|
24
|
+
"::ActionDispatch::DebugExceptions#log_error - #{e.inspect}"
|
26
25
|
false
|
27
26
|
end
|
28
27
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|
@@ -34,22 +34,16 @@ dependencies:
|
|
34
34
|
name: sentry-raven
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 2.7.1
|
40
|
-
- - "<"
|
37
|
+
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version: 3.1.
|
39
|
+
version: 3.1.1
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 2.7.1
|
50
|
-
- - "<"
|
44
|
+
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version: 3.1.
|
46
|
+
version: 3.1.1
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: statsd-ruby
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +67,7 @@ dependencies:
|
|
73
67
|
version: '5.4'
|
74
68
|
- - "<"
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: '5.
|
70
|
+
version: '5.8'
|
77
71
|
type: :runtime
|
78
72
|
prerelease: false
|
79
73
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,21 +77,7 @@ dependencies:
|
|
83
77
|
version: '5.4'
|
84
78
|
- - "<"
|
85
79
|
- !ruby/object:Gem::Version
|
86
|
-
version: '5.
|
87
|
-
- !ruby/object:Gem::Dependency
|
88
|
-
name: bundler
|
89
|
-
requirement: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - "~>"
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '1.15'
|
94
|
-
type: :development
|
95
|
-
prerelease: false
|
96
|
-
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - "~>"
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '1.15'
|
80
|
+
version: '5.8'
|
101
81
|
- !ruby/object:Gem::Dependency
|
102
82
|
name: climate_control
|
103
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,14 +98,14 @@ dependencies:
|
|
118
98
|
requirements:
|
119
99
|
- - "~>"
|
120
100
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
101
|
+
version: 1.1.0
|
122
102
|
type: :development
|
123
103
|
prerelease: false
|
124
104
|
version_requirements: !ruby/object:Gem::Requirement
|
125
105
|
requirements:
|
126
106
|
- - "~>"
|
127
107
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
108
|
+
version: 1.1.0
|
129
109
|
- !ruby/object:Gem::Dependency
|
130
110
|
name: rails
|
131
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,6 +162,20 @@ dependencies:
|
|
182
162
|
- - "~>"
|
183
163
|
- !ruby/object:Gem::Version
|
184
164
|
version: 1.3.0
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: rubocop-govuk
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
185
179
|
- !ruby/object:Gem::Dependency
|
186
180
|
name: webmock
|
187
181
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,6 +199,7 @@ extra_rdoc_files: []
|
|
205
199
|
files:
|
206
200
|
- ".gitignore"
|
207
201
|
- ".rspec"
|
202
|
+
- ".rubocop.yml"
|
208
203
|
- ".ruby-version"
|
209
204
|
- CHANGELOG.md
|
210
205
|
- Gemfile
|
@@ -223,9 +218,10 @@ files:
|
|
223
218
|
- lib/govuk_app_config/govuk_healthcheck.rb
|
224
219
|
- lib/govuk_app_config/govuk_healthcheck/active_record.rb
|
225
220
|
- lib/govuk_app_config/govuk_healthcheck/checkup.rb
|
221
|
+
- lib/govuk_app_config/govuk_healthcheck/mongoid.rb
|
222
|
+
- lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
|
226
223
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_check.rb
|
227
224
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_latency_check.rb
|
228
|
-
- lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_size_check.rb
|
229
225
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
|
230
226
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_retry_size_check.rb
|
231
227
|
- lib/govuk_app_config/govuk_healthcheck/threshold_check.rb
|
@@ -254,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
250
|
- !ruby/object:Gem::Version
|
255
251
|
version: '0'
|
256
252
|
requirements: []
|
257
|
-
rubygems_version: 3.
|
253
|
+
rubygems_version: 3.1.4
|
258
254
|
signing_key:
|
259
255
|
specification_version: 4
|
260
256
|
summary: Base configuration for GOV.UK applications
|