device_api-android 1.2.14 → 1.2.15

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: 954b87d6422723684ae0f58a992d7890f6db4549
4
- data.tar.gz: 1a7197b642bec9449212cc3d96ac264df79f24d7
3
+ metadata.gz: 212e7370956150bfc7b757c63aef3e3438d5727b
4
+ data.tar.gz: 2fac6552d5f192b7642b3a1d5f33f9c2fca4e712
5
5
  SHA512:
6
- metadata.gz: ec48e6fcb9be5e89424df449222b85a2c63283f3cae9f923291bd593da11fdd5dd2d6cb3dbdd36174ec9d9c69cd724e1bc79d84c86c317c03c1bd3657929a5c1
7
- data.tar.gz: 862ffb62b7ae8a27b20480b57832eea450f432e57a06eb530984133c1083354f95c19e03b5098279cced8af49020fde448933db2c68db9bdb7c7600df6d98de3
6
+ metadata.gz: 628adbda037fd374334e589e73411b2bf1624fdf2762a3d02cac191b66d16b8328b9ef8dabbf5e6494456cf87225b96dc33b98fbcd2e9c25fc590db211c0d564
7
+ data.tar.gz: c4559aa1717b8be083fa8fd8c9734d8c3cf9a51b4e7438030e982af07c09ce61fddbb4e54850278c015d97d42ec418770a39c098f575ab14f575ae9e9c3489b2
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # DeviceAPI-Android
2
+ [![Build Status](https://travis-ci.org/bbc/device_api-android.svg?branch=master)](https://travis-ci.org/bbc/device_api-android)
2
3
 
3
4
  *DeviceAPI-Android* is the android implementation of device_api -- an initiative to allow full automation of device activities. For a full list of release notes, see the [change log](CHANGELOG.md)
4
5
 
@@ -2,6 +2,7 @@
2
2
  require 'device_api/device'
3
3
  require 'device_api/android/adb'
4
4
  require 'device_api/android/aapt'
5
+ require 'android/devices'
5
6
 
6
7
  # DeviceAPI - an interface to allow for automation of devices
7
8
  module DeviceAPI
@@ -75,6 +76,11 @@ module DeviceAPI
75
76
  ADB.devices.any? {|device| device.include? qualifier}
76
77
  end
77
78
 
79
+ def display_name
80
+ device = Android::Devices.search_by_model(model)
81
+ device.model unless device.nil?
82
+ end
83
+
78
84
  # Return the device range
79
85
  # @return (String) device range string
80
86
  def range
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.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Buckhurst
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-11-03 00:00:00.000000000 Z
14
+ date: 2016-11-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: device_api
@@ -41,6 +41,34 @@ dependencies:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '3'
44
+ - !ruby/object:Gem::Dependency
45
+ name: simplecov
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '0.12'
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.12'
58
+ - !ruby/object:Gem::Dependency
59
+ name: android-devices
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
44
72
  description: Android implementation of DeviceAPI
45
73
  email: david.buckhurst@bbc.co.uk
46
74
  executables: []