sensu 0.11.1 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 0.11.3 - 2013-10-23
2
+
3
+ ### Other
4
+
5
+ Fixed redacting sensitive information in log lines during configuration
6
+ loading.
7
+
8
+ Fixed AMQP library dependency version resolution.
9
+
10
+ Changed to an older version of the JSON parser, until the source of a
11
+ memory leak is identified.
12
+
13
+ ## 0.11.2 - 2013-10-23
14
+
15
+ ### Features
16
+
17
+ Sensu profiler extension support.
18
+
19
+ Added logger() to the extension API, providing access to the Sensu logger.
20
+
1
21
  ## 0.11.1 - 2013-10-16
2
22
 
3
23
  ### Other
data/lib/sensu/base.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
 
3
- gem 'oj', '2.1.4'
3
+ gem 'oj', '2.0.9'
4
4
  gem 'eventmachine', '1.0.3'
5
5
 
6
6
  require 'time'
@@ -1,12 +1,12 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
- VERSION = '0.11.1'
3
+ VERSION = '0.11.3'
4
4
 
5
5
  LOG_LEVELS = [:debug, :info, :warn, :error, :fatal]
6
6
 
7
7
  SETTINGS_CATEGORIES = [:checks, :filters, :mutators, :handlers]
8
8
 
9
- EXTENSION_CATEGORIES = [:checks, :mutators, :handlers]
9
+ EXTENSION_CATEGORIES = [:profilers, :checks, :mutators, :handlers]
10
10
 
11
11
  SEVERITIES = %w[ok warning critical unknown]
12
12
 
@@ -47,6 +47,7 @@ module Sensu
47
47
  extension_type = category.to_s.chop
48
48
  Extension.const_get(extension_type.capitalize).descendants.each do |klass|
49
49
  extension = klass.new
50
+ extension.logger = @logger
50
51
  @extensions[category][extension.name] = extension
51
52
  loaded(extension_type, extension.name, extension.description)
52
53
  end
@@ -95,7 +96,7 @@ module Sensu
95
96
 
96
97
  module Extension
97
98
  class Base
98
- attr_accessor :settings
99
+ attr_accessor :logger, :settings
99
100
 
100
101
  def initialize
101
102
  EM::next_tick do
@@ -71,6 +71,10 @@ module Sensu
71
71
  hash[key] = "REDACTED"
72
72
  elsif value.is_a?(Hash)
73
73
  hash[key] = redact_sensitive(value, keys)
74
+ elsif value.is_a?(Array)
75
+ hash[key] = value.map do |item|
76
+ item.is_a?(Hash) ? redact_sensitive(item, keys) : item
77
+ end
74
78
  end
75
79
  end
76
80
  hash
data/sensu.gemspec CHANGED
@@ -13,8 +13,9 @@ Gem::Specification.new do |s|
13
13
  s.license = 'MIT'
14
14
  s.has_rdoc = false
15
15
 
16
- s.add_dependency('oj', '2.1.4')
16
+ s.add_dependency('oj', '2.0.9')
17
17
  s.add_dependency('eventmachine', '1.0.3')
18
+ s.add_dependency('amq-protocol', '1.2.0')
18
19
  s.add_dependency('amqp', '1.0.0')
19
20
  s.add_dependency('em-redis-unified', '0.4.2')
20
21
  s.add_dependency('thin', '1.5.0')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 53
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 1
10
- version: 0.11.1
9
+ - 3
10
+ version: 0.11.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Porter
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-10-16 00:00:00 -07:00
19
+ date: 2013-10-23 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,12 +27,12 @@ dependencies:
27
27
  requirements:
28
28
  - - "="
29
29
  - !ruby/object:Gem::Version
30
- hash: 3
30
+ hash: 29
31
31
  segments:
32
32
  - 2
33
- - 1
34
- - 4
35
- version: 2.1.4
33
+ - 0
34
+ - 9
35
+ version: 2.0.9
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
@@ -52,9 +52,25 @@ dependencies:
52
52
  type: :runtime
53
53
  version_requirements: *id002
54
54
  - !ruby/object:Gem::Dependency
55
- name: amqp
55
+ name: amq-protocol
56
56
  prerelease: false
57
57
  requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - "="
61
+ - !ruby/object:Gem::Version
62
+ hash: 31
63
+ segments:
64
+ - 1
65
+ - 2
66
+ - 0
67
+ version: 1.2.0
68
+ type: :runtime
69
+ version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
71
+ name: amqp
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
58
74
  none: false
59
75
  requirements:
60
76
  - - "="
@@ -66,11 +82,11 @@ dependencies:
66
82
  - 0
67
83
  version: 1.0.0
68
84
  type: :runtime
69
- version_requirements: *id003
85
+ version_requirements: *id004
70
86
  - !ruby/object:Gem::Dependency
71
87
  name: em-redis-unified
72
88
  prerelease: false
73
- requirement: &id004 !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
74
90
  none: false
75
91
  requirements:
76
92
  - - "="
@@ -82,11 +98,11 @@ dependencies:
82
98
  - 2
83
99
  version: 0.4.2
84
100
  type: :runtime
85
- version_requirements: *id004
101
+ version_requirements: *id005
86
102
  - !ruby/object:Gem::Dependency
87
103
  name: thin
88
104
  prerelease: false
89
- requirement: &id005 !ruby/object:Gem::Requirement
105
+ requirement: &id006 !ruby/object:Gem::Requirement
90
106
  none: false
91
107
  requirements:
92
108
  - - "="
@@ -98,11 +114,11 @@ dependencies:
98
114
  - 0
99
115
  version: 1.5.0
100
116
  type: :runtime
101
- version_requirements: *id005
117
+ version_requirements: *id006
102
118
  - !ruby/object:Gem::Dependency
103
119
  name: sinatra
104
120
  prerelease: false
105
- requirement: &id006 !ruby/object:Gem::Requirement
121
+ requirement: &id007 !ruby/object:Gem::Requirement
106
122
  none: false
107
123
  requirements:
108
124
  - - "="
@@ -114,11 +130,11 @@ dependencies:
114
130
  - 5
115
131
  version: 1.3.5
116
132
  type: :runtime
117
- version_requirements: *id006
133
+ version_requirements: *id007
118
134
  - !ruby/object:Gem::Dependency
119
135
  name: async_sinatra
120
136
  prerelease: false
121
- requirement: &id007 !ruby/object:Gem::Requirement
137
+ requirement: &id008 !ruby/object:Gem::Requirement
122
138
  none: false
123
139
  requirements:
124
140
  - - "="
@@ -130,11 +146,11 @@ dependencies:
130
146
  - 0
131
147
  version: 1.0.0
132
148
  type: :runtime
133
- version_requirements: *id007
149
+ version_requirements: *id008
134
150
  - !ruby/object:Gem::Dependency
135
151
  name: rake
136
152
  prerelease: false
137
- requirement: &id008 !ruby/object:Gem::Requirement
153
+ requirement: &id009 !ruby/object:Gem::Requirement
138
154
  none: false
139
155
  requirements:
140
156
  - - ">="
@@ -144,11 +160,11 @@ dependencies:
144
160
  - 0
145
161
  version: "0"
146
162
  type: :development
147
- version_requirements: *id008
163
+ version_requirements: *id009
148
164
  - !ruby/object:Gem::Dependency
149
165
  name: rspec
150
166
  prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
167
+ requirement: &id010 !ruby/object:Gem::Requirement
152
168
  none: false
153
169
  requirements:
154
170
  - - ">="
@@ -158,11 +174,11 @@ dependencies:
158
174
  - 0
159
175
  version: "0"
160
176
  type: :development
161
- version_requirements: *id009
177
+ version_requirements: *id010
162
178
  - !ruby/object:Gem::Dependency
163
179
  name: em-http-request
164
180
  prerelease: false
165
- requirement: &id010 !ruby/object:Gem::Requirement
181
+ requirement: &id011 !ruby/object:Gem::Requirement
166
182
  none: false
167
183
  requirements:
168
184
  - - ">="
@@ -172,7 +188,7 @@ dependencies:
172
188
  - 0
173
189
  version: "0"
174
190
  type: :development
175
- version_requirements: *id010
191
+ version_requirements: *id011
176
192
  description: A monitoring framework that aims to be simple, malleable, and scalable. Uses the publish/subscribe model.
177
193
  email:
178
194
  - portertech@gmail.com