sidekiq-logstash 3.2.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +2 -2
- data/.github/workflows/publish.yml +1 -1
- data/.rubocop.yml +1 -1
- data/README.md +1 -1
- data/lib/sidekiq/logging/logstash_formatter.rb +1 -1
- data/lib/sidekiq/logstash/version.rb +1 -1
- data/lib/sidekiq/logstash_job_logger.rb +2 -2
- data/sidekiq-logstash.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f64be7ef6c83dfa222803106ef0f335851dcf9711197cc910323f6e73f7b33b0
|
4
|
+
data.tar.gz: 9669782de8205832ac862926a024955edb4c994eb7ab2710f1b0e4608895b74a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9121ef3c47bfb9ba1e51ba7b6916cc92e98160efc0b393ead66003534729f92b00732216263812552eab10240f8f9f1664135f48550b81501ec7160d7fd8a103
|
7
|
+
data.tar.gz: 172dfaff1de740be03eea5787e0bae44ed766169569dba233c5845a0db48a3e3adfdc8f84be3ae2ca04b3a387193c73c968634eb355e5a322bfcbfe8623f10cd
|
data/.github/workflows/ci.yml
CHANGED
@@ -21,7 +21,7 @@ jobs:
|
|
21
21
|
- uses: actions/checkout@v4
|
22
22
|
- uses: ruby/setup-ruby@v1
|
23
23
|
with:
|
24
|
-
ruby-version: 3
|
24
|
+
ruby-version: 3.2
|
25
25
|
bundler-cache: true
|
26
26
|
|
27
27
|
- name: Run rubocop
|
@@ -31,7 +31,7 @@ jobs:
|
|
31
31
|
runs-on: ubuntu-latest
|
32
32
|
strategy:
|
33
33
|
matrix:
|
34
|
-
ruby: ['3.
|
34
|
+
ruby: ['3.2', '3.3', '3.4']
|
35
35
|
|
36
36
|
steps:
|
37
37
|
- uses: actions/checkout@v4
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -33,7 +33,7 @@ Sidekiq::Logstash turns your [Sidekiq](https://github.com/mperham/sidekiq) log i
|
|
33
33
|
Add one of the following lines to your application's Gemfile:
|
34
34
|
|
35
35
|
```ruby
|
36
|
-
gem 'sidekiq-logstash', '~> 3.0' # Sidekiq 7
|
36
|
+
gem 'sidekiq-logstash', '~> 3.0' # Sidekiq 7 or 8
|
37
37
|
gem 'sidekiq-logstash', '~> 2.0' # Sidekiq 6
|
38
38
|
gem 'sidekiq-logstash', '< 2' # Sidekiq 5 or older
|
39
39
|
```
|
@@ -7,7 +7,7 @@ module Sidekiq
|
|
7
7
|
# Class that takes a log payload and format it to be Logstash-compatible.
|
8
8
|
class LogstashFormatter
|
9
9
|
def call(severity, _time, _progname, data)
|
10
|
-
json_data = { severity:
|
10
|
+
json_data = { severity: }
|
11
11
|
|
12
12
|
if data.is_a? Hash
|
13
13
|
json_data.merge!(data)
|
data/sidekiq-logstash.gemspec
CHANGED
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
21
|
spec.require_paths = ['lib']
|
22
|
-
spec.required_ruby_version = '>= 3.
|
22
|
+
spec.required_ruby_version = '>= 3.2.0'
|
23
23
|
|
24
24
|
spec.add_dependency 'logstash-event', '~> 1.2'
|
25
|
-
spec.add_dependency 'sidekiq', '~>
|
25
|
+
spec.add_dependency 'sidekiq', '~> 8.0'
|
26
26
|
|
27
27
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-logstash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Giuffrida
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-event
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '8.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '8.0'
|
41
41
|
description: 'Sidekiq::Logstash turns your Sidekiq log into an organised, aggregated,
|
42
42
|
JSON-syntax log ready to be sent to a logstash server.
|
43
43
|
|
@@ -74,7 +74,7 @@ licenses:
|
|
74
74
|
- MIT
|
75
75
|
metadata:
|
76
76
|
rubygems_mfa_required: 'true'
|
77
|
-
post_install_message:
|
77
|
+
post_install_message:
|
78
78
|
rdoc_options: []
|
79
79
|
require_paths:
|
80
80
|
- lib
|
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements:
|
83
83
|
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 3.
|
85
|
+
version: 3.2.0
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubygems_version: 3.4.19
|
93
|
-
signing_key:
|
93
|
+
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Logstash plugin for Sidekiq
|
96
96
|
test_files: []
|