superbot-teleport 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/lib/superbot/teleport/version.rb +1 -1
- data/lib/superbot/teleport/web.rb +9 -6
- data/superbot-teleport.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64e18889f7b337fa8b3ccd27e27dbe2e650ff130c4911d896d2c25e717d62b35
|
4
|
+
data.tar.gz: 97ecf6e680521e3e73b5aaf07c69ca246ed641724f9a706391fdc42a37ca0336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '085af1d671d0b707ce1b252fc1c893a579bb63d63a8ef17d1096fee160f9bf1867a080e162a77cc1765e9963f27606a7c36f0e8e84d4284282abacb250144ff7'
|
7
|
+
data.tar.gz: 8dbccbac72c107bd2815fd878ea77912b41385fb1652482f2215e1aaad09a7862ba0467d8fecc560c4e6efa3d903465d3b150cb2ab7ac483500bde1351c0ef6c
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot-teleport (0.3.
|
4
|
+
superbot-teleport (0.3.4)
|
5
5
|
excon
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
10
|
+
addressable (2.6.0)
|
11
11
|
public_suffix (>= 2.0.2, < 4.0)
|
12
12
|
archive-zip (0.11.0)
|
13
13
|
io-like (~> 0.3.0)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
method_source (~> 0.9.0)
|
40
40
|
public_suffix (3.0.3)
|
41
41
|
rack (2.0.6)
|
42
|
-
rack-protection (2.0.
|
42
|
+
rack-protection (2.0.5)
|
43
43
|
rack
|
44
44
|
rake (11.3.0)
|
45
45
|
rspec (3.8.0)
|
@@ -59,31 +59,31 @@ GEM
|
|
59
59
|
selenium-webdriver (3.141.0)
|
60
60
|
childprocess (~> 0.5)
|
61
61
|
rubyzip (~> 1.2, >= 1.2.2)
|
62
|
-
sinatra (2.0.
|
62
|
+
sinatra (2.0.5)
|
63
63
|
mustermann (~> 1.0)
|
64
64
|
rack (~> 2.0)
|
65
|
-
rack-protection (= 2.0.
|
65
|
+
rack-protection (= 2.0.5)
|
66
66
|
tilt (~> 2.0)
|
67
67
|
sinatra-silent (0.0.1)
|
68
|
-
superbot (0.
|
68
|
+
superbot (0.4.5)
|
69
69
|
clamp (= 1.2.1)
|
70
70
|
kommando (= 0.1.2)
|
71
71
|
launchy (= 2.4.3)
|
72
|
-
sinatra (= 2.0.
|
72
|
+
sinatra (= 2.0.5)
|
73
73
|
sinatra-silent (= 0.0.1)
|
74
|
-
superbot-cloud (= 0.
|
74
|
+
superbot-cloud (= 0.3.4)
|
75
75
|
superbot-record (= 0.1.0)
|
76
|
-
superbot-runner (= 0.1.
|
76
|
+
superbot-runner (= 0.1.3)
|
77
77
|
superbot-selenium-webdriver (= 1.0.5)
|
78
|
-
superbot-teleport (= 0.
|
78
|
+
superbot-teleport (= 0.3.3)
|
79
79
|
zaru (= 0.2.0)
|
80
|
-
superbot-cloud (0.
|
80
|
+
superbot-cloud (0.3.4)
|
81
81
|
marcel (= 0.3.3)
|
82
82
|
multipart-post (= 2.0.0)
|
83
83
|
superbot-record (0.1.0)
|
84
84
|
superbot-record-chrome
|
85
85
|
superbot-record-chrome (0.1.0)
|
86
|
-
superbot-runner (0.1.
|
86
|
+
superbot-runner (0.1.3)
|
87
87
|
superbot-runner-side
|
88
88
|
superbot-runner-side (0.1.0)
|
89
89
|
superbot-selenium-webdriver (1.0.5)
|
@@ -100,7 +100,7 @@ DEPENDENCIES
|
|
100
100
|
pry
|
101
101
|
rake (~> 11.2)
|
102
102
|
rspec (~> 3.8)
|
103
|
-
superbot (~> 0.
|
103
|
+
superbot (~> 0.4.4)
|
104
104
|
superbot-selenium-webdriver (~> 1.0.1)
|
105
105
|
superbot-teleport!
|
106
106
|
|
@@ -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: 10,
|
18
|
+
write_timeout: 10
|
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: 10,
|
77
|
+
read_timeout: 10,
|
78
|
+
retry_interval: 10
|
79
79
|
)
|
80
80
|
settings.teleport_options[:session] = JSON.parse(session_response.body)['sessionId']
|
81
81
|
|
@@ -85,7 +85,10 @@ module Superbot
|
|
85
85
|
parsed_body = safe_parse_json request.body, on_error: {}
|
86
86
|
|
87
87
|
if settings.teleport_options[:base_url] && parsed_body['url']
|
88
|
-
parsed_body['url'] = URI.join(
|
88
|
+
parsed_body['url'] = URI.join(
|
89
|
+
settings.teleport_options[:base_url],
|
90
|
+
URI(parsed_body['url']).path
|
91
|
+
).to_s
|
89
92
|
end
|
90
93
|
|
91
94
|
respond proxy(:post, params, headers: headers, body: parsed_body.to_json)
|
data/superbot-teleport.gemspec
CHANGED
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.8"
|
29
29
|
spec.add_development_dependency "pry"
|
30
30
|
|
31
|
-
spec.add_development_dependency "superbot", "~> 0.
|
31
|
+
spec.add_development_dependency "superbot", "~> 0.4.4"
|
32
32
|
spec.add_development_dependency "superbot-selenium-webdriver", "~> 1.0.1"
|
33
33
|
end
|
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.4
|
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-
|
11
|
+
date: 2019-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.4.4
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.4.4
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: superbot-selenium-webdriver
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|