rubotium 0.0.29 → 0.0.30

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: 4e20b3d85c0dfdcca8d872a85c9d8c52083a5193
4
- data.tar.gz: 966af3ee04131eec01bcd7fb7965976f4c562fc2
3
+ metadata.gz: 52908d4749bb9c3dc4d42f52f389d31032b2d429
4
+ data.tar.gz: f551b743fe16dba4e75d1fbebfe00a23a2fef16c
5
5
  SHA512:
6
- metadata.gz: 234e9a59efe88348e5db0054a957c60cf00d1b3b7ffff12c97112ba1e3f87d516830bd255a361bc3ea8415e5f832d3692ab3b8ba70451499f16f6aee1838fb8a
7
- data.tar.gz: 44017f02510dc9787d21f73742a2a183396601777bab420f212cf4a6f7a6abe8b5235354475abef10613087f8c6b4b047bdec27616ee8e00c538b7c07e07349e
6
+ metadata.gz: 969cfdf4646cc8a81aab5687e9a7de0865cf133cb4be7251b7ca9c5d3519186a8fd0c4c9d8936f0fdadbcf6d73c53b30a2e51e7bf928bb6b79f149cb38bf3692
7
+ data.tar.gz: f6ab4623740b742c164ff37601f3d5df6d42c9a7286052508b22fab07c950da7c2bfc66f4ff7746937115f9713633d989c5fb928f0c7f31dfc83597b5368c8d7
@@ -18,7 +18,12 @@ module Rubotium
18
18
  wait_for_adb
19
19
  CMD.run_command('adb start-server')
20
20
  wait_for_adb
21
- CMD.run_command('adb devices', { :timeout => 5 } ).result
21
+ devices = CMD.run_command('adb devices', { :timeout => 5 } )
22
+ if devices.status_code != 1
23
+ devices.result
24
+ else
25
+ raise Rubotium::NoDevicesError
26
+ end
22
27
  end
23
28
 
24
29
  def wait_for_adb
@@ -1,3 +1,3 @@
1
1
  module Rubotium
2
- VERSION = "0.0.29"
2
+ VERSION = "0.0.30"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubotium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slawomir Smiechura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-18 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler