hive-runner-android 1.1.1 → 1.1.2
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/controller/android.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bccff475a48b03346d14fd1d39669540f6f535f3
|
4
|
+
data.tar.gz: 2abf3f54d01047646fdc0864f882d27735ce80fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2931bb0d4b48ae4f31622cd2a7ff8168133b763a95dfae1daa7f87179b992bf43ca8661f4868ee47cd71cd603d4a61d7f068cb7a4be77e2155e49ef304a42bc0
|
7
|
+
data.tar.gz: e56e0a3d44662c7fc39ec68dd886dda127778b43cee7e74eb2ae18c20be49743ec74ccca220750f74db459e808c63b6d1569c6c567113be4cf93a42e5f53dee0
|
@@ -36,7 +36,7 @@ module Hive
|
|
36
36
|
def populate_queues(device)
|
37
37
|
queues = calculate_queue_names(device)
|
38
38
|
|
39
|
-
# Add the queue prefix if it
|
39
|
+
# Add the queue prefix if it has been setup in the config
|
40
40
|
queues = queues.map { |a| "#{@config['queue_prefix']}-#{a}"} if @config['queue_prefix']
|
41
41
|
|
42
42
|
devicedb_queues = device['device_queues'].map { |d| d['name'] }
|
@@ -60,7 +60,8 @@ module Hive
|
|
60
60
|
|
61
61
|
def find_or_create_queue(name)
|
62
62
|
queue = Hive.devicedb('Queue').find_by_name(name)
|
63
|
-
|
63
|
+
|
64
|
+
return queue.first['id'] unless queue.empty? || queue.is_a?(Hash)
|
64
65
|
|
65
66
|
queue = create_queue(name, "#{name} queue created by Hive Runner")
|
66
67
|
queue['id'] unless queue.empty?
|