device_api-android 1.1.2 → 1.1.3

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: d056fdaa82d61147897272f7a3df98afd5f8e4af
4
- data.tar.gz: ea866645ded8c453e60ac3baec01ee929d983c2e
3
+ metadata.gz: bc10f13dd26a8bb1dfb280a89a47fc53f0abaae8
4
+ data.tar.gz: c055ac388b285256b3af8b64e43794943de19172
5
5
  SHA512:
6
- metadata.gz: 856ed8986cc089f9acc2098036a7e1deb95c93f86926f93bdbc2edd22f7cd5f5e4d7e255728049ee2d6321cde1910f54f810f1e3b5cdadba494385b86f9e40aa
7
- data.tar.gz: 8b4a040ad4a5a01d652a7b1967ed3e1921726c5dcc1a6f916d76211616c465a9961607148e782f886444c245ac336127bf503c05b76684aa1d7ef1c2f1213caa
6
+ metadata.gz: bbad38ebff1f0ce2b03194034151f33e23be15aff5fe3a3caf892994be7423900bf91cbb3ead9e50f78c88eba0e56733cc00a32812dde55f7602900ce6981363
7
+ data.tar.gz: f0d33b10a999afd50bc6d9fd50377e5c8d0c30acf00d5ea4a88c7b8252205eccfb8834c2073ee4aa4487b4331f560cc5f94c6f97c4726fc94d331c9d17d2274a
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'device_api-android'
3
- s.version = '1.1.2'
3
+ s.version = '1.1.3'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
  s.summary = 'Android Device Management API'
6
6
  s.description = 'Android implementation of DeviceAPI'
@@ -254,7 +254,7 @@ module DeviceAPI
254
254
  # @option coords [String] :y_from (0) Coordinate to start from on the Y axis
255
255
  # @option coords [String] :y_to (0) Coordinate to end on on the Y axis
256
256
  def self.swipe(serial, coords = {x_from: 0, x_to: 0, y_from: 0, y_to: 0 })
257
- execute("adb -s #{serial} shell input swipe #{coords[:x_from]} #{coords[:x_to]} #{coords[:y_from]} #{coords[:y_to]}")
257
+ result = execute("adb -s #{serial} shell input swipe #{coords[:x_from]} #{coords[:x_to]} #{coords[:y_from]} #{coords[:y_to]}")
258
258
  raise ADBCommandError.new(result.stderr) if result.exit != 0
259
259
  end
260
260
 
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.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Buckhurst
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-10-06 00:00:00.000000000 Z
13
+ date: 2015-10-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: device_api