optimus-runner 0.12.0 → 0.13.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d42229de0f9264243c061c8a431b8188dc3d1195f3d7bf7c26b623675d071b9d
|
|
4
|
+
data.tar.gz: 5b7303ccce6c64a779258378701f1c6ed180196174f8c4408b40ee7eb2fb0b3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9957498b6d7128008207cb7ab2fd445a507bb7b7b3ea2f2fca77272f68e902b8051b4599ea34679075686e16660e7eeda4b35ecad031c99bb907b7ea72ea2ab1
|
|
7
|
+
data.tar.gz: c972e985e6dfdd29379316a8578d5369381bc1268017aa659a52d9e20894bdbab148a4f05020e688fd69e4246ed4cc9dd9b6cd487e0d4f0354ef80bb783dda24
|
|
@@ -42,13 +42,15 @@ class AppiumLocalService
|
|
|
42
42
|
end
|
|
43
43
|
rescue Timeout::Error
|
|
44
44
|
p @pid
|
|
45
|
-
@ipaddress =
|
|
45
|
+
@ipaddress = get_ip_address
|
|
46
46
|
session_id = get_session_id
|
|
47
47
|
add_session_details session_id
|
|
48
48
|
return session_id
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
|
|
53
|
+
|
|
52
54
|
private
|
|
53
55
|
|
|
54
56
|
def get_cmd(device_detail)
|
|
@@ -68,6 +70,11 @@ class AppiumLocalService
|
|
|
68
70
|
"http://#{@ipaddress}:#{@port}/wd/hub"
|
|
69
71
|
end
|
|
70
72
|
|
|
73
|
+
def get_ip_address
|
|
74
|
+
ip = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}
|
|
75
|
+
ip.ip_address
|
|
76
|
+
end
|
|
77
|
+
|
|
71
78
|
def add_session_details(session_id)
|
|
72
79
|
session_details = {}
|
|
73
80
|
session_details["session_id"] = session_id
|
|
@@ -75,6 +82,7 @@ class AppiumLocalService
|
|
|
75
82
|
@@sessions_with_pid.push session_details
|
|
76
83
|
end
|
|
77
84
|
|
|
85
|
+
end
|
|
78
86
|
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
apls = AppiumLocalService.new
|
|
88
|
+
apls.get_ip_address
|
|
@@ -27,6 +27,7 @@ class DeviceDetails
|
|
|
27
27
|
def find_android_devices(device_names)
|
|
28
28
|
device_details = []
|
|
29
29
|
device_names.each do |a|
|
|
30
|
+
puts "adb -s #{a['udid']} shell getprop ro.product.model"
|
|
30
31
|
device_model = `adb -s #{a['udid']} shell getprop ro.product.model`
|
|
31
32
|
device_os_version = `adb -s #{a['udid']} shell getprop ro.build.version.release`
|
|
32
33
|
a['deviceName'] = device_model.to_s.rstrip
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: optimus-runner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- KrishnanandB
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -195,6 +195,7 @@ files:
|
|
|
195
195
|
- lib/optimus-runner/utils/optimuscloudenv.rb
|
|
196
196
|
- lib/optimus-runner/version.rb
|
|
197
197
|
- lib/optimus_runner_control.rb
|
|
198
|
+
- optimus-runner-0.12.0.gem
|
|
198
199
|
- optimus-runner.gemspec
|
|
199
200
|
- pids/optimus-runner.log
|
|
200
201
|
- pids/optimus_runner_outputfile.txt
|
|
@@ -216,8 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
216
217
|
- !ruby/object:Gem::Version
|
|
217
218
|
version: '0'
|
|
218
219
|
requirements: []
|
|
219
|
-
|
|
220
|
-
rubygems_version: 2.5.2.3
|
|
220
|
+
rubygems_version: 3.0.1
|
|
221
221
|
signing_key:
|
|
222
222
|
specification_version: 4
|
|
223
223
|
summary: A worker service project
|