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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03f36f50dd829e9e0a7538b6f7f20e3fa83b8040
4
- data.tar.gz: 356d2a69e76b71567f46d378c3430212cbb598a0
3
+ metadata.gz: bccff475a48b03346d14fd1d39669540f6f535f3
4
+ data.tar.gz: 2abf3f54d01047646fdc0864f882d27735ce80fc
5
5
  SHA512:
6
- metadata.gz: df4d3c923c385ec8787f58c3db35ad4694247549a1cf4da39dc82559bdf89513ff29ca14dc9b209c086f5e8fa6a35acebc28e20fb1d5b65d2d1bd8f790b46305
7
- data.tar.gz: 3c1df3b1a8d138c4cfc53d46e1fcd3922e010ee643d9887352c91fb5fba47ffb55368de5696e0456412b327cf7abccf6b59f5553154ff62988bd0bf7394fb045
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 hase been setup in the config
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
- return queue.first['id'] unless queue.empty? || queue.key?('error')
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hive-runner-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Wilson