superbot 0.1.17 → 0.1.18
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.rb +2 -1
- data/lib/superbot/version.rb +1 -1
- data/lib/superbot/web.rb +3 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33e9d2c3a28cfb186e514d0aa10f6bb2e2901cf8a51873b78c19ce1fe9210c4e
|
|
4
|
+
data.tar.gz: '08f1cf4b3829eafea69178ee9e1b3ebb4dbb9ca9d2c4df88b56ef6236b12fe80'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07f7c8d31ffb7db87d5567021888f487c1419fcacf3494a2a4258a9b0c17a3da07cb2cc47de5ac6f70b12958bd72ffd9575a68448cd70d6ac47cbbccc0eea7ff
|
|
7
|
+
data.tar.gz: 0bc386307f10832f2a53d61645eff7fb521e65c614003fe6f99dc3c9e5204a520d2fe2a907c9b58e0b09e2aaa6b7d79865e15338ec223ecb703a49f651f6412a
|
data/Gemfile.lock
CHANGED
data/lib/superbot.rb
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module Superbot
|
|
4
4
|
DOMAIN = ENV.fetch('SUPERBOT_DOMAIN', 'superbot.cloud')
|
|
5
|
+
URI_SCHEME = ENV.fetch('SUPERBOT_URI_SCHEME', 'https')
|
|
5
6
|
|
|
6
7
|
WEBDRIVER_ENDPOINT = {
|
|
7
|
-
cloud: "
|
|
8
|
+
cloud: "#{URI_SCHEME}://webdriver.#{DOMAIN}/webdriver/v1",
|
|
8
9
|
local: "http://127.0.0.1:9515",
|
|
9
10
|
local_cloud: "http://localhost:3000/webdriver/v1"
|
|
10
11
|
}.freeze
|
data/lib/superbot/version.rb
CHANGED
data/lib/superbot/web.rb
CHANGED
|
@@ -98,14 +98,10 @@ module Superbot
|
|
|
98
98
|
end
|
|
99
99
|
req.body = request_body
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
if uri.scheme == 'https'
|
|
103
|
-
http.use_ssl = true
|
|
101
|
+
Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
|
|
104
102
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
http.start do |client|
|
|
108
|
-
client.request(req)
|
|
103
|
+
http.read_timeout = Superbot.cloud_timeout
|
|
104
|
+
http.request(req)
|
|
109
105
|
end.tap do |response|
|
|
110
106
|
output_response_errors(response)
|
|
111
107
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: superbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Superbots
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clamp
|