webdrivers 3.6.0 → 3.7.0

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.
@@ -1,45 +1,45 @@
1
- require 'spec_helper'
2
-
3
- class FakeDriver < Webdrivers::Common
4
- def self.http_object
5
- self.http
6
- end
7
- end
8
-
9
- describe "Support for proxies" do
10
- let(:http_object) { FakeDriver.http_object }
11
-
12
- before do
13
- Webdrivers.proxy_addr = nil
14
- Webdrivers.proxy_port = nil
15
- Webdrivers.proxy_user = nil
16
- Webdrivers.proxy_pass = nil
17
- end
18
-
19
- it 'should allow the proxy values to be set via configuration' do
20
- Webdrivers.configure do |config|
21
- config.proxy_addr = 'proxy_addr'
22
- config.proxy_port = '8888'
23
- config.proxy_user = 'proxy_user'
24
- config.proxy_pass = 'proxy_pass'
25
- end
26
-
27
- expect(Webdrivers.proxy_addr).to eql 'proxy_addr'
28
- expect(Webdrivers.proxy_port).to eql '8888'
29
- expect(Webdrivers.proxy_user).to eql 'proxy_user'
30
- expect(Webdrivers.proxy_pass).to eql 'proxy_pass'
31
- end
32
-
33
- it 'should use the Proxy when the proxy_addr is set' do
34
- Webdrivers.configure do |config|
35
- config.proxy_addr = 'proxy_addr'
36
- config.proxy_port = '8080'
37
- end
38
-
39
- expect(http_object.instance_variable_get('@is_proxy_class')).to be true
40
- end
41
-
42
- it 'should not use the Proxy when proxy is not configured' do
43
- expect(http_object.instance_variable_get('@is_proxy_class')).to be false
44
- end
1
+ require 'spec_helper'
2
+
3
+ class FakeDriver < Webdrivers::Common
4
+ def self.http_object
5
+ self.http
6
+ end
7
+ end
8
+
9
+ describe "Support for proxies" do
10
+ let(:http_object) { FakeDriver.http_object }
11
+
12
+ before do
13
+ Webdrivers.proxy_addr = nil
14
+ Webdrivers.proxy_port = nil
15
+ Webdrivers.proxy_user = nil
16
+ Webdrivers.proxy_pass = nil
17
+ end
18
+
19
+ it 'should allow the proxy values to be set via configuration' do
20
+ Webdrivers.configure do |config|
21
+ config.proxy_addr = 'proxy_addr'
22
+ config.proxy_port = '8888'
23
+ config.proxy_user = 'proxy_user'
24
+ config.proxy_pass = 'proxy_pass'
25
+ end
26
+
27
+ expect(Webdrivers.proxy_addr).to eql 'proxy_addr'
28
+ expect(Webdrivers.proxy_port).to eql '8888'
29
+ expect(Webdrivers.proxy_user).to eql 'proxy_user'
30
+ expect(Webdrivers.proxy_pass).to eql 'proxy_pass'
31
+ end
32
+
33
+ it 'should use the Proxy when the proxy_addr is set' do
34
+ Webdrivers.configure do |config|
35
+ config.proxy_addr = 'proxy_addr'
36
+ config.proxy_port = '8080'
37
+ end
38
+
39
+ expect(http_object.instance_variable_get('@is_proxy_class')).to be true
40
+ end
41
+
42
+ it 'should not use the Proxy when proxy is not configured' do
43
+ expect(http_object.instance_variable_get('@is_proxy_class')).to be false
44
+ end
45
45
  end
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,2 @@
1
- require "rspec"
2
- require "webdrivers"
1
+ require "rspec"
2
+ require "webdrivers"
data/webdrivers.gemspec CHANGED
@@ -1,26 +1,27 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "webdrivers"
6
- s.version = "3.6.0"
7
- s.authors = ["Titus Fortner"]
8
- s.email = ["titusfortner@gmail.com"]
9
- s.homepage = "https://github.com/titusfortner/webdrivers"
10
- s.summary = "Easy download and use of browser drivers."
11
- s.description = "Run Selenium tests more easily with install and updates for all supported webdrivers."
12
- s.licenses = ["MIT"]
13
-
14
- s.files = `git ls-files`.split("\n")
15
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
- s.require_paths = ["lib"]
18
-
19
- s.add_development_dependency "rspec", "~> 3.0"
20
- s.add_development_dependency "rake", "~> 10.0"
21
-
22
- s.add_runtime_dependency "net_http_ssl_fix"
23
- s.add_runtime_dependency "nokogiri", "~> 1.6"
24
- s.add_runtime_dependency "rubyzip", "~> 1.0"
25
- s.add_runtime_dependency "selenium-webdriver", "~> 3.0"
26
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ $LOAD_PATH.push File.expand_path('../lib', __dir__)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'webdrivers'
7
+ s.version = '3.7.0'
8
+ s.authors = ['Titus Fortner', 'Lakshya Kapoor']
9
+ s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
10
+ s.homepage = 'https://github.com/titusfortner/webdrivers'
11
+ s.summary = 'Easy download and use of browser drivers.'
12
+ s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
13
+ s.licenses = ['MIT']
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
+ s.require_paths = ['lib']
19
+
20
+ s.add_development_dependency 'rake', '~> 10.0'
21
+ s.add_development_dependency 'rspec', '~> 3.0'
22
+
23
+ s.add_runtime_dependency 'net_http_ssl_fix'
24
+ s.add_runtime_dependency 'nokogiri', '~> 1.6'
25
+ s.add_runtime_dependency 'rubyzip', '~> 1.0'
26
+ s.add_runtime_dependency 'selenium-webdriver', '~> 3.0'
27
+ end
metadata CHANGED
@@ -1,43 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdrivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
+ - Lakshya Kapoor
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2018-12-30 00:00:00.000000000 Z
12
+ date: 2019-03-19 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: rspec
15
+ name: rake
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '3.0'
20
+ version: '10.0'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '3.0'
27
+ version: '10.0'
27
28
  - !ruby/object:Gem::Dependency
28
- name: rake
29
+ name: rspec
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - "~>"
32
33
  - !ruby/object:Gem::Version
33
- version: '10.0'
34
+ version: '3.0'
34
35
  type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
39
  - - "~>"
39
40
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
+ version: '3.0'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: net_http_ssl_fix
43
44
  requirement: !ruby/object:Gem::Requirement
@@ -98,6 +99,7 @@ description: Run Selenium tests more easily with install and updates for all sup
98
99
  webdrivers.
99
100
  email:
100
101
  - titusfortner@gmail.com
102
+ - kapoorlakshya@gmail.com
101
103
  executables: []
102
104
  extensions: []
103
105
  extra_rdoc_files: []
@@ -143,15 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
145
  - !ruby/object:Gem::Version
144
146
  version: '0'
145
147
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.5.2.3
148
+ rubygems_version: 3.0.3
148
149
  signing_key:
149
150
  specification_version: 4
150
151
  summary: Easy download and use of browser drivers.
151
- test_files:
152
- - spec/chromedriver_spec.rb
153
- - spec/geckodriver_spec.rb
154
- - spec/iedriver_spec.rb
155
- - spec/mswebdriver_spec.rb
156
- - spec/proxy_support_spec.rb
157
- - spec/spec_helper.rb
152
+ test_files: []