sappho-heatmiser-proxy 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,11 +30,7 @@ module Sappho
30
30
  begin
31
31
  command = read 5
32
32
  if command == 'check'
33
- reply = @status.get {
34
- @status.timeSinceLastValid > 60 ?
35
- 'error: no response from heatmiser unit in last minute' :
36
- @status.valid ? 'ok' : 'error: last response from heatmiser unit was invalid'
37
- }
33
+ reply = @status.get { @status.valid ? 'ok' : 'error: last response from heatmiser unit was invalid' }
38
34
  @log.info "client #{@ip} checking status - reply: #{reply}"
39
35
  @client.write "#{reply}\r\n"
40
36
  active = false
@@ -7,7 +7,7 @@ module Sappho
7
7
  module Heatmiser
8
8
  module Proxy
9
9
  NAME = 'sappho-heatmiser-proxy'
10
- VERSION = '0.1.3'
10
+ VERSION = '0.1.4'
11
11
  AUTHORS = ['Andrew Heald']
12
12
  EMAILS = ['andrew@heald.co.uk']
13
13
  HOMEPAGE = 'https://github.com/sappho/sappho-heatmiser-proxy/wiki'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sappho-heatmiser-proxy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Heald