sensu 0.15.0.beta-java → 0.15.0-java

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: 2fae30e855dafecfcbf84ae9e6773142ba2d18a3
4
- data.tar.gz: b6672ece4ed4a3de29f903dca9cc2cb29c13b530
3
+ metadata.gz: 246577a7d8a39cae4f8a51bd52676ff19fb1de84
4
+ data.tar.gz: 029913f9d921674e92ac2ec0311077295a77d0f1
5
5
  SHA512:
6
- metadata.gz: dd6166228bcc8ba5ed8d24005987649075bf0322df2b107f51d2b843587a57654c9e7d08a02c63f01c2815df2da1200b51550e9e3f7b4d0cc991511aa07c8eeb
7
- data.tar.gz: d8690412f0786a7d6a43ca0f12886b9774a32ec07160052312503fe467a76dc169ade3c7b9aaa0f6285f40bc1ffd43510184b6dcaef68e46285cdd9b3ad4df01
6
+ metadata.gz: a3b3e8c9d39b500e92848de67dc3a83c0d00c673e7093891141e3a073588c8089a9014beb2464b19eaf63757ce3e6f045f75b980d22b42ae06ff6b893629bbfc
7
+ data.tar.gz: 50f601c169b7308b800adf0b91dbaf3e5947fbe4805605e464912187fbafd64217acd2772887c261a80c5cb10890b9dfd0ff448db2ebd85f57b9d5c065dbc2d8
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.15.0 - TBD
1
+ ## 0.15.0 - 2014-10-31
2
2
 
3
3
  ### Features
4
4
 
data/lib/sensu/client.rb CHANGED
@@ -257,8 +257,14 @@ module Sensu
257
257
  end
258
258
 
259
259
  def pause
260
- super do
260
+ unless @state == :pausing || @state == :paused
261
+ @state = :pausing
262
+ @timers[:run].each do |timer|
263
+ timer.cancel
264
+ end
265
+ @timers[:run].clear
261
266
  @transport.unsubscribe
267
+ @state = :paused
262
268
  end
263
269
  end
264
270
 
@@ -1,6 +1,6 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
- VERSION = '0.15.0.beta'
3
+ VERSION = '0.15.0'
4
4
 
5
5
  SEVERITIES = %w[ok warning critical unknown]
6
6
 
data/lib/sensu/daemon.rb CHANGED
@@ -90,18 +90,8 @@ module Sensu
90
90
  @state = :running
91
91
  end
92
92
 
93
- def pause(&block)
94
- unless @state == :pausing || @state == :paused
95
- @state = :pausing
96
- @timers[:run].each do |timer|
97
- timer.cancel
98
- end
99
- @timers[:run].clear
100
- if block
101
- block.call
102
- end
103
- @state = :paused
104
- end
93
+ def pause
94
+ @state = :paused
105
95
  end
106
96
 
107
97
  def resume
data/lib/sensu/server.rb CHANGED
@@ -728,9 +728,15 @@ module Sensu
728
728
  end
729
729
 
730
730
  def pause
731
- super do
731
+ unless @state == :pausing || @state == :paused
732
+ @state = :pausing
733
+ @timers[:run].each do |timer|
734
+ timer.cancel
735
+ end
736
+ @timers[:run].clear
732
737
  unsubscribe
733
738
  resign_as_master
739
+ @state = :paused
734
740
  end
735
741
  end
736
742
 
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.15.0.beta
4
+ version: 0.15.0
5
5
  platform: java
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-27 00:00:00.000000000 Z
12
+ date: 2014-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -265,9 +265,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  requirements:
268
- - - '>'
268
+ - - '>='
269
269
  - !ruby/object:Gem::Version
270
- version: 1.3.1
270
+ version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
273
  rubygems_version: 2.1.9