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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a83b2031669c8519371e3b02819cc9646488ffa1bfd3cbcb7fe679f61c8b05e
4
- data.tar.gz: c638f2ad14e73977de141ae082b1b68bd87b0186c6e81507b5e6c564171c5c26
3
+ metadata.gz: f64be7ef6c83dfa222803106ef0f335851dcf9711197cc910323f6e73f7b33b0
4
+ data.tar.gz: 9669782de8205832ac862926a024955edb4c994eb7ab2710f1b0e4608895b74a
5
5
  SHA512:
6
- metadata.gz: 2bce930465248b9328c29eb593802ec0b90be6265a9efa9e079245c5b84c06eed11166b4e0e9afc283292c6fef1e75cd1e95825dd869726995925b6d96f8dbfa
7
- data.tar.gz: 5eb1304578dceac2d372e4dc794cc118f88e73e13784646d5582185329f0ffddfd57759464c9a8606640e2027beca72d9e91cd18f00dd61de7e3d7630b30301f
6
+ metadata.gz: 9121ef3c47bfb9ba1e51ba7b6916cc92e98160efc0b393ead66003534729f92b00732216263812552eab10240f8f9f1664135f48550b81501ec7160d7fd8a103
7
+ data.tar.gz: 172dfaff1de740be03eea5787e0bae44ed766169569dba233c5845a0db48a3e3adfdc8f84be3ae2ca04b3a387193c73c968634eb355e5a322bfcbfe8623f10cd
@@ -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.0', '3.1', '3.2', '3.3']
34
+ ruby: ['3.2', '3.3', '3.4']
35
35
 
36
36
  steps:
37
37
  - uses: actions/checkout@v4
@@ -13,7 +13,7 @@ jobs:
13
13
  - uses: actions/checkout@v4
14
14
  - uses: actions/setup-ruby@v1
15
15
  with:
16
- ruby-version: 3
16
+ ruby-version: 3.2
17
17
 
18
18
  - name: Publish to RubyGems
19
19
  run: |
data/.rubocop.yml CHANGED
@@ -7,7 +7,7 @@ AllCops:
7
7
  DisplayCopNames: true
8
8
  DisplayStyleGuide: true
9
9
  NewCops: enable
10
- TargetRubyVersion: 3.0
10
+ TargetRubyVersion: 3.2
11
11
 
12
12
  Metrics/BlockLength:
13
13
  Exclude:
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: severity }
10
+ json_data = { severity: }
11
11
 
12
12
  if data.is_a? Hash
13
13
  json_data.merge!(data)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Logstash
5
- VERSION = '3.2.1'
5
+ VERSION = '3.3.0'
6
6
  end
7
7
  end
@@ -8,8 +8,8 @@ module Sidekiq
8
8
  class LogstashJobLogger < ::Sidekiq::JobLogger
9
9
  include Sidekiq::Logging::Shared
10
10
 
11
- def call(job, _queue, &block)
12
- log_job(job, &block)
11
+ def call(job, _queue, &)
12
+ log_job(job, &)
13
13
  end
14
14
  end
15
15
  end
@@ -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.0.0'
22
+ spec.required_ruby_version = '>= 3.2.0'
23
23
 
24
24
  spec.add_dependency 'logstash-event', '~> 1.2'
25
- spec.add_dependency 'sidekiq', '~> 7.0'
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.2.1
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: 2024-12-03 00:00:00.000000000 Z
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: '7.0'
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: '7.0'
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.0.0
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: []