superbot 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/superbot/version.rb +1 -1
- data/lib/superbot/web.rb +2 -1
- data/lib/superbot.rb +2 -2
- 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: c0e0a593137e0fee2b1e9d1a16c2a31a6bcf6460ae0c87cc1653b440a07a4834
|
4
|
+
data.tar.gz: 5f17e4f9438919334e73a17bfb327a24d494bdf27bb2b3f6b656dd3a8777f4fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d285eec9a6a897ac2268a1e0aa668d5492a461026b7694b934851652edd1a5cd9e08f64fae27057eb711c4d1b6f611c7bb6bf7a17c09368738455261f65d4694
|
7
|
+
data.tar.gz: 5e65c38193312991b20bc767a29d5397b5134b4779a8ce956a2b09e864885648262522af0edd3a9fd3e20d7befd0d26ff3971315e3b114068d9e6f4277e255a4
|
data/Gemfile.lock
CHANGED
data/lib/superbot/version.rb
CHANGED
data/lib/superbot/web.rb
CHANGED
@@ -56,7 +56,8 @@ module Superbot
|
|
56
56
|
%w(get post put patch delete).each do |verb|
|
57
57
|
@sinatra.send(verb, "/wd/hub/*") do
|
58
58
|
begin
|
59
|
-
request_path = request.path_info
|
59
|
+
request_path = request.path_info
|
60
|
+
request_path.delete!('/wd/hub', '') if @webdriver_type == 'local'
|
60
61
|
content_type 'application/json'
|
61
62
|
response = instance.remote_webdriver_request(
|
62
63
|
verb.capitalize,
|
data/lib/superbot.rb
CHANGED
@@ -5,9 +5,9 @@ module Superbot
|
|
5
5
|
URI_SCHEME = ENV.fetch('SUPERBOT_URI_SCHEME', 'https')
|
6
6
|
|
7
7
|
WEBDRIVER_ENDPOINT = {
|
8
|
-
cloud: "#{URI_SCHEME}://webdriver.#{DOMAIN}
|
8
|
+
cloud: "#{URI_SCHEME}://webdriver.#{DOMAIN}",
|
9
9
|
local: "http://127.0.0.1:9515",
|
10
|
-
local_cloud: "http://localhost:3000
|
10
|
+
local_cloud: "http://localhost:3000"
|
11
11
|
}.freeze
|
12
12
|
private_constant :WEBDRIVER_ENDPOINT
|
13
13
|
|