govuk_app_config 9.9.2 → 9.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd5ab24be74e10e455ab5037df2b7db8dd2d9415391a0cf18c09b50085164901
4
- data.tar.gz: e16f29b41ecb3289088302a01bdc543c86bf133f7616aa9bff4f79459c44b492
3
+ metadata.gz: 3bf6ae30aec5a886810a0b912444c0b97ea69e939cd8923f7fae4d1a29083f22
4
+ data.tar.gz: 7651211aa7ec14d12260e75d3d979fe706c2541d87d3d2ff58dae8cb8b6f61c5
5
5
  SHA512:
6
- metadata.gz: 369842d9fc8db71caf3b1593743d630466d4c798d5f410bdd67d9e1a87f685fbdaf14ba8ad95bed7da8517966bd27eb49553edadf319211a43fdb1d29f05ba2b
7
- data.tar.gz: 0c2973e3a19077624e010b55a7043d82c14ff2a60f2652dfc2895275b9413c5a0892d1cc5abb7a01b133077e92ac4c45fb055b47d6d18134aa9b7a2057320745
6
+ metadata.gz: 50113bab587d2bbe40d045020871943cf090a9503c26c100faf642c43f06d3baeeda8f98220622f2fb8fec4c29c4ca51d181d2ff449f7a736efc3dc57ff7fb57
7
+ data.tar.gz: e94c092a17c03154d43f0d226f5897c88b2fcc8aefe9b3f3ffca7b0377d7b08328d474024e0d3d8c666a48d21b5b9775c4170a1f25c76f8926bfe4d148ecb0d4
@@ -0,0 +1,10 @@
1
+ on:
2
+ workflow_dispatch: {}
3
+ schedule:
4
+ - cron: '00 13 * * 2'
5
+
6
+ jobs:
7
+ autorelease:
8
+ uses: alphagov/govuk-infrastructure/.github/workflows/autorelease-rubygem.yml@main
9
+ secrets:
10
+ GH_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}
@@ -14,7 +14,13 @@ jobs:
14
14
  snyk-security:
15
15
  name: SNYK security analysis
16
16
  uses: alphagov/govuk-infrastructure/.github/workflows/snyk-security.yml@main
17
+ with:
18
+ skip_sca: true
17
19
  secrets: inherit
20
+ permissions:
21
+ contents: read
22
+ security-events: write
23
+ actions: read
18
24
 
19
25
  codeql-sast:
20
26
  name: CodeQL SAST scan
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 9.10.0
2
+
3
+ * Simplify the logic for deciding whether to initialize `GovukPrometheusExporter`. `GovukPrometheusExporter` provides the `/metrics` webserver and "exporter" process for aggregating counters in multi-process apps. govuk_app_config will now always attempt to initialize GovukPrometheusExporter except when running under `rails console`. The `GOVUK_PROMETHEUS_EXPORTER` environment variable no longer has any effect.
4
+
1
5
  # 9.9.2
2
6
 
3
7
  * Add single cookie consent api URLs ([#355](https://github.com/alphagov/govuk_app_config/pull/355))
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "rake", "~> 13.0"
40
40
  spec.add_development_dependency "rspec", "~> 3.10"
41
41
  spec.add_development_dependency "rspec-its", "~> 1.3"
42
- spec.add_development_dependency "rubocop-govuk", "4.14.0"
42
+ spec.add_development_dependency "rubocop-govuk", "4.16.1"
43
43
  spec.add_development_dependency "webmock"
44
44
  end
@@ -42,15 +42,7 @@ module GovukPrometheusExporter
42
42
  end
43
43
 
44
44
  def self.should_configure
45
- # Allow us to force the Prometheus Exporter for persistent Rake tasks...
46
- if ENV["GOVUK_PROMETHEUS_EXPORTER"] == "force"
47
- true
48
- elsif File.basename($PROGRAM_NAME) == "rake" ||
49
- defined?(Rails) && (Rails.const_defined?("Console") || Rails.env == "test")
50
- false
51
- else
52
- ENV["GOVUK_PROMETHEUS_EXPORTER"] == "true"
53
- end
45
+ !(defined?(Rails) && Rails.const_defined?("Console"))
54
46
  end
55
47
 
56
48
  def self.configure(collectors: [], default_aggregation: PrometheusExporter::Metric::Histogram)
@@ -81,9 +73,7 @@ module GovukPrometheusExporter
81
73
 
82
74
  begin
83
75
  server = PrometheusExporter::Server::WebServer.new bind: "0.0.0.0", port: 9394
84
-
85
- collectors.each { |collector| server.collector.register_collector(collector.new) }
86
-
76
+ collectors.each { |c| server.collector.register_collector(c.new) }
87
77
  server.start
88
78
 
89
79
  if defined?(Rails)
@@ -94,7 +84,7 @@ module GovukPrometheusExporter
94
84
  Sinatra.use SinatraMiddleware
95
85
  end
96
86
  rescue Errno::EADDRINUSE
97
- warn "Could not start Prometheus metrics server as address already in use."
87
+ warn "not starting Prometheus metrics server: address already in use"
98
88
  end
99
89
  end
100
90
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.9.2".freeze
2
+ VERSION = "9.10.0".freeze
3
3
  end
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: 9.9.2
4
+ version: 9.10.0
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: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -292,14 +292,14 @@ dependencies:
292
292
  requirements:
293
293
  - - '='
294
294
  - !ruby/object:Gem::Version
295
- version: 4.14.0
295
+ version: 4.16.1
296
296
  type: :development
297
297
  prerelease: false
298
298
  version_requirements: !ruby/object:Gem::Requirement
299
299
  requirements:
300
300
  - - '='
301
301
  - !ruby/object:Gem::Version
302
- version: 4.14.0
302
+ version: 4.16.1
303
303
  - !ruby/object:Gem::Dependency
304
304
  name: webmock
305
305
  requirement: !ruby/object:Gem::Requirement
@@ -322,6 +322,7 @@ extensions: []
322
322
  extra_rdoc_files: []
323
323
  files:
324
324
  - ".github/dependabot.yml"
325
+ - ".github/workflows/autorelease.yml"
325
326
  - ".github/workflows/ci.yml"
326
327
  - ".gitignore"
327
328
  - ".govuk_dependabot_merger.yml"
@@ -376,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
377
  - !ruby/object:Gem::Version
377
378
  version: '0'
378
379
  requirements: []
379
- rubygems_version: 3.5.6
380
+ rubygems_version: 3.5.7
380
381
  signing_key:
381
382
  specification_version: 4
382
383
  summary: Base configuration for GOV.UK applications