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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 411be37e929bdd5d490c427c3ea69fb76adacefe448f7ae8f52c7a1280db3bb2
4
- data.tar.gz: 2b9d18bac7ac74fbf7eff27f7c0923c9f40460319d5bdc222d1340f3e4b23d19
3
+ metadata.gz: bf205c7864bcd8755a14e0cf82be3b924cf9c41196d7c5edb87548c183f07cfb
4
+ data.tar.gz: 31fca2aa71c854edd3850838b28e06f69ce670d31c3133526f94fdbf0504488c
5
5
  SHA512:
6
- metadata.gz: 780b641130d50467de9b88c59335504aa67b279f92216b5bf53d9a5821fd0602c6e1c534ff7cb57e0d54f55384c406534081985562951938a6b2cd405d6ef48b
7
- data.tar.gz: 7efbb7250d523507bf13d9c2569c7b75ae92d84d25bc8ab4e190021240a7c7d58a9dc7a4b4450350e55bd00d7576df2cc21f88cff9f21b3922b2b0e55f2a6562
6
+ metadata.gz: a1d89c2a9971b187cb88e7fb96bcd8abc9ccf063e9550a623c2ad6212fd20e9fc7f29f3a1672233747fd9f2a52196882f10046a6f16b2d225e89cd32ee681ff6
7
+ data.tar.gz: 4976f935016abf4fd0174e2edd1ffac821993c0738e19d81881600e68d0e13e098da1a4bc73b02583230bd8dc1933589cb696d8bd2e36a1e121ac9f5509cb881
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot-teleport (0.3.9)
4
+ superbot-teleport (0.3.10)
5
5
  excon
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  module Superbot
2
2
  module Teleport
3
- VERSION = "0.3.9"
3
+ VERSION = "0.3.10"
4
4
  end
5
5
  end
@@ -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', 'pageLoadStrategy' => 'eager' }
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 { 'sessionId': settings.teleport_options[:session] }.to_json
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
- halt 204
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.9
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-03-29 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon