appium_connect 1.1.16 → 1.1.18

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Appium.rb +16 -1
  3. data/lib/AppiumConnect.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8216e67c0e33319bb4a6e26662992e69f0fcf42c
4
- data.tar.gz: 8888ac3429ff0e9812b60c8672a8b72015a13976
3
+ metadata.gz: 5cb3c3708fb8bfdd8a9d7e61b49dc28f2ba24da7
4
+ data.tar.gz: f79d83a0d8226fb734a50f07ea4a7fb72cfd803d
5
5
  SHA512:
6
- metadata.gz: 76fb4e79d7e87f7b709bfec3c9bb0a534dd810b746482de51cff2b3175a27a609712bd16f2e82bed5cb0074a8c16d08760c6d8237d531e45a956ce66b03f3f7b
7
- data.tar.gz: cb78c69424ccb109135ca1fee9dd8b29770b8911cf00d39e91311d40eb2297d64076ef6384d0b9e5c55032fe35f650af676d6840a01b0fbfc8fc4bc8c0e6d654
6
+ metadata.gz: a819224b8944bc03bbf71555179ba15f6fb5d805803c813997b3e545a681892430aa72034efd40fa07581e6df5835e982107295ab1f722bfee537dee6ea4f425
7
+ data.tar.gz: da0ec798f8b4c1f27fc7fd253a8620ed4fe5785af097000c7144bcf1be218210fa1e65d74d99cb86c10d35d8e877188f21b8d692a667993dcd420197cc825f94
data/lib/Appium.rb CHANGED
@@ -1,3 +1,11 @@
1
+ require 'Win32API'
2
+
3
+ def shortname long_name
4
+ max_path = 1024
5
+ short_name = " " * max_path
6
+ lfn_size = Win32API.new("kernel32", "GetShortPathName", ['P','P','L'],'L').call(long_name, short_name, max_path)
7
+ return short_name[0..lfn_size-1]
8
+ end
1
9
 
2
10
  def appium_server_start(**options)
3
11
  command = 'appium'
@@ -8,7 +16,14 @@ def appium_server_start(**options)
8
16
  command << " --automation-name #{options[:automationName]}" if options.key?(:automationName)
9
17
  command << " --selendroid-port #{options[:selendroidPort]}" if options.key?(:selendroidPort)
10
18
  command << " --webkit-debug-proxy-port #{options[:webkitPort]}" if options.key?(:webkitPort)
11
- command << " --log #{Dir.pwd}/output/#{options[:log]}" if options.key?(:log)
19
+
20
+ platform = get_platform()
21
+ if platform == :windows
22
+ command << " --log #{shortname(Dir.pwd)}/output/#{options[:log]}" if options.key?(:log)
23
+ else
24
+ command << " --log #{Dir.pwd}/output/#{options[:log]}" if options.key?(:log)
25
+ end
26
+
12
27
  command << " --tmp /tmp/#{options[:tmp]}" if options.key?(:tmp)
13
28
  command << " --chromedriver-port #{options[:cp]}" if options.key?(:cp)
14
29
  command << " --command-timeout 180"
data/lib/AppiumConnect.rb CHANGED
@@ -80,7 +80,7 @@ else
80
80
 
81
81
  end
82
82
 
83
-
83
+ p nodeConfigDir
84
84
  launch_hub_and_nodes config['nodeIp'], config['hubIp'], nodeConfigDir
85
85
  end
86
86
 
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.16
4
+ version: 1.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson