superbot-teleport 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/superbot/teleport/version.rb +1 -1
- data/lib/superbot/teleport/web.rb +3 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf205c7864bcd8755a14e0cf82be3b924cf9c41196d7c5edb87548c183f07cfb
|
4
|
+
data.tar.gz: 31fca2aa71c854edd3850838b28e06f69ce670d31c3133526f94fdbf0504488c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1d89c2a9971b187cb88e7fb96bcd8abc9ccf063e9550a623c2ad6212fd20e9fc7f29f3a1672233747fd9f2a52196882f10046a6f16b2d225e89cd32ee681ff6
|
7
|
+
data.tar.gz: 4976f935016abf4fd0174e2edd1ffac821993c0738e19d81881600e68d0e13e098da1a4bc73b02583230bd8dc1933589cb696d8bd2e36a1e121ac9f5509cb881
|
data/Gemfile.lock
CHANGED
@@ -62,7 +62,7 @@ module Superbot
|
|
62
62
|
parsed_body['organization_name'] = settings.teleport_options[:organization]
|
63
63
|
|
64
64
|
if settings.teleport_options.slice(:region, :tag).compact.any?
|
65
|
-
parsed_body['desiredCapabilities'] ||= { 'browserName' => 'chrome'
|
65
|
+
parsed_body['desiredCapabilities'] ||= { 'browserName' => 'chrome' }
|
66
66
|
parsed_body['desiredCapabilities']['superOptions'] ||= {}
|
67
67
|
parsed_body['desiredCapabilities']['superOptions']['region'] ||= settings.teleport_options[:region]
|
68
68
|
parsed_body['desiredCapabilities']['superOptions']['tag'] ||= settings.teleport_options[:tag]
|
@@ -80,7 +80,7 @@ module Superbot
|
|
80
80
|
if settings.teleport_options[:session]
|
81
81
|
status 200
|
82
82
|
headers 'Content-Type' => 'application/json'
|
83
|
-
return {
|
83
|
+
return { sessionId: settings.teleport_options[:session], status: 0, value: nil }.to_json
|
84
84
|
else
|
85
85
|
parsed_body = safe_parse_json request.body, on_error: {}
|
86
86
|
respond acquire_session(parsed_body: parsed_body, headers: headers)
|
@@ -102,7 +102,7 @@ module Superbot
|
|
102
102
|
sinatra.delete "/wd/hub/*" do
|
103
103
|
if settings.teleport_options[:ignore_delete]
|
104
104
|
puts "Skipping DELETE, keep session open"
|
105
|
-
|
105
|
+
return { sessionId: settings.teleport_options[:session], status: 0, value: nil }.to_json
|
106
106
|
else
|
107
107
|
settings.teleport_options[:session] = nil
|
108
108
|
respond proxy(:delete, params, headers: headers)
|
@@ -130,7 +130,6 @@ module Superbot
|
|
130
130
|
organization_name: sinatra.teleport_options[:organization],
|
131
131
|
desiredCapabilities: {
|
132
132
|
browserName: 'chrome',
|
133
|
-
pageLoadStrategy: 'eager',
|
134
133
|
superOptions: {
|
135
134
|
tag: sinatra.teleport_options[:tag],
|
136
135
|
region: sinatra.teleport_options[:region],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot-teleport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbot HQ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|