superbot-teleport 0.3.4 → 0.3.5
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/superbot/teleport/cli/root_command.rb +1 -1
- data/lib/superbot/teleport/version.rb +1 -1
- data/lib/superbot/teleport/web.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f32d99a436bd9592983b184dd0b978c9f7cafd2c60edc28195636560d2bb8b78
|
|
4
|
+
data.tar.gz: bd89ec539f65b070210e4748b820e186e9fa1f60f948a64e745403e1f4cccd98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c3a09f692fcc1ceda5643cf96cdffe3c1c00e79663302fba99bd1bac90cd56d502799500561b40590b487936f90ae5751469c25510a079958286f925bb4b044
|
|
7
|
+
data.tar.gz: 11da1d0f757e3266ec99856c6cff93d11415dbfc045a58e83bf4786040c651f573563ff6fc49861a0803aba48b8ea0f3c7b70556f3504e1721bce9270eca0063
|
data/Gemfile.lock
CHANGED
|
@@ -21,7 +21,7 @@ module Superbot
|
|
|
21
21
|
option ['--keep-session'], :flag, "Keep session after teleport is closed"
|
|
22
22
|
option ['--session'], 'SESSION', "Session to use in teleport"
|
|
23
23
|
option ['--base-url'], 'BASE_URL', "Base project URL"
|
|
24
|
-
option ['--source'], 'SOURCE', environment_variable: "SUPERBOT_SOURCE"
|
|
24
|
+
option ['--source'], 'SOURCE', "Source deployment for webdriver session", environment_variable: "SUPERBOT_SOURCE"
|
|
25
25
|
|
|
26
26
|
def execute
|
|
27
27
|
validate_teleport_options(browser, organization, session)
|
|
@@ -14,8 +14,8 @@ module Superbot
|
|
|
14
14
|
persistent: true,
|
|
15
15
|
headers: { 'Authorization' => Superbot::Cloud.authorization_header },
|
|
16
16
|
connect_timeout: 3,
|
|
17
|
-
read_timeout:
|
|
18
|
-
write_timeout:
|
|
17
|
+
read_timeout: 500,
|
|
18
|
+
write_timeout: 500
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
sinatra.helpers do
|
|
@@ -73,9 +73,9 @@ module Superbot
|
|
|
73
73
|
params,
|
|
74
74
|
headers: headers.merge('Idempotency-Key' => SecureRandom.hex),
|
|
75
75
|
body: parsed_body.to_json,
|
|
76
|
-
write_timeout:
|
|
77
|
-
read_timeout:
|
|
78
|
-
retry_interval:
|
|
76
|
+
write_timeout: 500,
|
|
77
|
+
read_timeout: 500,
|
|
78
|
+
retry_interval: 60
|
|
79
79
|
)
|
|
80
80
|
settings.teleport_options[:session] = JSON.parse(session_response.body)['sessionId']
|
|
81
81
|
|
|
@@ -87,7 +87,7 @@ module Superbot
|
|
|
87
87
|
if settings.teleport_options[:base_url] && parsed_body['url']
|
|
88
88
|
parsed_body['url'] = URI.join(
|
|
89
89
|
settings.teleport_options[:base_url],
|
|
90
|
-
URI(parsed_body['url']).path
|
|
90
|
+
URI(parsed_body['url']).path.to_s
|
|
91
91
|
).to_s
|
|
92
92
|
end
|
|
93
93
|
|