sensu 0.23.0.beta → 0.23.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: 7b0c1933136a7aace8e886cb8796276eff73abd9
4
- data.tar.gz: b9f4f1616c8b9746c7593ccc9e46c5bddf91ee4b
3
+ metadata.gz: 6e94141044373f40e066c0aa72aada09f7566d8b
4
+ data.tar.gz: 7348798562b157e715dfcceb3f93fb903f57d9a2
5
5
  SHA512:
6
- metadata.gz: 15ceca05ff255ddf025e7dc0fc36f54b69fbb7baa69ea5b9644026eef78f9dca4de2fa05eca067c6f222e2efd068954ced1de53a854d946eea594c8ef7c20c68
7
- data.tar.gz: c4b90a4c84dd9d0aa8e5900aa83e7a3df90cf7899362ea1457ce6a4e40302f7a37052f33a6bd3449df7665bc47e6e916cde8d0520af14e451f77f8ccaafb3a39
6
+ metadata.gz: 4d166e935a3746a1965562906ffd17c75d47ef9c37a346ee82c8bc79216106a8cb05c437de0db9823ed6bf6dbefa0b5b29665923d4a0a7bd781e45a98096cdd8
7
+ data.tar.gz: cca22a1e40a05a47b43675af230646a36e83d43a8ab1366b13db5758c06bf64cdcf0b06477c5a0d89757246aa4fc6a3b013a67663092acaa404ae167af907ad8
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.23.0 - 2016-03-29
1
+ ## 0.23.0 - 2016-04-04
2
2
 
3
3
  ### Important
4
4
 
@@ -25,6 +25,8 @@ STDOUT) its compiled configuration settings and exit. The CLI option is
25
25
  Added token substitution to filter eval attributes, providing access to
26
26
  event data, e.g. `"occurrences": "eval: value == :::check.occurrences:::"`.
27
27
 
28
+ The pure Ruby EventMachine reactor is used when running on AIX.
29
+
28
30
  The Sensu 0.23 packages use Ruby 2.3.
29
31
 
30
32
  ### Other
@@ -84,8 +84,8 @@ module Sensu
84
84
  def stop
85
85
  @logger.warn("stopping")
86
86
  stop_server do
87
- settings.redis.close
88
- settings.transport.close
87
+ settings.redis.close if settings.redis
88
+ settings.transport.close if settings.transport
89
89
  super
90
90
  end
91
91
  end
@@ -396,7 +396,7 @@ module Sensu
396
396
  timer.cancel
397
397
  end
398
398
  @timers[:run].clear
399
- @transport.unsubscribe
399
+ @transport.unsubscribe if @transport
400
400
  @state = :paused
401
401
  end
402
402
  end
@@ -427,7 +427,7 @@ module Sensu
427
427
  @state = :stopping
428
428
  complete_checks_in_progress do
429
429
  close_sockets
430
- @transport.close
430
+ @transport.close if @transport
431
431
  super
432
432
  end
433
433
  end
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.23.0.beta".freeze
4
+ VERSION = "0.23.0".freeze
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown].freeze
data/lib/sensu/daemon.rb CHANGED
@@ -2,18 +2,20 @@ require "rubygems"
2
2
 
3
3
  gem "eventmachine", "1.2.0.1"
4
4
 
5
- gem "sensu-json", "1.1.0"
5
+ gem "sensu-json", "1.1.1"
6
6
  gem "sensu-logger", "1.2.0"
7
7
  gem "sensu-settings", "3.4.0"
8
8
  gem "sensu-extension", "1.5.0"
9
9
  gem "sensu-extensions", "1.5.0"
10
10
  gem "sensu-transport", "5.0.0"
11
11
  gem "sensu-spawn", "1.8.0"
12
- gem "sensu-redis", "1.2.0"
12
+ gem "sensu-redis", "1.3.0"
13
13
 
14
14
  require "time"
15
15
  require "uri"
16
16
 
17
+ require "em/pure_ruby" if RUBY_PLATFORM =~ /aix/
18
+
17
19
  require "sensu/json"
18
20
  require "sensu/logger"
19
21
  require "sensu/settings"
@@ -1037,7 +1037,7 @@ module Sensu
1037
1037
  # the process is stopping.
1038
1038
  def unsubscribe
1039
1039
  @logger.warn("unsubscribing from keepalive and result queues")
1040
- @transport.unsubscribe
1040
+ @transport.unsubscribe if @transport
1041
1041
  end
1042
1042
 
1043
1043
  # Complete event handling currently in progress. The
@@ -1125,8 +1125,8 @@ module Sensu
1125
1125
  pause
1126
1126
  @state = :stopping
1127
1127
  complete_event_handling do
1128
- @redis.close
1129
- @transport.close
1128
+ @redis.close if @redis
1129
+ @transport.close if @transport
1130
1130
  super
1131
1131
  end
1132
1132
  end
data/sensu.gemspec CHANGED
@@ -14,14 +14,14 @@ Gem::Specification.new do |s|
14
14
  s.has_rdoc = false
15
15
 
16
16
  s.add_dependency "eventmachine", "1.2.0.1"
17
- s.add_dependency "sensu-json", "1.1.0"
17
+ s.add_dependency "sensu-json", "1.1.1"
18
18
  s.add_dependency "sensu-logger", "1.2.0"
19
19
  s.add_dependency "sensu-settings", "3.4.0"
20
20
  s.add_dependency "sensu-extension", "1.5.0"
21
21
  s.add_dependency "sensu-extensions", "1.5.0"
22
22
  s.add_dependency "sensu-transport", "5.0.0"
23
23
  s.add_dependency "sensu-spawn", "1.8.0"
24
- s.add_dependency "sensu-redis", "1.2.0"
24
+ s.add_dependency "sensu-redis", "1.3.0"
25
25
  s.add_dependency "sinatra", "1.4.6"
26
26
  s.add_dependency "async_sinatra", "1.2.0"
27
27
  s.add_dependency "thin", "1.6.3" unless RUBY_PLATFORM =~ /java/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0.beta
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-03-29 00:00:00.000000000 Z
12
+ date: 2016-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 1.1.0
34
+ version: 1.1.1
35
35
  type: :runtime
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: 1.1.0
41
+ version: 1.1.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: sensu-logger
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 1.2.0
132
+ version: 1.3.0
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - '='
138
138
  - !ruby/object:Gem::Version
139
- version: 1.2.0
139
+ version: 1.3.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: sinatra
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -284,12 +284,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  requirements:
287
- - - ">"
287
+ - - ">="
288
288
  - !ruby/object:Gem::Version
289
- version: 1.3.1
289
+ version: '0'
290
290
  requirements: []
291
291
  rubyforge_project:
292
- rubygems_version: 2.4.5.1
292
+ rubygems_version: 2.6.2
293
293
  signing_key:
294
294
  specification_version: 4
295
295
  summary: A monitoring framework