sensu 0.9.5.beta.4 → 0.9.5.beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/sensu/api.rb CHANGED
@@ -271,8 +271,10 @@ module Sensu
271
271
  $redis.get('stash:' + path).callback do |stash_json|
272
272
  if stash_json.nil?
273
273
  status 404
274
+ body ''
275
+ else
276
+ body stash_json
274
277
  end
275
- body stash_json
276
278
  end
277
279
  end
278
280
 
@@ -7,15 +7,15 @@ module Redis
7
7
  @reconnecting = false
8
8
  if @redis_password
9
9
  auth(@redis_password).callback do |reply|
10
- unless reply == "OK"
10
+ unless reply == 'OK'
11
11
  raise('could not authenticate')
12
12
  end
13
13
  end
14
14
  end
15
15
  info.callback do |reply|
16
- redis_version = reply.split(/\n/).first.split(/:/).last
17
- unless redis_version.to_i >= 2
18
- raise('redis version must be >= 2.0')
16
+ redis_version = reply.split(/\n/).first.split(/:/).last.chomp
17
+ if redis_version < '1.3.14'
18
+ raise('redis version must be >= 2.0 RC 1')
19
19
  end
20
20
  end
21
21
  end
data/lib/sensu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sensu
2
- VERSION = "0.9.5.beta.4"
2
+ VERSION = "0.9.5.beta.5"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196243
4
+ hash: 62196241
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 5
10
10
  - beta
11
- - 4
12
- version: 0.9.5.beta.4
11
+ - 5
12
+ version: 0.9.5.beta.5
13
13
  platform: ruby
14
14
  authors:
15
15
  - Sean Porter