optimus-runner 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e8641fae4cc0c2581c07c416c954cf56974aac7e
4
- data.tar.gz: e416ca85e249347d8a69b1a2b1a48c960b33d008
2
+ SHA256:
3
+ metadata.gz: d42229de0f9264243c061c8a431b8188dc3d1195f3d7bf7c26b623675d071b9d
4
+ data.tar.gz: 5b7303ccce6c64a779258378701f1c6ed180196174f8c4408b40ee7eb2fb0b3f
5
5
  SHA512:
6
- metadata.gz: 89c3636771a49e7aa4880e3128d44007ac45e3fd06cb05ec4542fa2607037464cd7c10f03304ac13eceff7568dd4060604512adf404acc01922e9e8db26a68f6
7
- data.tar.gz: c0bc93a5e104d08cccd2b876e365873da807ba802df196bf0819d00392465e4ea48e8b3826c8c708dc942a6ff497337c75d335ef796b8aa30d63f46528d49ba4
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 = Socket.ip_address_list[4].ip_address
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
- end
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
@@ -10,6 +10,7 @@ class AkriaClient
10
10
  def save_sessions(session_info)
11
11
  uri = "#{@base_uri}/sessions"
12
12
  puts uri
13
+ puts session_info.to_json
13
14
  HTTParty.post(uri , body: session_info.to_json, headers: get_default_headers)
14
15
  end
15
16
 
@@ -1,3 +1,3 @@
1
1
  module Gandalf
2
- VERSION = "0.12.0"
2
+ VERSION = "0.13.0"
3
3
  end
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.12.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-01-22 00:00:00.000000000 Z
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
- rubyforge_project:
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