appium_connect 1.1.7 → 1.1.8
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 +14 -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: fdd8761e4d6088049907787de008e1b048c7fc1a
|
|
4
|
+
data.tar.gz: c34821403ce108312597374ac41e16e058c02449
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3806fca592b6b5631afd14171e68ace33855294c487367a12c36c73c412fa0fd5008f19301a19d3baae5c3ff62b18752431b8e0cf1d00d23b799c3571654e11b
|
|
7
|
+
data.tar.gz: 174d4d9556f95f8c9caabc37453c1440d6f114dc715c372952d8bab4705a60f82d64e537f2d27110f636f75ef8b7f2311f266ecab62aa1d4d4972cc0f9a85e3a
|
data/lib/AppiumConnect.rb
CHANGED
|
@@ -14,6 +14,20 @@ if input_array.include? '--restart'
|
|
|
14
14
|
else
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
if platform == :windows
|
|
18
|
+
GetShortPathName = Win32API.new('kernel32', 'GetShortPathName', 'ppi', 'i')
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def get_windows_path(path)
|
|
22
|
+
len = GetShortPathName.call(path, nil, 0)
|
|
23
|
+
|
|
24
|
+
raise if len.zero?
|
|
25
|
+
|
|
26
|
+
buffer = "\0" * len
|
|
27
|
+
GetShortPathName.call(path, buffer, len)
|
|
28
|
+
buffer.tr('/', '\\')
|
|
29
|
+
end
|
|
30
|
+
|
|
17
31
|
|
|
18
32
|
|
|
19
33
|
platform = get_platform()
|
|
@@ -78,16 +92,3 @@ else
|
|
|
78
92
|
launch_hub_and_nodes config['nodeIp'], config['hubIp'], nodeConfigDir
|
|
79
93
|
end
|
|
80
94
|
|
|
81
|
-
if platform == :windows
|
|
82
|
-
GetShortPathName = Win32API.new('kernel32', 'GetShortPathName', 'ppi', 'i')
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
def get_windows_path(path)
|
|
86
|
-
len = GetShortPathName.call(path, nil, 0)
|
|
87
|
-
|
|
88
|
-
raise if len.zero?
|
|
89
|
-
|
|
90
|
-
buffer = "\0" * len
|
|
91
|
-
GetShortPathName.call(path, buffer, len)
|
|
92
|
-
buffer.tr('/', '\\')
|
|
93
|
-
end
|