metabridge 0.1.1 → 0.1.2

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: 16f125993ff6f1571cf912170d47639d46de7602
4
- data.tar.gz: 4fd502d8013360501b6167bddc6546ca6268a25a
3
+ metadata.gz: d6404e6a945349a0c6648061fbda8ddec4bc9b15
4
+ data.tar.gz: 5564f5676a9516a3e8cd50d73c2791dd899c4b59
5
5
  SHA512:
6
- metadata.gz: 3809b0cbdb486af81231d828f3debf90f8ae85832384264ee08d996f0c5760bab4927925ad354f5606eeab245babb9d23ca22b1343714749495c2004d9933df4
7
- data.tar.gz: 0cd13bc8a7d2bb7e076c5e7340c63cadec20e395ce8ffc33e1968ca9a7dab2da2e1916330ce2aac3ff27aa2cfdb65adbb9d266c9464d2a04cce2f58920f2a2f7
6
+ metadata.gz: 368c3a366a7910256d73fc0c5c422ba2f8d04f7c375933206ecacbd3999c2e759835348f57c71637615b57cd06642f18a9f2d262596da722ae67386e4c7ee3d9
7
+ data.tar.gz: ecf8f8cf73afe7f0ae2b4deba13411cd4da4372cb127baba75563a04a096e7c4b41468e6664e3a6b1479976639d8be8bc8ef2edc0a40aab4dbb8e61d77c851e2
@@ -24,11 +24,11 @@ class MetaBridge::Bridge
24
24
  end
25
25
 
26
26
  def connect_to_device
27
- run(adb 'connect', device_id)
27
+ run("adb connect #{device_id}")
28
28
  end
29
29
 
30
30
  def adb(subcommand, params = [])
31
- connect_to_device if device_id && subcommand != 'connect'
31
+ connect_to_device if device_id
32
32
 
33
33
  cmd = []
34
34
  params = params.respond_to?(:join) ? params.join(' ') : params.to_s
@@ -36,7 +36,7 @@ class MetaBridge::Bridge
36
36
  cmd << 'adb'
37
37
  cmd << "-s #{device_id}" if device_id
38
38
  cmd << subcommand
39
- cmd << params.is_a?(String) ? params : params.join(' ')
39
+ cmd << params
40
40
 
41
41
  cmd.join(' ')
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module MetaBridge
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metabridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Maxim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor