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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc93781349822980f313d64c414cdf1f1e44803e
4
- data.tar.gz: 7330fceb5626310ecc80fbf71bbabdfaf7c9485b
3
+ metadata.gz: 32bbc269b7600b4c9cdbbafecf24fe71205afacb
4
+ data.tar.gz: a4222d5cc6773e0a91a971d497e2ba59b52aedea
5
5
  SHA512:
6
- metadata.gz: d432073a2da2b54fe5cbe8e11672f54e22a2668532314539ec202bae0b23c651e70785f26a7eaa2de8b74e9a6d2b7eb6f8c105d64c9f92eb8292ef4b538a5f77
7
- data.tar.gz: 677aa3cd32515c7969197060bcd16b3ead89798bb3f6fef0668fe1f6fb6185cf403613de8052c2ac33e670d24992c7426d977f0c488692b11fb50e35e910559a
6
+ metadata.gz: b6272b5636078f5bd5cbdef7dc94960e3f24e04248d9618aec29a3ea6fc599b8354bc6a2010c75fb29f50e8aae93ce9b32dcac3710d965740f24c64509570cfe
7
+ data.tar.gz: 9ea7f181065d86a9036721f351f2e92017244ff55a11346c3f83fbff5947d7888496d42019e91bc9cdfd4001ad61a61aad560cd05809b2423e2f2cf1e640997a
data/.travis.yml CHANGED
@@ -1,12 +1,12 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 1.8.7
5
- - 1.9.2
6
- - 1.9.3
7
4
  - 2.0.0
8
5
  - 2.1.0
9
- - jruby-1.7.18
6
+ - 2.2.0
7
+ - 2.2.3
8
+ - 2.3.0
9
+ - jruby-1.7.23
10
10
  notifications:
11
11
  irc:
12
12
  - "irc.freenode.net#sensu"
@@ -1,5 +1,5 @@
1
1
  require "sensu/extension"
2
- require "multi_json"
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 MultiJson.dump(event), 0
16
+ yield Sensu::JSON.dump(event), 0
17
17
  end
18
18
  end
19
19
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-extensions"
5
- spec.version = "1.4.0"
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" unless RUBY_VERSION < "1.9"
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 "uuidtools"
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 => UUIDTools::UUID.random_create.to_s,
73
+ :id => SecureRandom.uuid,
74
74
  :client => client,
75
75
  :check => check,
76
76
  :occurrences => 1,
@@ -17,7 +17,7 @@ describe "Sensu::Extension::Json" do
17
17
  }
18
18
  }
19
19
  @extension.safe_run(event) do |output, status|
20
- expect(output).to eq(MultiJson.dump(event))
20
+ expect(output).to eq(Sensu::JSON.dump(event))
21
21
  expect(status).to eq(0)
22
22
  end
23
23
  end
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.0
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: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sensu-logger
14
+ name: sensu-json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
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: '0'
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: sensu-settings
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-extension
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: multi_json
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.2.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