riemann-bacula 2.0.2 → 3.0.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: 9e57c859587fc5436a75512848446e70b903777bf12205bb8d9fe668b9031695
4
- data.tar.gz: dc4a2acd515e0a130e284af243683bce3dc3b336455787a4eb474ad43d5f9b84
3
+ metadata.gz: e1b8e3157426aa0222146772ab55d4280db70914f68798338165facdbbeaed26
4
+ data.tar.gz: 044d6f5915334353b15453e8c6667613afe1117776aeaf29b06862f112b43de7
5
5
  SHA512:
6
- metadata.gz: a20f4f8b5c93494618cb6bd83fab09d2033da3ea13a7d5fe1e9a8ffde17772a85ca0249c7f171017987564af2b329f638835e72afd5c76e6d965537586790360
7
- data.tar.gz: 8c76b3d079005fd043460b36275964fdf941c46e1e355b75b224a0b311c683adb9c410e15c6caf1a03efb86390f67675fac5cb9fafe12ccfd75146490ac7f8fb
6
+ metadata.gz: 93cf5171b18914c899079304d8a6a62792793bbd9271ad0c1a271dfee744e28ec86b594f71aab5c22c92b7017a5f32bcd7e8ad2750b0bcb6d940ad9cf532850a
7
+ data.tar.gz: 20c939d535b07c4ac48397a86d5b8a20d77fbabdadd81cc8cb42e388b8c9bbd32d1aeeb4fd49bc2877be585a29ed0c3eddffdd02a280ef95300a1c48f40c0cff
@@ -31,6 +31,9 @@ jobs:
31
31
  - "2.7"
32
32
  - "3.0"
33
33
  - "3.1"
34
+ - "3.2"
35
+ - "3.3"
36
+ - "3.4"
34
37
  name: Ruby ${{ matrix.ruby }}
35
38
  steps:
36
39
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.0.0](https://github.com/opus-codium/riemann-bacula/tree/v3.0.0) (2025-01-06)
4
+
5
+ [Full Changelog](https://github.com/opus-codium/riemann-bacula/compare/v2.0.2...v3.0.0)
6
+
7
+ **Breaking changes:**
8
+
9
+ - Do not update canceled backups state [\#14](https://github.com/opus-codium/riemann-bacula/pull/14) ([smortex](https://github.com/smortex))
10
+
3
11
  ## [v2.0.2](https://github.com/opus-codium/riemann-bacula/tree/v2.0.2) (2023-03-27)
4
12
 
5
13
  [Full Changelog](https://github.com/opus-codium/riemann-bacula/compare/v2.0.1...v2.0.2)
@@ -3,7 +3,7 @@
3
3
  module Riemann
4
4
  module Tools # :nodoc:
5
5
  class Bacula
6
- VERSION = '2.0.2'
6
+ VERSION = '3.0.0'
7
7
  end
8
8
  end
9
9
  end
@@ -29,13 +29,15 @@ module Riemann
29
29
 
30
30
  data = parse($stdin.read)
31
31
 
32
- report({
33
- service: "bacula backup #{opts[:job_name]}",
34
- state: bacula_backup_state,
35
- job_name: opts[:job_name],
36
- backup_level: opts[:backup_level],
37
- description: "#{opts[:status]} (#{data['Termination']})",
38
- })
32
+ if opts[:status] != 'Canceled'
33
+ report({
34
+ service: "bacula backup #{opts[:job_name]}",
35
+ state: bacula_backup_state,
36
+ job_name: opts[:job_name],
37
+ backup_level: opts[:backup_level],
38
+ description: "#{opts[:status]} (#{data['Termination']})",
39
+ })
40
+ end
39
41
 
40
42
  %i[bytes files].each do |metric|
41
43
  next unless opts[metric]
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ['lib']
32
32
 
33
- spec.add_runtime_dependency 'riemann-tools', '~> 1.0'
33
+ spec.add_dependency 'riemann-tools', '~> 1.0'
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-bacula
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain Tartière
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riemann-tools
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.4.5
73
+ rubygems_version: 3.3.15
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Submits bacula information to riemann