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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AppiumConnect.rb +1 -13
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 297680a6f17130366110d2c57fd35547df73e880
4
- data.tar.gz: aee33922831f6e66ed5bf83e96d613f8dc83c64a
3
+ metadata.gz: 88b95afe02b8a81bb5a24c4c42ffe003e73fb871
4
+ data.tar.gz: 120b9ee23789902b59bcb01cfc1a16c5cc666b95
5
5
  SHA512:
6
- metadata.gz: 7bbc54d68aa23da78b29e2fc8451f933fc8f65a9ce6e117af178e2213ddc36baa45629e23580d2a596aeea0c7ec05ff90c00c76d9b3f1e3e11ea0edc5f688b3c
7
- data.tar.gz: dcaed1ef05f40340c1f9fdebf20f0dec4c418f82ed240d883d93eb967b63b4a219a93dffeb586a7e9475b25ccd79a625f20a4c561ff1a8b931675b19349edfc9
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 = get_short_win32_filename(Dir.home() + '/AppiumConnect')
22
+ nodeConfigDir = "\"" + Dir.home() + '/AppiumConnect' + "\""
35
23
  end
36
24
 
37
25
  create_dir nodeConfigDir
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson