hive-runner 2.1.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/lib/hive/worker.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c48521e24480f30792c345141a55fce973d955a2
|
|
4
|
+
data.tar.gz: 89bc15d33f043cb0dc8e6dba0ada8678bf076e41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 374430c99cb9e8d27f59033cd9d3e7360876aeb706ca2d72ecab1c4216715930518fa33a901444f8d8f2627c25a3aa76b1137dd3f639cad7adff3c92bccb0382
|
|
7
|
+
data.tar.gz: f9c82dcf1364a9e27c5d945e809fa0b21ee10c34621b62f66fec2428beff340e1e82d0d9d81889e339d38e6d61b98a84eba92521778de88b927af7f71ff0a7c0
|
data/lib/hive/worker.rb
CHANGED
|
@@ -230,14 +230,14 @@ module Hive
|
|
|
230
230
|
def diagnostics
|
|
231
231
|
@diagnostic_runner.run if !@diagnostic_runner.nil?
|
|
232
232
|
status = device_status
|
|
233
|
-
status = set_device_status('
|
|
234
|
-
raise DeviceNotReady.new("Current device status: '#{status}'") if status != '
|
|
233
|
+
status = set_device_status('happy') if status == 'busy'
|
|
234
|
+
raise DeviceNotReady.new("Current device status: '#{status}'") if status != 'happy'
|
|
235
235
|
end
|
|
236
236
|
|
|
237
237
|
# Current state of the device
|
|
238
238
|
# This method should be replaced in child classes, as appropriate
|
|
239
239
|
def device_status
|
|
240
|
-
@device_status ||= '
|
|
240
|
+
@device_status ||= 'happy'
|
|
241
241
|
end
|
|
242
242
|
|
|
243
243
|
# Set the status of a device
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hive-runner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joe Haig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-04-
|
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chamber
|