sensu-plugins-tripwire 1.0.0 → 1.1.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
- SHA1:
3
- metadata.gz: ed02ae46a5d8a79105cbdcfcad9c612fa3d1667e
4
- data.tar.gz: bcd79eb9e6ed5f120390fb375eedff3b943249e3
2
+ SHA256:
3
+ metadata.gz: b1c2875411386e5eac6de2f4705329f2538e045ea3b19a06c87a9fe1ab8aa67d
4
+ data.tar.gz: 82f35e6960144e9b7083b1c9ca2ef6c01c838c12d0c11d64a4028d56bd58bf0b
5
5
  SHA512:
6
- metadata.gz: faea958a23f7fb61bac68a9e927bc2302740e81fbc5ae2ec1c04b0f6f304916c82f02f39b8638ae72462b42537fd7a73b647d038cff3879111f57fbfa29554b9
7
- data.tar.gz: 03384ceae067f55b84d5e40ca4ee57c3ad34e60f1063c5ddeda9dccc464ea72f94b143d34779be34ad829350273190513fabf12a659784042cee4ea90a489d42
6
+ metadata.gz: 0713c90efabf40daf976f144d957c4254518f4bce481576bb10b4ac929334c3d4652db4e7966189a3c3c8a1a14ae689dd0190610973cb743c7733c9ee23e9e4d
7
+ data.tar.gz: 732d7e27aaada2f5cbdf3fd14cd8494a05666e42d9a56a6799f589e1262e3e08b5a1ae6f0b061ac60cae9f2f69a0a740fc26d63c1628b6c54b3b7df5c986945f
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
+ ## [1.1.0] - 2020-02-18
8
+ ### Added
9
+ - Building Sensu Go asset release artifacts for Bonsai.
10
+
7
11
  ## [1.0.0] - 2017-07-09
8
12
  ### Added
9
13
  - Ruby 2.3.0 & 2.4.1 testing (@Evesy)
data/README.md CHANGED
@@ -5,6 +5,16 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-tripwire/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-tripwire)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-tripwire/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-tripwire)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-tripwire.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-tripwire)
8
+ [![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-tripwire)
9
+
10
+ ## Sensu Asset
11
+ The Sensu assets packaged from this repository are built against the
12
+ Sensu Ruby runtime environment. When using these assets as part of a
13
+ Sensu Go resource (check, mutator or handler), make sure you include
14
+ the corresponding Sensu Ruby runtime asset in the list of assets
15
+ needed by the resource. The current ruby-runtime assets can be found
16
+ [here](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the
17
+ Bonsai Asset Index](bonsai.sensu.io).
8
18
 
9
19
  ## Functionality
10
20
 
@@ -98,7 +98,7 @@ class TripwireCheck < Sensu::Plugin::Check::CLI
98
98
  open(tmp_db, 'wb') do |db|
99
99
  db << open(database).read
100
100
  end
101
- rescue => e
101
+ rescue StandardError => e
102
102
  critical "Error loading database from #{database}. Message #{e.message}"
103
103
  exit 1
104
104
  end
@@ -150,19 +150,19 @@ class TripwireCheck < Sensu::Plugin::Check::CLI
150
150
  report = run_tripwire.split("\n")
151
151
  violations = parse_violations report
152
152
  cleanup
153
- rescue => e
153
+ rescue StandardError => e
154
154
  cleanup
155
155
  warning "Error running tripwire. #{e. message}"
156
156
  exit 1
157
157
  end
158
158
 
159
- violations.each do |_name, violation|
159
+ violations.each_value do |violation|
160
160
  if violation[:level] >= config[:critical].to_i
161
161
  critical violation.to_json
162
162
  elsif violation[:level] >= config[:warn].to_i
163
163
  warning violation.to_json
164
164
  end
165
165
  end
166
- ok 'no violations' if violations.size == 0 # rubocop:disable Style/ZeroLengthPredicate
166
+ ok 'no violations' if violations.size.zero?
167
167
  end
168
168
  end
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsTripwire
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,71 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-tripwire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '1.7'
39
+ version: '2.1'
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '1.7'
46
+ version: '2.1'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: codeclimate-test-reporter
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0.4'
53
+ version: '1.0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '0.4'
60
+ version: '1.0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: github-markup
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '1.3'
67
+ version: '3.0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: '1.3'
74
+ version: '3.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: pry
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +92,14 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '10.5'
95
+ version: '12.3'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '10.5'
102
+ version: '12.3'
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: redcarpet
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +120,14 @@ dependencies:
114
120
  requirements:
115
121
  - - "~>"
116
122
  - !ruby/object:Gem::Version
117
- version: 0.40.0
123
+ version: 0.50.0
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
128
  - - "~>"
123
129
  - !ruby/object:Gem::Version
124
- version: 0.40.0
130
+ version: 0.50.0
125
131
  - !ruby/object:Gem::Dependency
126
132
  name: rspec
127
133
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +148,14 @@ dependencies:
142
148
  requirements:
143
149
  - - "~>"
144
150
  - !ruby/object:Gem::Version
145
- version: '0.8'
151
+ version: 0.9.20
146
152
  type: :development
147
153
  prerelease: false
148
154
  version_requirements: !ruby/object:Gem::Requirement
149
155
  requirements:
150
156
  - - "~>"
151
157
  - !ruby/object:Gem::Version
152
- version: '0.8'
158
+ version: 0.9.20
153
159
  description: Sensu plugins for tripwire
154
160
  email: "<sensu-users@googlegroups.com>"
155
161
  executables:
@@ -189,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
195
  version: '0'
190
196
  requirements: []
191
197
  rubyforge_project:
192
- rubygems_version: 2.4.5
198
+ rubygems_version: 2.7.7
193
199
  signing_key:
194
200
  specification_version: 4
195
201
  summary: Sensu plugins for tripwire