superbot 0.1.26 → 0.1.27

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84fbe4f5e88083d8a7c104b4cc9faf3c570aed519b63e40d8ee448ed02a7a5dd
4
- data.tar.gz: adf8d9b6de1840e8f99c259e71c5e0459a3fcb20f6ae8d35902b9435468cfc06
3
+ metadata.gz: c0e0a593137e0fee2b1e9d1a16c2a31a6bcf6460ae0c87cc1653b440a07a4834
4
+ data.tar.gz: 5f17e4f9438919334e73a17bfb327a24d494bdf27bb2b3f6b656dd3a8777f4fd
5
5
  SHA512:
6
- metadata.gz: 7c96996aea3649659dc19cfffc77d4f71934a2c73527736e7edc0f1ab1a8a09c14ec89e8598a9e7448dabee3f1b28eea367828f09322be074d2898a271a4a755
7
- data.tar.gz: 3f1f0cbd54e5583ad318334cb8c839ba1f7dade0554e2f30acca797ddadfed1656bab15418ca9f6e0d8536484687404306fb5d8653017cb9ff1a7426926b9ffe
6
+ metadata.gz: d285eec9a6a897ac2268a1e0aa668d5492a461026b7694b934851652edd1a5cd9e08f64fae27057eb711c4d1b6f611c7bb6bf7a17c09368738455261f65d4694
7
+ data.tar.gz: 5e65c38193312991b20bc767a29d5397b5134b4779a8ce956a2b09e864885648262522af0edd3a9fd3e20d7befd0d26ff3971315e3b114068d9e6f4277e255a4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot (0.1.26)
4
+ superbot (0.1.27)
5
5
  clamp (= 1.2.1)
6
6
  kommando (~> 0.1)
7
7
  launchy (= 2.4.3)
@@ -143,4 +143,4 @@ DEPENDENCIES
143
143
  superbot!
144
144
 
145
145
  BUNDLED WITH
146
- 1.16.6
146
+ 1.17.1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Superbot
4
- VERSION = "0.1.26"
4
+ VERSION = "0.1.27"
5
5
  end
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.gsub('/wd/hub', '')
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}/webdriver/v1",
8
+ cloud: "#{URI_SCHEME}://webdriver.#{DOMAIN}",
9
9
  local: "http://127.0.0.1:9515",
10
- local_cloud: "http://localhost:3000/webdriver/v1"
10
+ local_cloud: "http://localhost:3000"
11
11
  }.freeze
12
12
  private_constant :WEBDRIVER_ENDPOINT
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Superbots