rack-logstasher 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +3 -0
- data/.github/workflows/autorelease.yml +1 -1
- data/.github/workflows/ci.yml +1 -13
- data/.gitignore +2 -0
- data/.govuk_dependabot_merger.yml +4 -6
- data/.ruby-version +1 -1
- data/CHANGELOG.md +5 -1
- data/lib/rack/logstasher/version.rb +1 -1
- data/rack-logstasher.gemspec +3 -2
- data/spec/rack/logstasher/logger_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -6
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5632b7b41fc2ec5644275afc34031f6c18f85ae8a08354c13eb776f0b12783c7
|
4
|
+
data.tar.gz: 3951d485a52eedd7985146a47d348fa4b7719822a3dc87497807560f95977c6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a8c126c778db3e1e2af2df96183c8d21e38a8689eef242aa2e7783e9d7b115f0728b110bb8bf953a0fb05c481e78418aef00f614be3e973e8fe96c90f68c3b
|
7
|
+
data.tar.gz: 3795dea47cc47c429ea70a1991f4984ba2467f6a104ed194c5103f081acda4dd4cf84c0faf3890e732706ff2c9eee7e44f5943a6775fdb1c3e0a06cdd139a7c8
|
@@ -0,0 +1,3 @@
|
|
1
|
+
⚠️ Make sure you [release a new version of this gem](https://github.com/alphagov/rack-logstasher/pull/43/files) after merging your changes. ⚠️
|
2
|
+
|
3
|
+
Refer to the [existing docs](https://docs.publishing.service.gov.uk/manual/publishing-a-ruby-gem.html#ruby-version-compatibility) if you are making changes to the supported Ruby versions.
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,17 +1,6 @@
|
|
1
1
|
on: [push, pull_request]
|
2
2
|
|
3
3
|
jobs:
|
4
|
-
snyk-security:
|
5
|
-
name: SNYK security analysis
|
6
|
-
uses: alphagov/govuk-infrastructure/.github/workflows/snyk-security.yml@main
|
7
|
-
with:
|
8
|
-
skip_sca: true
|
9
|
-
secrets: inherit
|
10
|
-
permissions:
|
11
|
-
contents: read
|
12
|
-
security-events: write
|
13
|
-
actions: read
|
14
|
-
|
15
4
|
codeql-sast:
|
16
5
|
name: CodeQL SAST scan
|
17
6
|
uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
|
@@ -26,8 +15,7 @@ jobs:
|
|
26
15
|
strategy:
|
27
16
|
fail-fast: false
|
28
17
|
matrix:
|
29
|
-
|
30
|
-
ruby: ['3.0', 3.1, 3.2]
|
18
|
+
ruby: [3.1, 3.2]
|
31
19
|
runs-on: ubuntu-latest
|
32
20
|
steps:
|
33
21
|
- uses: actions/checkout@v4
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.5
|
data/CHANGELOG.md
CHANGED
data/rack-logstasher.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/alphagov/rack-logstasher"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.required_ruby_version = ">= 3.
|
15
|
+
spec.required_ruby_version = ">= 3.1"
|
16
16
|
|
17
17
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency "rack-test", "~> 2"
|
26
26
|
spec.add_development_dependency "rake"
|
27
27
|
spec.add_development_dependency "rspec", "~> 3"
|
28
|
-
spec.add_development_dependency "rubocop-govuk", "4.
|
28
|
+
spec.add_development_dependency "rubocop-govuk", "4.17.1"
|
29
|
+
spec.add_development_dependency "simplecov"
|
29
30
|
end
|
@@ -61,7 +61,7 @@ describe Rack::Logstasher::Logger do
|
|
61
61
|
Rack::Logstasher::Logger.new(
|
62
62
|
proc { |_env| [200, {}, ["Inner app response"]] },
|
63
63
|
Logger.new(tmp_logfile_path),
|
64
|
-
extra_request_headers
|
64
|
+
extra_request_headers:,
|
65
65
|
)
|
66
66
|
end
|
67
67
|
|
@@ -104,7 +104,7 @@ describe Rack::Logstasher::Logger do
|
|
104
104
|
[200, headers, ["Inner app response"]]
|
105
105
|
end,
|
106
106
|
Logger.new(tmp_logfile_path),
|
107
|
-
extra_response_headers
|
107
|
+
extra_response_headers:,
|
108
108
|
)
|
109
109
|
end
|
110
110
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
-
# loaded once.
|
1
|
+
require "simplecov"
|
2
|
+
SimpleCov.start
|
5
3
|
|
6
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
7
|
-
# in spec/support/ and its subdirectories.
|
8
4
|
Dir[File.expand_path("support/**/*.rb", __dir__)].sort.each { |f| require f }
|
9
5
|
|
10
6
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-logstasher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04
|
11
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-event
|
@@ -92,14 +92,28 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - '='
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 4.
|
95
|
+
version: 4.17.1
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - '='
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 4.
|
102
|
+
version: 4.17.1
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: simplecov
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
103
117
|
description: Rack middleware to log requests in logstash json event format. Like
|
104
118
|
the logstasher gem, but for rack apps.
|
105
119
|
email:
|
@@ -109,6 +123,7 @@ extensions: []
|
|
109
123
|
extra_rdoc_files: []
|
110
124
|
files:
|
111
125
|
- ".github/dependabot.yml"
|
126
|
+
- ".github/pull_request_template.md"
|
112
127
|
- ".github/workflows/autorelease.yml"
|
113
128
|
- ".github/workflows/ci.yml"
|
114
129
|
- ".gitignore"
|
@@ -140,14 +155,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
155
|
requirements:
|
141
156
|
- - ">="
|
142
157
|
- !ruby/object:Gem::Version
|
143
|
-
version: '3.
|
158
|
+
version: '3.1'
|
144
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
160
|
requirements:
|
146
161
|
- - ">="
|
147
162
|
- !ruby/object:Gem::Version
|
148
163
|
version: '0'
|
149
164
|
requirements: []
|
150
|
-
rubygems_version: 3.5.
|
165
|
+
rubygems_version: 3.5.11
|
151
166
|
signing_key:
|
152
167
|
specification_version: 4
|
153
168
|
summary: Rack middleware to log requests in logstash json event format
|