superbot-teleport 0.2.1 → 0.2.2

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: 2146506a6dfde333feb61b80b669a6d9119dd34c2462a7ac0ce0b684caf20987
4
- data.tar.gz: 8b8feba60bdd91ccde2400260e8107e202ee3f41cb443b00f5bb62b88929ed21
3
+ metadata.gz: 96cb38181742ba93a756ab6c90e13dcd34b7367bee42221ee60a0d4862e8c6ab
4
+ data.tar.gz: 368e20344876b9f25d0505ef7a4654f250303228bd203b126855a45bd41025ab
5
5
  SHA512:
6
- metadata.gz: 0acda86612cd0aadd76051dbc94f7a042d4086eab42c3aaa954ce5c0bc16c51d14ed308af6428cc9ed85f73318302d81e10d56278bedf84d2ad7542b3a1b71d1
7
- data.tar.gz: ee0c93403ff476339197e1c5f6a11aefc100d88c2ea74e616d48a16373b312cdfb0de5fac6e4c913d94d1e933b03c22ff626a2c117867bb0f17f75f81d18479d
6
+ metadata.gz: dec8c0595edf101a3de6dfb13fd40b5579007343dbcf47f875bbe5cf6362cb6427174bb5732e1e123149c25a89f12f560ddef49c48c9bed5e7a8328da0dd2338
7
+ data.tar.gz: ff8a74f2ea4effe57ab9074126087544b2c127e79ad13aea3952c416d5cfbdb7fd8ecf23b939d8ff69cbcd4569e29092bb88615819a394b507c75b1fc343897a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot-teleport (0.2.1)
4
+ superbot-teleport (0.2.2)
5
5
  excon
6
6
 
7
7
  GEM
@@ -24,7 +24,10 @@ module Superbot
24
24
  puts 'Configure your remote webdriver to http://localhost:4567/wd/hub', ''
25
25
  puts 'Press [control+c] to exit', ''
26
26
 
27
- @chromedriver = Kommando.run_async 'chromedriver-helper --silent --port=9515' if browser == 'local'
27
+ if browser == 'local'
28
+ chromedriver_path = Chromedriver::Helper.new.binary_path
29
+ @chromedriver = Kommando.run_async "#{chromedriver_path} --silent --port=9515 --url-base=wd/hub"
30
+ end
28
31
 
29
32
  @web = Superbot::Web.run!(webdriver_type: browser, region: region)
30
33
  ensure
@@ -1,5 +1,5 @@
1
1
  module Superbot
2
2
  module Teleport
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
@@ -40,13 +40,8 @@ module Superbot
40
40
  def proxy(method, params, opts={})
41
41
  raise "DELETE may not contain body" if method == :delete && opts[:body]
42
42
  opts[:headers] ||= {}
43
-
44
- unless settings.webdriver_type == 'local'
45
- path = "wd/hub/#{request_path(params)}"
46
- headers["Content-Type"] = "application/json"
47
- else
48
- path = request_path
49
- end
43
+ path = "wd/hub/#{request_path(params)}"
44
+ headers["Content-Type"] = "application/json"
50
45
 
51
46
  settings.connection.request({method: method, path: path}.merge(opts))
52
47
  end
@@ -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.1.28"
32
- spec.add_development_dependency "superbot-selenium-webdriver"
31
+ spec.add_development_dependency "superbot", "~> 0.1.29"
32
+ spec.add_development_dependency "superbot-selenium-webdriver", "~> 1.0.1"
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbot-teleport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Superbot HQ
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.28
89
+ version: 0.1.29
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.1.28
96
+ version: 0.1.29
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: superbot-selenium-webdriver
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 1.0.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 1.0.1
111
111
  description:
112
112
  email:
113
113
  executables: []