sensu-extensions 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -4
- data/lib/sensu/extensions/mutators/json.rb +2 -2
- data/sensu-extensions.gemspec +3 -5
- data/spec/assets/extensions/extensions_symlinked +1 -0
- data/spec/helpers.rb +2 -2
- data/spec/mutators/json_spec.rb +1 -1
- metadata +11 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32bbc269b7600b4c9cdbbafecf24fe71205afacb
|
4
|
+
data.tar.gz: a4222d5cc6773e0a91a971d497e2ba59b52aedea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6272b5636078f5bd5cbdef7dc94960e3f24e04248d9618aec29a3ea6fc599b8354bc6a2010c75fb29f50e8aae93ce9b32dcac3710d965740f24c64509570cfe
|
7
|
+
data.tar.gz: 9ea7f181065d86a9036721f351f2e92017244ff55a11346c3f83fbff5947d7888496d42019e91bc9cdfd4001ad61a61aad560cd05809b2423e2f2cf1e640997a
|
data/.travis.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "sensu/extension"
|
2
|
-
require "
|
2
|
+
require "sensu/json"
|
3
3
|
|
4
4
|
module Sensu
|
5
5
|
module Extension
|
@@ -13,7 +13,7 @@ module Sensu
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def run(event)
|
16
|
-
yield
|
16
|
+
yield Sensu::JSON.dump(event), 0
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/sensu-extensions.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "sensu-extensions"
|
5
|
-
spec.version = "1.
|
5
|
+
spec.version = "1.5.0"
|
6
6
|
spec.authors = ["Sean Porter"]
|
7
7
|
spec.email = ["portertech@gmail.com"]
|
8
8
|
spec.summary = "The Sensu extension loader library"
|
@@ -15,16 +15,14 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
+
spec.add_dependency "sensu-json", ">= 1.1.0"
|
18
19
|
spec.add_dependency "sensu-logger"
|
19
20
|
spec.add_dependency "sensu-settings"
|
20
21
|
spec.add_dependency "sensu-extension"
|
21
22
|
|
22
|
-
spec.add_dependency "multi_json"
|
23
|
-
|
24
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
25
|
-
spec.add_development_dependency "uuidtools"
|
26
24
|
spec.add_development_dependency "rake"
|
27
25
|
spec.add_development_dependency "rspec"
|
28
26
|
spec.add_development_dependency "bouncy-castle-java" if RUBY_PLATFORM =~ /java/
|
29
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
27
|
+
spec.add_development_dependency "codeclimate-test-reporter"
|
30
28
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
../extensions_symlinked
|
data/spec/helpers.rb
CHANGED
@@ -2,7 +2,7 @@ require "rspec"
|
|
2
2
|
require "eventmachine"
|
3
3
|
require "sensu/logger"
|
4
4
|
require "sensu/settings"
|
5
|
-
require "
|
5
|
+
require "securerandom"
|
6
6
|
|
7
7
|
unless RUBY_VERSION < "1.9" || RUBY_PLATFORM =~ /java/
|
8
8
|
require "codeclimate-test-reporter"
|
@@ -70,7 +70,7 @@ module Helpers
|
|
70
70
|
check[:status] = 1
|
71
71
|
check[:history] = [1]
|
72
72
|
{
|
73
|
-
:id =>
|
73
|
+
:id => SecureRandom.uuid,
|
74
74
|
:client => client,
|
75
75
|
:check => check,
|
76
76
|
:occurrences => 1,
|
data/spec/mutators/json_spec.rb
CHANGED
metadata
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: sensu-
|
14
|
+
name: sensu-json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: sensu-
|
28
|
+
name: sensu-logger
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: sensu-
|
42
|
+
name: sensu-settings
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: sensu-extension
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.6'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: uuidtools
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: rake
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,6 +144,7 @@ files:
|
|
158
144
|
- sensu-extensions.gemspec
|
159
145
|
- spec/assets/config.json
|
160
146
|
- spec/assets/extensions/error.rb
|
147
|
+
- spec/assets/extensions/extensions_symlinked
|
161
148
|
- spec/assets/extensions/mock_check.rb
|
162
149
|
- spec/assets/extensions/test.rb
|
163
150
|
- spec/assets/extensions_symlinked/symlinked_check.rb
|
@@ -188,13 +175,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
175
|
version: '0'
|
189
176
|
requirements: []
|
190
177
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.5.1
|
192
179
|
signing_key:
|
193
180
|
specification_version: 4
|
194
181
|
summary: The Sensu extension loader library
|
195
182
|
test_files:
|
196
183
|
- spec/assets/config.json
|
197
184
|
- spec/assets/extensions/error.rb
|
185
|
+
- spec/assets/extensions/extensions_symlinked
|
198
186
|
- spec/assets/extensions/mock_check.rb
|
199
187
|
- spec/assets/extensions/test.rb
|
200
188
|
- spec/assets/extensions_symlinked/symlinked_check.rb
|