webdrivers 4.4.1 → 4.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/LICENSE.txt +23 -23
- data/README.md +9 -1
- data/lib/webdrivers/chrome_finder.rb +2 -0
- data/lib/webdrivers/chromedriver.rb +3 -4
- data/lib/webdrivers/edgedriver.rb +2 -6
- data/lib/webdrivers/iedriver.rb +9 -6
- data/lib/webdrivers/network.rb +2 -0
- data/lib/webdrivers/system.rb +1 -1
- data/lib/webdrivers/version.rb +1 -1
- metadata +34 -23
- data/.github/ISSUE_TEMPLATE.md +0 -16
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -96
- data/.travis.yml +0 -41
- data/Gemfile +0 -6
- data/Rakefile +0 -11
- data/appveyor.yml +0 -45
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/gemfiles/Gemfile.edge +0 -7
- data/support/install_jruby.ps1 +0 -7
- data/support/install_msedge.ps1 +0 -11
- data/webdrivers.gemspec +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a9aab40e8054bb95185ed1231b7f74757811afb4ad47553b7b78c2fc35ea936
|
4
|
+
data.tar.gz: c77d486952c76061d5007030b8e02025a72870469043617ddb230c16b11d0f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f29b0e62b33afe328f833ac8a8cb55e11e137938d22a7a66e9e72aa837ee58a9a00f94aa06977c78eac88bd3f446571753728536414b4a9b34a1ddfc0971bf
|
7
|
+
data.tar.gz: 2b979a07116667932ee3e0ca71678f1eec119840b712a2d265a61b1c1585bc14134e1238829d336bedf8c1373bff08cd6f0a80c66bf8378d63123e53a3ab249b
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
|
+
### 4.4.2 (2020-12-29)
|
2
|
+
* Use new powershell if available to enhance WSL support ([#176](https://github.com/titusfortner/webdrivers/issues/176),
|
3
|
+
[#186](https://github.com/titusfortner/webdrivers/pull/186)). Thanks, [G-Rath](https://github.com/G-Rath) and
|
4
|
+
[131](https://github.com/131)!
|
5
|
+
* Update rubocop version (development dependency only) ([#178](https://github.com/titusfortner/webdrivers/pull/178)).
|
6
|
+
Thanks, [utkarsh2102](https://github.com/utkarsh2102)!
|
7
|
+
* Replace `git ls-files` with `dir` in the gemspec for better Debian support ([#179](https://github.com/titusfortner/webdrivers/pull/179),
|
8
|
+
[#184](https://github.com/titusfortner/webdrivers/issues/184)).
|
9
|
+
Thanks again, [utkarsh2102](https://github.com/utkarsh2102)!
|
10
|
+
* Update README with `require: false` when adding gem to Gemfile ([#183](https://github.com/titusfortner/webdrivers/pull/183)).
|
11
|
+
* Make WSL detection more generic ([#187](https://github.com/titusfortner/webdrivers/pull/187)).
|
12
|
+
[rbclark](https://github.com/rbclark)!
|
13
|
+
|
1
14
|
### 4.4.1 (2020-06-01)
|
2
15
|
* Do not include binstubs used for troubleshooting only. Fixes [#174](https://github.com/titusfortner/webdrivers/issues/174).
|
3
16
|
|
4
17
|
### 4.4.0 (2020-05-31)
|
5
|
-
* Implement support for `chromedriver` in Windows Subsystem for Linux (WSL) v1 ([#172](https://github.com/titusfortner/webdrivers/issues/172)).
|
18
|
+
* Implement support for `chromedriver` in Windows Subsystem for Linux (WSL) v1 ([#172](https://github.com/titusfortner/webdrivers/issues/172)).
|
19
|
+
Thanks, [G-Rath](https://github.com/G-Rath)!
|
6
20
|
* Chrome/Edgedriver - Fix [#171](https://github.com/titusfortner/webdrivers/issues/171) by making sure the cached
|
7
21
|
driver build version matches the browser build version before using it.
|
8
22
|
* Chrome/Edgedriver - Driver version check now matches the driver and browser `major.minor.build` versions instead of just
|
data/LICENSE.txt
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
(The MIT License)
|
2
|
-
|
3
|
-
Copyright (c) 2017-2019: Titus Fortner
|
4
|
-
Copyright (c) 2019: Lakshya Kapoor, Thomas Walpole
|
5
|
-
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
-
a copy of this software and associated documentation files (the
|
8
|
-
'Software'), to deal in the Software without restriction, including
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
12
|
-
the following conditions:
|
13
|
-
|
14
|
-
The above copyright notice and this permission notice shall be
|
15
|
-
included in all copies or substantial portions of the Software.
|
16
|
-
|
17
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
20
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
21
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
22
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
23
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2017-2019: Titus Fortner
|
4
|
+
Copyright (c) 2019: Lakshya Kapoor, Thomas Walpole
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
'Software'), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
20
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
21
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
22
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
23
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Works on macOS, Linux, Windows, and Windows Subsystem for Linux (WSL) v1.
|
|
21
21
|
|
22
22
|
In your Gemfile:
|
23
23
|
|
24
|
-
`gem 'webdrivers', '~> 4.0'`
|
24
|
+
`gem 'webdrivers', '~> 4.0', require: false`
|
25
25
|
|
26
26
|
In your project:
|
27
27
|
|
@@ -194,6 +194,14 @@ The logging level can be configured for debugging purpose:
|
|
194
194
|
Webdrivers.logger.level = :DEBUG
|
195
195
|
```
|
196
196
|
|
197
|
+
### WSLv1 support
|
198
|
+
|
199
|
+
While WSLv1 is not designed to run headful applications like Chrome, it can run exes; as such when found to be running
|
200
|
+
in WSL, `webdrivers` will use the Windows `chromedriver.exe`.
|
201
|
+
|
202
|
+
It's recommended that you install the new PowerShell (PS7) to avoid [a known issue](https://github.com/microsoft/terminal/issues/367)
|
203
|
+
with the console font being changed when calling the old PowerShell (PS5).
|
204
|
+
|
197
205
|
### Browser Specific Notes
|
198
206
|
|
199
207
|
#### Chrome/Chromium
|
@@ -104,6 +104,8 @@ module Webdrivers
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def win_version(location)
|
107
|
+
System.call("pwsh.exe -command \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
|
108
|
+
rescue StandardError
|
107
109
|
System.call("powershell.exe \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
|
108
110
|
end
|
109
111
|
|
@@ -73,13 +73,12 @@ module Webdrivers
|
|
73
73
|
else
|
74
74
|
msg
|
75
75
|
end
|
76
|
-
|
77
|
-
|
76
|
+
rescue NetworkError
|
77
|
+
"#{msg} A network issue is preventing determination of latest chromedriver release."
|
78
78
|
end
|
79
79
|
|
80
80
|
msg = "#{msg} Please set `Webdrivers::Chromedriver.required_version = <desired driver version>` "\
|
81
|
-
'to a known chromedriver version: https://chromedriver.storage.googleapis.com/index.html'
|
82
|
-
|
81
|
+
'to a known chromedriver version: https://chromedriver.storage.googleapis.com/index.html'
|
83
82
|
Webdrivers.logger.debug msg
|
84
83
|
raise VersionError, msg
|
85
84
|
end
|
@@ -26,10 +26,6 @@ module Webdrivers
|
|
26
26
|
'https://msedgedriver.azureedge.net/'
|
27
27
|
end
|
28
28
|
|
29
|
-
def remove
|
30
|
-
super
|
31
|
-
end
|
32
|
-
|
33
29
|
private
|
34
30
|
|
35
31
|
def latest_point_release(version)
|
@@ -58,8 +54,8 @@ module Webdrivers
|
|
58
54
|
else
|
59
55
|
msg
|
60
56
|
end
|
61
|
-
|
62
|
-
|
57
|
+
rescue NetworkError
|
58
|
+
"#{msg} A network issue is preventing determination of latest msedgedriver release."
|
63
59
|
end
|
64
60
|
|
65
61
|
"#{msg} Please set `Webdrivers::Edgedriver.required_version = <desired driver version>` "\
|
data/lib/webdrivers/iedriver.rb
CHANGED
@@ -44,16 +44,19 @@ module Webdrivers
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def downloads
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
ds = items.each_with_object({}) do |item, hash|
|
51
|
-
key = normalize_version item[/([^_]+)\.zip/, 1]
|
52
|
-
hash[key] = "#{base_url}#{item}"
|
47
|
+
ds = download_manifest.each_with_object({}) do |item, hash|
|
48
|
+
version = normalize_version item[/([^_]+)\.zip/, 1]
|
49
|
+
hash[version] = "#{base_url}#{item}"
|
53
50
|
end
|
54
51
|
Webdrivers.logger.debug "Versions now located on downloads site: #{ds.keys}"
|
55
52
|
ds
|
56
53
|
end
|
54
|
+
|
55
|
+
def download_manifest
|
56
|
+
doc = Nokogiri::XML.parse(Network.get(base_url))
|
57
|
+
items = doc.css('Key').collect(&:text)
|
58
|
+
items.select { |item| item.include?('IEDriverServer_Win32') }
|
59
|
+
end
|
57
60
|
end
|
58
61
|
end
|
59
62
|
end
|
data/lib/webdrivers/network.rb
CHANGED
data/lib/webdrivers/system.rb
CHANGED
@@ -150,7 +150,7 @@ module Webdrivers
|
|
150
150
|
|
151
151
|
# @return [TrueClass, FalseClass]
|
152
152
|
def wsl?
|
153
|
-
platform == 'linux' && File.open('/proc/version').read.include?('
|
153
|
+
platform == 'linux' && File.open('/proc/version').read.downcase.include?('microsoft')
|
154
154
|
end
|
155
155
|
|
156
156
|
# @param [String] path
|
data/lib/webdrivers/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdrivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -60,14 +60,28 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.89'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '0.
|
70
|
+
version: '0.89'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rubocop-packaging
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.5.0
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.5.0
|
71
85
|
- !ruby/object:Gem::Dependency
|
72
86
|
name: rubocop-performance
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,14 +102,14 @@ dependencies:
|
|
88
102
|
requirements:
|
89
103
|
- - "~>"
|
90
104
|
- !ruby/object:Gem::Version
|
91
|
-
version: '1.
|
105
|
+
version: '1.42'
|
92
106
|
type: :development
|
93
107
|
prerelease: false
|
94
108
|
version_requirements: !ruby/object:Gem::Requirement
|
95
109
|
requirements:
|
96
110
|
- - "~>"
|
97
111
|
- !ruby/object:Gem::Version
|
98
|
-
version: '1.
|
112
|
+
version: '1.42'
|
99
113
|
- !ruby/object:Gem::Dependency
|
100
114
|
name: simplecov
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,19 +181,9 @@ executables: []
|
|
167
181
|
extensions: []
|
168
182
|
extra_rdoc_files: []
|
169
183
|
files:
|
170
|
-
- ".github/ISSUE_TEMPLATE.md"
|
171
|
-
- ".gitignore"
|
172
|
-
- ".rubocop.yml"
|
173
|
-
- ".travis.yml"
|
174
184
|
- CHANGELOG.md
|
175
|
-
- Gemfile
|
176
185
|
- LICENSE.txt
|
177
186
|
- README.md
|
178
|
-
- Rakefile
|
179
|
-
- appveyor.yml
|
180
|
-
- bin/console
|
181
|
-
- bin/setup
|
182
|
-
- gemfiles/Gemfile.edge
|
183
187
|
- lib/webdrivers.rb
|
184
188
|
- lib/webdrivers/Rakefile
|
185
189
|
- lib/webdrivers/chrome_finder.rb
|
@@ -208,17 +212,14 @@ files:
|
|
208
212
|
- spec/webdrivers/system_spec.rb
|
209
213
|
- spec/webdrivers/webdrivers_spec.rb
|
210
214
|
- spec/webdrivers_proxy_support_spec.rb
|
211
|
-
- support/install_jruby.ps1
|
212
|
-
- support/install_msedge.ps1
|
213
|
-
- webdrivers.gemspec
|
214
215
|
homepage: https://github.com/titusfortner/webdrivers
|
215
216
|
licenses:
|
216
217
|
- MIT
|
217
218
|
metadata:
|
218
219
|
bug_tracker_uri: https://github.com/titusfortner/webdrivers/issues
|
219
220
|
changelog_uri: https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md
|
220
|
-
documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.4.
|
221
|
-
source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.4.
|
221
|
+
documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.4.2
|
222
|
+
source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.4.2
|
222
223
|
post_install_message:
|
223
224
|
rdoc_options: []
|
224
225
|
require_paths:
|
@@ -234,8 +235,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
235
|
- !ruby/object:Gem::Version
|
235
236
|
version: '0'
|
236
237
|
requirements: []
|
237
|
-
rubygems_version: 3.1.
|
238
|
+
rubygems_version: 3.1.4
|
238
239
|
signing_key:
|
239
240
|
specification_version: 4
|
240
241
|
summary: Easy download and use of browser drivers.
|
241
|
-
test_files:
|
242
|
+
test_files:
|
243
|
+
- spec/spec_helper.rb
|
244
|
+
- spec/webdrivers/chrome_finder_spec.rb
|
245
|
+
- spec/webdrivers/edge_finder_spec.rb
|
246
|
+
- spec/webdrivers/webdrivers_spec.rb
|
247
|
+
- spec/webdrivers/system_spec.rb
|
248
|
+
- spec/webdrivers/edgedriver_spec.rb
|
249
|
+
- spec/webdrivers/i_edriver_spec.rb
|
250
|
+
- spec/webdrivers/geckodriver_spec.rb
|
251
|
+
- spec/webdrivers/chromedriver_spec.rb
|
252
|
+
- spec/webdrivers_proxy_support_spec.rb
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
#### Summary
|
2
|
-
Short summary of the bug or feature request.
|
3
|
-
|
4
|
-
#### Debug Info
|
5
|
-
Please provide the following information for bug reports:
|
6
|
-
|
7
|
-
* Webdrivers version:
|
8
|
-
* Ruby version:
|
9
|
-
* Operating system / CI Environment:
|
10
|
-
* Browser and version:
|
11
|
-
|
12
|
-
#### Expected Behavior
|
13
|
-
What you expect to happen.
|
14
|
-
|
15
|
-
#### Actual Behavior
|
16
|
-
What is actually happening: Error message, stack trace, DEBUG log if applicable (set `Webdrivers.logger.level = :DEBUG` after you require webdrivers)
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.4.10
|
3
|
-
|
4
|
-
require:
|
5
|
-
- rubocop-rspec
|
6
|
-
- rubocop-performance
|
7
|
-
|
8
|
-
Layout/SpaceInsideHashLiteralBraces:
|
9
|
-
EnforcedStyle: no_space
|
10
|
-
|
11
|
-
Layout/EndOfLine:
|
12
|
-
EnforcedStyle: lf
|
13
|
-
|
14
|
-
Layout/LineLength:
|
15
|
-
Max: 120
|
16
|
-
IgnoredPatterns:
|
17
|
-
- '\s+# rubocop:disable'
|
18
|
-
|
19
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
20
|
-
Enabled: true
|
21
|
-
|
22
|
-
Layout/SpaceAroundOperators:
|
23
|
-
Enabled: true
|
24
|
-
|
25
|
-
Layout/SpaceAroundMethodCallOperator:
|
26
|
-
Enabled: true
|
27
|
-
|
28
|
-
Lint/DeprecatedOpenSSLConstant:
|
29
|
-
Enabled: true
|
30
|
-
|
31
|
-
Lint/RaiseException:
|
32
|
-
Enabled: true
|
33
|
-
|
34
|
-
Lint/StructNewOverride:
|
35
|
-
Enabled: true
|
36
|
-
|
37
|
-
Lint/MixedRegexpCaptureTypes:
|
38
|
-
Enabled: true
|
39
|
-
|
40
|
-
Lint/ScriptPermission:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Metrics/MethodLength:
|
44
|
-
Max: 20
|
45
|
-
|
46
|
-
Metrics/BlockLength:
|
47
|
-
Exclude:
|
48
|
-
- 'spec/**/*'
|
49
|
-
- 'lib/webdrivers/tasks/*.rake'
|
50
|
-
- 'webdrivers.gemspec'
|
51
|
-
|
52
|
-
Metrics/ClassLength:
|
53
|
-
Max: 116
|
54
|
-
Exclude:
|
55
|
-
- 'lib/webdrivers/system.rb'
|
56
|
-
|
57
|
-
Metrics/CyclomaticComplexity:
|
58
|
-
Max: 8
|
59
|
-
|
60
|
-
Metrics/AbcSize:
|
61
|
-
Max: 16
|
62
|
-
Exclude:
|
63
|
-
- 'lib/webdrivers/chromedriver.rb'
|
64
|
-
|
65
|
-
Style/Documentation:
|
66
|
-
Enabled: false
|
67
|
-
|
68
|
-
Style/FrozenStringLiteralComment:
|
69
|
-
Enabled: false
|
70
|
-
|
71
|
-
Style/ExponentialNotation:
|
72
|
-
Enabled: false
|
73
|
-
|
74
|
-
Style/HashEachMethods:
|
75
|
-
Enabled: true
|
76
|
-
|
77
|
-
Style/HashTransformKeys:
|
78
|
-
Enabled: false
|
79
|
-
|
80
|
-
Style/HashTransformValues:
|
81
|
-
Enabled: false
|
82
|
-
|
83
|
-
Style/SlicingWithRange:
|
84
|
-
Enabled: false
|
85
|
-
|
86
|
-
Style/RedundantRegexpCharacterClass:
|
87
|
-
Enabled: true
|
88
|
-
|
89
|
-
Style/RedundantRegexpEscape:
|
90
|
-
Enabled: false
|
91
|
-
|
92
|
-
RSpec/ExampleLength:
|
93
|
-
Enabled: false
|
94
|
-
|
95
|
-
RSpec/MultipleExpectations:
|
96
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
addons:
|
4
|
-
apt:
|
5
|
-
packages:
|
6
|
-
- chromium-browser
|
7
|
-
- libgconf-2-4
|
8
|
-
chrome: stable
|
9
|
-
script: bundle exec rake $RAKE_TASK
|
10
|
-
before_install:
|
11
|
-
- gem update --system -N
|
12
|
-
- gem install bundler -N
|
13
|
-
matrix:
|
14
|
-
include:
|
15
|
-
- rvm: 2.4
|
16
|
-
env: RAKE_TASK=spec
|
17
|
-
- rvm: 2.5
|
18
|
-
env: RAKE_TASK=spec
|
19
|
-
- rvm: 2.6
|
20
|
-
env: RAKE_TASK=spec
|
21
|
-
- rvm: 2.7
|
22
|
-
os: osx
|
23
|
-
env: RAKE_TASK=spec
|
24
|
-
- rvm: 2.7
|
25
|
-
env: RAKE_TASK=rubocop
|
26
|
-
- rvm: jruby-9.2.11.1
|
27
|
-
jdk: openjdk8
|
28
|
-
env: RAKE_TASK=spec
|
29
|
-
- rvm: 2.7
|
30
|
-
env: RAKE_TASK=spec
|
31
|
-
gemfile: gemfiles/Gemfile.edge
|
32
|
-
os: osx
|
33
|
-
osx_image: xcode11.3
|
34
|
-
addons:
|
35
|
-
chrome: stable
|
36
|
-
homebrew:
|
37
|
-
taps: homebrew/cask-versions
|
38
|
-
casks:
|
39
|
-
- microsoft-edge
|
40
|
-
allow_failures:
|
41
|
-
- gemfile: gemfiles/Gemfile.edge
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/appveyor.yml
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
build: off
|
2
|
-
cache:
|
3
|
-
- vendor/bundle
|
4
|
-
image:
|
5
|
-
- Visual Studio 2019
|
6
|
-
environment:
|
7
|
-
matrix:
|
8
|
-
- RUBY_VERSION: Ruby24-x64
|
9
|
-
RUBY_BIN: ruby
|
10
|
-
RAKE_TASK: rubocop
|
11
|
-
SCRIPT_CONTEXT: bundle exec
|
12
|
-
- RUBY_VERSION: Ruby24-x64
|
13
|
-
RUBY_BIN: ruby
|
14
|
-
RAKE_TASK: spec
|
15
|
-
SCRIPT_CONTEXT: bundle exec
|
16
|
-
- RUBY_VERSION: Ruby25-x64
|
17
|
-
RUBY_BIN: ruby
|
18
|
-
RAKE_TASK: spec
|
19
|
-
SCRIPT_CONTEXT: bundle exec
|
20
|
-
- RUBY_VERSION: Ruby26-x64
|
21
|
-
RUBY_BIN: ruby
|
22
|
-
RAKE_TASK: spec
|
23
|
-
SCRIPT_CONTEXT: bundle exec
|
24
|
-
- RUBY_VERSION: jruby-9.2.11.1
|
25
|
-
RUBY_BIN: jruby
|
26
|
-
RAKE_TASK: spec
|
27
|
-
SCRIPT_CONTEXT: jruby -G -S
|
28
|
-
- RUBY_VERSION: Ruby26-x64
|
29
|
-
RUBY_BIN: ruby
|
30
|
-
RAKE_TASK: spec
|
31
|
-
SCRIPT_CONTEXT: bundle exec
|
32
|
-
BUNDLE_GEMFILE: gemfiles/Gemfile.edge
|
33
|
-
install:
|
34
|
-
- ps: if ($env:RUBY_BIN -eq 'jruby') { support\install_jruby.ps1 }
|
35
|
-
- ps: support\install_msedge.ps1
|
36
|
-
- set PATH=C:\%RUBY_VERSION%\bin;%PATH%
|
37
|
-
- '%RUBY_BIN% -S gem update --system -N'
|
38
|
-
- '%RUBY_BIN% -S gem install bundler -N'
|
39
|
-
- '%RUBY_BIN% -S bundle install'
|
40
|
-
before_test:
|
41
|
-
- '%RUBY_BIN% -v'
|
42
|
-
- '%RUBY_BIN% -S gem -v'
|
43
|
-
- '%RUBY_BIN% -S bundle -v'
|
44
|
-
test_script:
|
45
|
-
- '%SCRIPT_CONTEXT% rake %RAKE_TASK%'
|
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'webdrivers'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/gemfiles/Gemfile.edge
DELETED
data/support/install_jruby.ps1
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
$downloadLink = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.11.1/jruby-dist-9.2.11.1-bin.zip"
|
2
|
-
$zipPath = "c:\jruby-dist-9.2.11.1-bin.zip"
|
3
|
-
|
4
|
-
Write-Host "Installing $($env:RUBY_VERSION)" -ForegroundColor cyan
|
5
|
-
appveyor DownloadFile "$($downloadLink)" -FileName "$($zipPath)"
|
6
|
-
7z x "$($zipPath)" -oc:\ -y # Unzip to c:\
|
7
|
-
Write-Host "JRuby installed.`n" -ForegroundColor green
|
data/support/install_msedge.ps1
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
$downloadLink = "https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en"
|
2
|
-
$installerFile = "C:\MicrosoftEdgeSetup.exe"
|
3
|
-
|
4
|
-
# Note: We're purposely skipping the -Wait flag in Start-Process.
|
5
|
-
# This is because Edge auto-launches after the setup is done and
|
6
|
-
# Start-Process continues to indefinitely wait on that process.
|
7
|
-
Write-Host "Downloading Microsoft Edge (Stable)..." -ForegroundColor cyan
|
8
|
-
Invoke-WebRequest $downloadLink -OutFile $installerFile
|
9
|
-
Write-Host "Installing..." -ForegroundColor cyan
|
10
|
-
Start-Process $installerFile
|
11
|
-
Write-Host "Microsoft Edge (Stable) installed.`n" -ForegroundColor green
|
data/webdrivers.gemspec
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'webdrivers/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = 'webdrivers'
|
9
|
-
s.version = Webdrivers::VERSION
|
10
|
-
s.required_ruby_version = '>= 2.4.0'
|
11
|
-
s.authors = ['Titus Fortner', 'Lakshya Kapoor', 'Thomas Walpole']
|
12
|
-
s.email = %w[titusfortner@gmail.com kapoorlakshya@gmail.com]
|
13
|
-
s.homepage = 'https://github.com/titusfortner/webdrivers'
|
14
|
-
s.summary = 'Easy download and use of browser drivers.'
|
15
|
-
s.description = 'Run Selenium tests more easily with install and updates for all supported webdrivers.'
|
16
|
-
s.licenses = ['MIT']
|
17
|
-
|
18
|
-
s.metadata = {
|
19
|
-
'bug_tracker_uri' => 'https://github.com/titusfortner/webdrivers/issues',
|
20
|
-
'changelog_uri' => 'https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md',
|
21
|
-
'documentation_uri' => "https://www.rubydoc.info/gems/webdrivers/#{Webdrivers::VERSION}",
|
22
|
-
'source_code_uri' => "https://github.com/titusfortner/webdrivers/tree/v#{Webdrivers::VERSION}"
|
23
|
-
}
|
24
|
-
|
25
|
-
s.files = `git ls-files`.split("\n")
|
26
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
|
-
s.executables = []
|
28
|
-
s.require_paths = ['lib']
|
29
|
-
|
30
|
-
s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows
|
31
|
-
s.add_development_dependency 'rake', '~> 12.0'
|
32
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
33
|
-
s.add_development_dependency 'rubocop', '~>0.66'
|
34
|
-
s.add_development_dependency 'rubocop-performance'
|
35
|
-
s.add_development_dependency 'rubocop-rspec', '~>1.32'
|
36
|
-
s.add_development_dependency 'simplecov', '~>0.16'
|
37
|
-
|
38
|
-
s.add_runtime_dependency 'nokogiri', '~> 1.6'
|
39
|
-
s.add_runtime_dependency 'rubyzip', '>= 1.3.0'
|
40
|
-
s.add_runtime_dependency 'selenium-webdriver', '>= 3.0', '< 4.0'
|
41
|
-
end
|