sensu-plugins-trello 0.2.1 → 0.2.4
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/.gitignore +1 -1
- data/.rubocop.yml +3 -0
- data/.ruby-version +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +73 -0
- data/README.md +5 -1
- data/Rakefile +2 -0
- data/bin/check-trello-incidents.rb +5 -5
- 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 +10 -9
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/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.0
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sensu-plugins-trello (0.2.4)
|
5
|
+
sensu-plugin (~> 2.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.8.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
|
+
ast (2.4.2)
|
13
|
+
crack (0.4.5)
|
14
|
+
rexml
|
15
|
+
diff-lcs (1.5.0)
|
16
|
+
hashdiff (1.0.1)
|
17
|
+
json (2.6.2)
|
18
|
+
mixlib-cli (1.7.0)
|
19
|
+
parallel (1.22.1)
|
20
|
+
parser (3.1.2.0)
|
21
|
+
ast (~> 2.4.1)
|
22
|
+
public_suffix (4.0.7)
|
23
|
+
rainbow (3.1.1)
|
24
|
+
rake (13.0.6)
|
25
|
+
regexp_parser (2.4.0)
|
26
|
+
rexml (3.2.5)
|
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
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.11.0)
|
36
|
+
rspec-mocks (3.11.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.11.0)
|
39
|
+
rspec-support (3.11.0)
|
40
|
+
rubocop (0.93.1)
|
41
|
+
parallel (~> 1.10)
|
42
|
+
parser (>= 2.7.1.5)
|
43
|
+
rainbow (>= 2.2.2, < 4.0)
|
44
|
+
regexp_parser (>= 1.8)
|
45
|
+
rexml
|
46
|
+
rubocop-ast (>= 0.6.0)
|
47
|
+
ruby-progressbar (~> 1.7)
|
48
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
49
|
+
rubocop-ast (1.18.0)
|
50
|
+
parser (>= 3.1.1.0)
|
51
|
+
ruby-progressbar (1.11.0)
|
52
|
+
sensu-plugin (2.7.1)
|
53
|
+
json (< 3.0.0)
|
54
|
+
mixlib-cli (~> 1.5)
|
55
|
+
unicode-display_width (1.8.0)
|
56
|
+
webmock (3.14.0)
|
57
|
+
addressable (>= 2.8.0)
|
58
|
+
crack (>= 0.3.2)
|
59
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
bundler (~> 2.0)
|
66
|
+
rake (~> 13.0)
|
67
|
+
rspec (~> 3.7)
|
68
|
+
rubocop (~> 0.54)
|
69
|
+
sensu-plugins-trello!
|
70
|
+
webmock (~> 3.3)
|
71
|
+
|
72
|
+
BUNDLED WITH
|
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
|
@@ -74,3 +74,7 @@ git commits and tags, and push the `.gem` file to
|
|
74
74
|
Bug reports and pull requests are welcome on GitHub at
|
75
75
|
https://github.com/aboutsource/sensu-plugins-trello.
|
76
76
|
|
77
|
+
|
78
|
+
## Security
|
79
|
+
|
80
|
+
* [Snyk](https://app.snyk.io/org/about-source/project/45653e6f-9c0f-413e-9024-501916e4492f)
|
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,13 +89,11 @@ 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
|
-
path = format('/1/lists/%<list>s/cards
|
94
|
+
path = format('/1/lists/%<list>s/cards', list: list)
|
95
95
|
|
96
|
-
uri = URI.parse(format('https://%<host>s:%<port>d
|
96
|
+
uri = URI.parse(format('https://%<host>s:%<port>d%<path>s',
|
97
97
|
host: host, port: port, path: path))
|
98
98
|
params = { key: key, token: token }
|
99
99
|
uri.query = URI.encode_www_form(params)
|
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
|
@@ -105,7 +105,9 @@ extra_rdoc_files: []
|
|
105
105
|
files:
|
106
106
|
- ".gitignore"
|
107
107
|
- ".rubocop.yml"
|
108
|
+
- ".ruby-version"
|
108
109
|
- Gemfile
|
110
|
+
- Gemfile.lock
|
109
111
|
- LICENSE
|
110
112
|
- README.md
|
111
113
|
- Rakefile
|
@@ -128,15 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
130
|
requirements:
|
129
131
|
- - ">="
|
130
132
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
133
|
+
version: 2.7.0
|
132
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
135
|
requirements:
|
134
136
|
- - ">="
|
135
137
|
- !ruby/object:Gem::Version
|
136
138
|
version: '0'
|
137
139
|
requirements: []
|
138
|
-
|
139
|
-
rubygems_version: 2.7.6
|
140
|
+
rubygems_version: 3.1.2
|
140
141
|
signing_key:
|
141
142
|
specification_version: 4
|
142
143
|
summary: Check if a Trello list contains card(s)
|