hive-runner-android 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b1162cdff03feb8604b9df81477d6d35d979c45
4
- data.tar.gz: 43b40b44f31fa1317acadc9060cd2014490db0f0
3
+ metadata.gz: e3f9abd6596eb7a64374be57d2f8b2d3bb853dbf
4
+ data.tar.gz: 8dd1e096d59981911a9e5a78ef82a9d4dea73119
5
5
  SHA512:
6
- metadata.gz: 2743b705ef9d62aaf8a43e5e09d1077020491ee570337a6399c8cd16b689917657e706f952141f3c7e57f4f02c82f9ef23fe262a8a311230be21010fa216f703
7
- data.tar.gz: ec813178af07cfd46c9de3ea8432b2513fa3ed11b46d7bed4a91cf91157b584ea283774a9d40dba6df9f34e074a77d185e668015a0569cbe92950a3e8d8d2491
6
+ metadata.gz: 4bd38d437bd66bdd0cdee951e193a5ff0aee6c3f14adc8e2580c9ce6d73272724685edb0443d20c31d370915788917a28a58ef18ede74972096993dbf68560af
7
+ data.tar.gz: 392357e6c5e51badb0eec571bd5d3372bc2f375d75772b6eb913552e9a058f0972e7d750a3f83590cc3df2f6f2e00e178b361ad590b15853b0e3fb44e85c5a1e
@@ -81,7 +81,7 @@ module Hive
81
81
  Hive.hive_mind.connect(dev['id'])
82
82
  Hive.logger.info("Device registered: #{dev}")
83
83
  rescue DeviceAPI::DeviceNotFound => e
84
- Hive.logger.warn("Device disconnected before registration (serial: #{device.serial})")
84
+ Hive.logger.warn("Device disconnected before registration #{e.message}")
85
85
  rescue => e
86
86
  Hive.logger.warn("Error with connected device: #{e.message}")
87
87
  end
@@ -102,19 +102,25 @@ module Hive
102
102
  Hive.logger.info('No Hive Mind connection')
103
103
  Hive.logger.debug("Error: #{Hive.hive_mind.device_details[:error]}")
104
104
  # Hive Mind isn't available, use DeviceAPI instead
105
- device_info = connected_devices.map do |device|
106
- {
107
- 'id' => device.serial,
108
- 'serial' => device.serial,
109
- 'status' => 'idle',
110
- 'model' => device.model,
111
- 'brand' => device.manufacturer,
112
- 'os_version' => device.version
113
- }
114
- end
105
+ begin
106
+ device_info = connected_devices.map do |device|
107
+ {
108
+ 'id' => device.serial,
109
+ 'serial' => device.serial,
110
+ 'status' => 'idle',
111
+ 'model' => device.model,
112
+ 'brand' => device.manufacturer,
113
+ 'os_version' => device.version
114
+ }
115
+ end
115
116
 
116
- attached_devices = device_info.collect do |physical_device|
117
- self.create_device(physical_device)
117
+ attached_devices = device_info.collect do |physical_device|
118
+ self.create_device(physical_device)
119
+ end
120
+ rescue DeviceAPI::DeviceNotFound => e
121
+ Hive.logger.warn("Device disconnected while fetching device_info #{e.message}")
122
+ rescue => e
123
+ Hive.logger.warn(e)
118
124
  end
119
125
 
120
126
  Hive.logger.info(attached_devices)
@@ -21,13 +21,13 @@ module Hive
21
21
  Hive.logger.info("Rebooting the device")
22
22
  begin
23
23
  self.device_api.reboot
24
- sleep 30
25
24
  rescue
26
25
  Hive.logger.error("Device not found")
27
26
  end
27
+ diagnose
28
28
  end
29
29
 
30
30
  end
31
31
  end
32
32
  end
33
- end
33
+ end
metadata CHANGED
@@ -1,89 +1,89 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hive-runner-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: device_api-android
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.2.9
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.0'
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.2.9
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: hive-runner
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: 2.1.1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.1.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: terminal-table
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '1.4'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.4'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: '3.5'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
74
  version: '3.5'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: webmock
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '1.22'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ~>
87
87
  - !ruby/object:Gem::Version
88
88
  version: '1.22'
89
89
  description: The Android controller module for Hive Runner
@@ -112,17 +112,17 @@ require_paths:
112
112
  - lib
113
113
  required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - ">="
120
+ - - '>='
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.5.1
125
+ rubygems_version: 2.0.14
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Hive Runner Android