superbot 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48e67b88cb50ca67037dc561fb9c244800d6cebda074330aed0ee8f4aa885c8c
4
- data.tar.gz: 4c5c145a091e75fef9af76db9779bad39c0c61f363d298b85a04462ec3480649
3
+ metadata.gz: 33e9d2c3a28cfb186e514d0aa10f6bb2e2901cf8a51873b78c19ce1fe9210c4e
4
+ data.tar.gz: '08f1cf4b3829eafea69178ee9e1b3ebb4dbb9ca9d2c4df88b56ef6236b12fe80'
5
5
  SHA512:
6
- metadata.gz: c95e6295cd93d7312539d214107fc035eda32ea4c2ab782023f372dfc8cfad99c3a2430aa51bfb0c1bcb480cbc7e54a0e3a83716db3981cf088e64a57a1c7e19
7
- data.tar.gz: 5d9d3cf7dfdc52ac3696ad903fabf095c446a1b74cee8874e8749d23735a7ef458d183b4a34b1271133f4233216811ce365218100af04a5a2f1ef191895a2a61
6
+ metadata.gz: 07f7c8d31ffb7db87d5567021888f487c1419fcacf3494a2a4258a9b0c17a3da07cb2cc47de5ac6f70b12958bd72ffd9575a68448cd70d6ac47cbbccc0eea7ff
7
+ data.tar.gz: 0bc386307f10832f2a53d61645eff7fb521e65c614003fe6f99dc3c9e5204a520d2fe2a907c9b58e0b09e2aaa6b7d79865e15338ec223ecb703a49f651f6412a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot (0.1.17)
4
+ superbot (0.1.18)
5
5
  clamp (= 1.2.1)
6
6
  kommando (~> 0.1)
7
7
  launchy (= 2.4.3)
@@ -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: "https://webdriver.#{DOMAIN}/webdriver/v1",
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Superbot
4
- VERSION = "0.1.17"
4
+ VERSION = "0.1.18"
5
5
  end
@@ -98,14 +98,10 @@ module Superbot
98
98
  end
99
99
  req.body = request_body
100
100
 
101
- http = Net::HTTP.new(uri.hostname, uri.port)
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
- end
106
- http.read_timeout = Superbot.cloud_timeout
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.17
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-19 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp