device_api-android 1.2.17 → 1.2.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/device_api/android/adb.rb +6 -0
  3. metadata +15 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c33f2b423b46f2379ff4d39c9361433f594a42d7
4
- data.tar.gz: 8a339deec28540ad5e7828090355391e1fe55b65
3
+ metadata.gz: 69b0b413004658499766df90165c7734626c51c0
4
+ data.tar.gz: b6d0ced80a09693341d800ce1fcb552b73bfc9a7
5
5
  SHA512:
6
- metadata.gz: 8c98f250479b2d6655abe94adf2f26a9007a818d6cc3caf841134fdb56b196e1d4cd6e8166c4f2e0401fa74d79fcfbd14d6baafc74d65fba1834fec5ed78d51c
7
- data.tar.gz: 0fac819f51ff456635282145e24a92ef271793a2a4f55f6897e1749b392f6aed3ceaac01666f71a049b541359fc0dda1ea6404850e55534baea30fb2f8d926ca
6
+ metadata.gz: d40064f465c5fd05836a823a30523558d83dc8051b09a7bfbb6ac2980a7e4be2897b2d627637c256b335a099bf22d1944ece0b76ca86c2e49e2e4050d49741e1
7
+ data.tar.gz: 9c77d39e180489eb2f9652c92de3575c35b21560f9cb753ea8047e7f26f127680fc84392a470b953949b32fa179549a8507cd08e1ab8e5b7f8e7ca65befc4bd5
@@ -308,6 +308,12 @@ module DeviceAPI
308
308
  raise DeviceAPI::UnauthorizedDevice, result.stderr
309
309
  when /^error: device not found/
310
310
  raise DeviceAPI::DeviceNotFound, result.stderr
311
+ # ADB.get_network_info on android > 7 behave differently
312
+ # On linux exit code is 127
313
+ # On MAC exit code is 0
314
+ # Caught here to give get_network_info consistent response
315
+ when /^\/system\/bin\/sh: netcfg: not found/
316
+ return result
311
317
  else
312
318
  raise ADBCommandError.new(result.stderr)
313
319
  end if result.exit != 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: device_api-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.17
4
+ version: 1.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Buckhurst
@@ -11,62 +11,62 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-01-17 00:00:00.000000000 Z
14
+ date: 2017-04-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: device_api
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ~>
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.2
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.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ~>
34
+ - - "~>"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '3'
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '3'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: simplecov
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ~>
48
+ - - "~>"
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0.12'
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ~>
55
+ - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0.12'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: android-devices
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  description: Android implementation of DeviceAPI
@@ -76,17 +76,17 @@ extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
78
  - README.md
79
+ - lib/device_api/android.rb
79
80
  - lib/device_api/android/aapt.rb
80
81
  - lib/device_api/android/adb.rb
82
+ - lib/device_api/android/device.rb
81
83
  - lib/device_api/android/device/kindle.rb
82
84
  - lib/device_api/android/device/samsung.rb
83
- - lib/device_api/android/device.rb
84
85
  - lib/device_api/android/plugins/audio.rb
85
86
  - lib/device_api/android/plugins/battery.rb
86
87
  - lib/device_api/android/plugins/disk.rb
87
88
  - lib/device_api/android/plugins/memory.rb
88
89
  - lib/device_api/android/signing.rb
89
- - lib/device_api/android.rb
90
90
  homepage: https://github.com/bbc/device_api-android
91
91
  licenses:
92
92
  - MIT
@@ -97,17 +97,17 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.0.14
110
+ rubygems_version: 2.6.8
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Android Device Management API