sensu-plugins-trello 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +28 -28
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/bin/check-trello-incidents.rb +3 -3
- data/bin/console +1 -0
- data/lib/sensu/plugins/trello/version.rb +3 -1
- data/lib/sensu/plugins/trello.rb +2 -0
- data/sensu-plugins-trello.gemspec +6 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c5c86f6cf1ce63a1aa1b89dde1efc2d561c12799f08f1ae0eaf118606d25c13
|
4
|
+
data.tar.gz: 17ffa0c0b4d4762bdb908d01f6e8d49dadcc1c5717d015a704cc39895c47939b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9855f90eb848d6848c38e8c9f34bec5429e9403cf04336aad9d1945a9f992c956acd695141c0138c2ccb74e386292dc96a006c9a4419752f0f54f4f43704c811
|
7
|
+
data.tar.gz: f8973dbacf4e4eaaf7f8a7362be8f10116825ff5d45cbcc96efb39b4f10808cd78b4f37bd79cd5d01565ff57f33a672dd80fc927ffd8c03173fe1f619c17cd72
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sensu-plugins-trello (0.2.
|
4
|
+
sensu-plugins-trello (0.2.4)
|
5
5
|
sensu-plugin (~> 2.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -12,31 +12,31 @@ GEM
|
|
12
12
|
ast (2.4.2)
|
13
13
|
crack (0.4.5)
|
14
14
|
rexml
|
15
|
-
diff-lcs (1.
|
15
|
+
diff-lcs (1.5.0)
|
16
16
|
hashdiff (1.0.1)
|
17
|
-
json (2.
|
17
|
+
json (2.6.2)
|
18
18
|
mixlib-cli (1.7.0)
|
19
|
-
parallel (1.
|
20
|
-
parser (3.
|
19
|
+
parallel (1.22.1)
|
20
|
+
parser (3.1.2.0)
|
21
21
|
ast (~> 2.4.1)
|
22
|
-
public_suffix (4.0.
|
23
|
-
rainbow (3.
|
24
|
-
rake (
|
25
|
-
regexp_parser (2.
|
22
|
+
public_suffix (4.0.7)
|
23
|
+
rainbow (3.1.1)
|
24
|
+
rake (13.0.6)
|
25
|
+
regexp_parser (2.4.0)
|
26
26
|
rexml (3.2.5)
|
27
|
-
rspec (3.
|
28
|
-
rspec-core (~> 3.
|
29
|
-
rspec-expectations (~> 3.
|
30
|
-
rspec-mocks (~> 3.
|
31
|
-
rspec-core (3.
|
32
|
-
rspec-support (~> 3.
|
33
|
-
rspec-expectations (3.
|
27
|
+
rspec (3.11.0)
|
28
|
+
rspec-core (~> 3.11.0)
|
29
|
+
rspec-expectations (~> 3.11.0)
|
30
|
+
rspec-mocks (~> 3.11.0)
|
31
|
+
rspec-core (3.11.0)
|
32
|
+
rspec-support (~> 3.11.0)
|
33
|
+
rspec-expectations (3.11.0)
|
34
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.
|
36
|
-
rspec-mocks (3.
|
35
|
+
rspec-support (~> 3.11.0)
|
36
|
+
rspec-mocks (3.11.1)
|
37
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
-
rspec-support (~> 3.
|
39
|
-
rspec-support (3.
|
38
|
+
rspec-support (~> 3.11.0)
|
39
|
+
rspec-support (3.11.0)
|
40
40
|
rubocop (0.93.1)
|
41
41
|
parallel (~> 1.10)
|
42
42
|
parser (>= 2.7.1.5)
|
@@ -46,15 +46,15 @@ GEM
|
|
46
46
|
rubocop-ast (>= 0.6.0)
|
47
47
|
ruby-progressbar (~> 1.7)
|
48
48
|
unicode-display_width (>= 1.4.0, < 2.0)
|
49
|
-
rubocop-ast (1.
|
50
|
-
parser (>= 3.
|
49
|
+
rubocop-ast (1.18.0)
|
50
|
+
parser (>= 3.1.1.0)
|
51
51
|
ruby-progressbar (1.11.0)
|
52
52
|
sensu-plugin (2.7.1)
|
53
53
|
json (< 3.0.0)
|
54
54
|
mixlib-cli (~> 1.5)
|
55
|
-
unicode-display_width (1.
|
56
|
-
webmock (3.
|
57
|
-
addressable (>= 2.
|
55
|
+
unicode-display_width (1.8.0)
|
56
|
+
webmock (3.14.0)
|
57
|
+
addressable (>= 2.8.0)
|
58
58
|
crack (>= 0.3.2)
|
59
59
|
hashdiff (>= 0.4.0, < 2.0.0)
|
60
60
|
|
@@ -62,12 +62,12 @@ PLATFORMS
|
|
62
62
|
ruby
|
63
63
|
|
64
64
|
DEPENDENCIES
|
65
|
-
bundler (~>
|
66
|
-
rake (~>
|
65
|
+
bundler (~> 2.0)
|
66
|
+
rake (~> 13.0)
|
67
67
|
rspec (~> 3.7)
|
68
68
|
rubocop (~> 0.54)
|
69
69
|
sensu-plugins-trello!
|
70
70
|
webmock (~> 3.3)
|
71
71
|
|
72
72
|
BUNDLED WITH
|
73
|
-
1.
|
73
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Sensu check for new incidents in Trello
|
2
2
|
|
3
|
-
|
3
|
+
Translate the presence of one or more Trello cards into actionable Sensu alerts to enable using Trello for triggering incident response.
|
4
4
|
|
5
5
|
Checks for cards in a trello list. If cards are present, the check returns
|
6
6
|
_CRITICAL_, containing name and date of last activity of card. When more than
|
data/Rakefile
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
#
|
3
5
|
# Check for new incidents in Trello
|
4
6
|
#
|
@@ -87,9 +89,7 @@ class CheckTrelloIncidents < Sensu::Plugin::Check::CLI
|
|
87
89
|
end
|
88
90
|
|
89
91
|
def check_list(host, port, key, token, list)
|
90
|
-
if list.match(/\A[a-z0-9]*\z/).nil?
|
91
|
-
raise format('Invalid value for list parameter: %<list>s', list: list)
|
92
|
-
end
|
92
|
+
raise format('Invalid value for list parameter: %<list>s', list: list) if list.match(/\A[a-z0-9]*\z/).nil?
|
93
93
|
|
94
94
|
path = format('/1/lists/%<list>s/cards', list: list)
|
95
95
|
|
data/bin/console
CHANGED
data/lib/sensu/plugins/trello.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'sensu/plugins/trello/version'
|
@@ -20,9 +22,11 @@ Gem::Specification.new do |spec|
|
|
20
22
|
f.match(%r{^(test|spec|features)/})
|
21
23
|
end
|
22
24
|
|
25
|
+
spec.required_ruby_version = '>= 2.7.0'
|
26
|
+
|
23
27
|
spec.add_dependency 'sensu-plugin', '~> 2.1'
|
24
|
-
spec.add_development_dependency 'bundler', '~>
|
25
|
-
spec.add_development_dependency 'rake', '~>
|
28
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
29
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
26
30
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
27
31
|
spec.add_development_dependency 'rubocop', '~> 0.54'
|
28
32
|
spec.add_development_dependency 'webmock', '~> 3.3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-trello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hauke Altmann
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sensu-plugin
|
@@ -31,28 +31,28 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '2.0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '2.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '13.0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '13.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
131
131
|
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
133
|
+
version: 2.7.0
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|