appium_connect 1.1.11 → 1.1.12
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 +4 -4
- data/lib/AppiumConnect.rb +1 -13
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88b95afe02b8a81bb5a24c4c42ffe003e73fb871
|
|
4
|
+
data.tar.gz: 120b9ee23789902b59bcb01cfc1a16c5cc666b95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74dafd8b35ff5dcb1d73ce944ad599f52b31a50ff407a0bd7cb2b24685d94194bebaa27cc3fbe49361740cfeb13ff40e78110cd9bfcb086dc590ad3d4b331f87
|
|
7
|
+
data.tar.gz: 1d905ab6b85b4fac85f10c193c48556c615641baa38de2ce281e6795a40ff7dc111d07bb1c06705cb9d7c36f8f537fecccae39d6298ce96060e5fe223fc82e35
|
data/lib/AppiumConnect.rb
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#Copyright © 2016 Orasi Software, Inc., All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'parallel'
|
|
4
|
-
require 'win32api'
|
|
5
4
|
require 'json'
|
|
6
5
|
require 'fileutils'
|
|
7
6
|
require_relative 'FileSystemHelpers'
|
|
@@ -14,24 +13,13 @@ if input_array.include? '--restart'
|
|
|
14
13
|
restart_devices
|
|
15
14
|
else
|
|
16
15
|
|
|
17
|
-
def get_short_win32_filename(long_name)
|
|
18
|
-
require 'win32api'
|
|
19
|
-
win_func = Win32API.new("kernel32","GetShortPathName","PPL"," L")
|
|
20
|
-
buf = 0.chr * 256
|
|
21
|
-
buf[0..long_name.length-1] = long_name
|
|
22
|
-
win_func.call(long_name, buf, buf.length)
|
|
23
|
-
return buf.split(0.chr).first
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
16
|
platform = get_platform()
|
|
29
17
|
if platform == :linux
|
|
30
18
|
nodeConfigDir = File.expand_path('~/AppiumConnect/')
|
|
31
19
|
elsif platform == :mac
|
|
32
20
|
nodeConfigDir = File.expand_path('~/AppiumConnect/')
|
|
33
21
|
elsif platform == :windows
|
|
34
|
-
nodeConfigDir =
|
|
22
|
+
nodeConfigDir = "\"" + Dir.home() + '/AppiumConnect' + "\""
|
|
35
23
|
end
|
|
36
24
|
|
|
37
25
|
create_dir nodeConfigDir
|