appium_connect_pi 1.0.17 → 1.1.0

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/Appium.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e53529c6e5ce4f1a6bff0486ffef692c04b05fc
4
- data.tar.gz: 7b374088295466189dd0f0ec0f6344454e3d160c
3
+ metadata.gz: 7f5adbbc8c19d2753c3994d25331afcb0a9dd5fb
4
+ data.tar.gz: 4cc61212d90d394caeb421bdc92267c0cf490ada
5
5
  SHA512:
6
- metadata.gz: 689b61401db5628169ac0a6e3a7d42f9788637aabd3bd465434b4edf74f0ce659844faeafda7a849688c7f60023808042fdcdc8ff0a094dd0bf95d9d288b1f8c
7
- data.tar.gz: e303fe9331a4f06060b1540678b1ab39c8eda7c4e9ab91eaaa57edf4864ddeb854041fe58948ab6f9279b1dcafea8849bb35b1ea5aa4ed5f9eb5161b2bc24f19
6
+ metadata.gz: 89a71956fc3eaffa7e482585795dbdc833109ecb93462637cecb674123ac22bc83624d6920eda36369ce28afdfd2091a3e1c06593b1de8e816e152183029db26
7
+ data.tar.gz: 1f22137eceabcc371a07466e5addae8ce932518cee1308a77361c7d079ba977368b22bd5a37b80e4d430064ca55f2d91cdb01c527424439782d6e4f803015fe8
@@ -7,6 +7,7 @@ def appium_server_start(**options)
7
7
  command << " --udid #{options[:udid]}" if options.key?(:udid)
8
8
  command << " --automation-name #{options[:automationName]}" if options.key?(:automationName)
9
9
  command << " --selendroid-port #{options[:selendroidPort]}" if options.key?(:selendroidPort)
10
+ command << " --webkit-debug-proxy-port #{options[:webkitDebugProxyPort] if options.key?(:webkitDebugProxyPort)}"
10
11
  command << " --log #{Dir.pwd}/output/#{options[:log]}" if options.key?(:log)
11
12
  command << " --tmp /tmp/#{options[:tmp]}" if options.key?(:tmp)
12
13
  command << " --chromedriver-port #{options[:cp]}" if options.key?(:cp)
@@ -16,6 +17,7 @@ def appium_server_start(**options)
16
17
  pid = system(command)
17
18
  elsif Gem::Platform.local.os == 'darwin'
18
19
  `osascript -e 'tell app "Terminal" to do script "#{command}"'`
20
+ `osascript -e 'tell app "Terminal" to do script " ios_webkit_debug_proxy -c #{options[:udid]}:#{options[:webkit_debug_proxy_port]} -d"`
19
21
  else
20
22
  pid = system('start ' + command)
21
23
  end
@@ -40,10 +42,11 @@ def launch_hub_and_nodes(ip, hubIp, nodeDir)
40
42
 
41
43
  ios_devices.size.times do |index|
42
44
  port = 4100 + index
45
+ webkit_port = 27753 + index
43
46
  config_name = "#{ios_devices[index]["udid"]}.json"
44
47
  generate_node_config nodeDir, config_name, ios_devices[index]["udid"], port, ip, hubIp, 'MAC', 'safari'
45
48
  node_config = nodeDir + '/node_configs/' +"#{config_name}"
46
- appium_server_start config: node_config, port: port, udid: ios_devices[index]["udid"], log: "appium-#{ios_devices[index]["udid"]}.log", tmp: ios_devices[index]["udid"]
49
+ appium_server_start config: node_config, port: port, udid: ios_devices[index]["udid"], log: "appium-#{ios_devices[index]["udid"]}.log", tmp: ios_devices[index]["udid"], webkit_debug_proxy_port: webkit_port
47
50
  end
48
51
 
49
52
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_connect_pi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson