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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a4370f7b7207d7d9fbdd41790ff2c33516eb7eae11872ebb8487c5ba14a5927
4
- data.tar.gz: 5fc4eb96ab1fff94b08c3bf904c134d9ada78acc735a2c9e943782065d34808c
3
+ metadata.gz: 5632b7b41fc2ec5644275afc34031f6c18f85ae8a08354c13eb776f0b12783c7
4
+ data.tar.gz: 3951d485a52eedd7985146a47d348fa4b7719822a3dc87497807560f95977c6c
5
5
  SHA512:
6
- metadata.gz: d98b7afe5ecb8bbcbbe77e23c991532afe56329c8cd5ee0e8ab6035a1f588eb5d8559fc6683c4e0611563dad23ff7213bf332a5e022409b72b4b5537d4a1cc88
7
- data.tar.gz: b869d0a6e1c3901d8ac5bdbab7fd255245d21b29a2c35c8eb49c15b58701cfa48fa7b1f8f80ac9c88dd31bd7b41c34e8b4608d28f4ca47cc8a64c0ee71dabdc4
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.
@@ -1,7 +1,7 @@
1
1
  on:
2
2
  workflow_dispatch: {}
3
3
  schedule:
4
- - cron: '00 13 * * 2'
4
+ - cron: '30 10 * * 1-5' # 10:30am UTC, Mon-Fri.
5
5
 
6
6
  jobs:
7
7
  autorelease:
@@ -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
- # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
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
@@ -15,3 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ # simplecov
19
+ coverage/
@@ -1,6 +1,4 @@
1
- api_version: 1
2
- auto_merge:
3
- - dependency: rubocop-govuk
4
- allowed_semver_bumps:
5
- - patch
6
- - minor
1
+ api_version: 2
2
+ defaults:
3
+ auto_merge: true
4
+ update_external_dependencies: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.1.5
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 2.1.0
1
+ # 2.2.0
2
+
3
+ * Drop support for Ruby 3.0
4
+
5
+ # 2.1.0
2
6
 
3
7
  * Drop support for Ruby 2.7.
4
8
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Logstasher
3
- VERSION = "2.1.0".freeze
3
+ VERSION = "2.2.0".freeze
4
4
  end
5
5
  end
@@ -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.0"
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.16.1"
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: 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: 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
- # This file was generated by the `rspec --init` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
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.1.0
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-10 00:00:00.000000000 Z
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.16.1
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.16.1
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.0'
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.7
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