webdrivers 4.4.0 → 4.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f905a3a4839d0f0a56317926d560cab4ee29f98b3d36d4feb1bb671e3f1b23b
4
- data.tar.gz: 44ae96f9ba7edfbb2fb1bd1fd7ef319e73643f5a43c0fce59c51e2b94c1a25c8
3
+ metadata.gz: 5a9aab40e8054bb95185ed1231b7f74757811afb4ad47553b7b78c2fc35ea936
4
+ data.tar.gz: c77d486952c76061d5007030b8e02025a72870469043617ddb230c16b11d0f1f
5
5
  SHA512:
6
- metadata.gz: 73d60000abc1ad06f692ee556bca7bd57403cde91f2152b5349fda2b0feaa2afb261dd87b1e16f6f8c74e843634b8dbde3da85ed666164920e78163fed764029
7
- data.tar.gz: 1c94fde9cafdb1929a3e70ada28c7dfec07cbae6f68220e247ffe62343700c5b3ca2c0556d1d028d4d25b0f6bbd76923c402f1925574ec6f117eb8c4066e6255
6
+ metadata.gz: c9f29b0e62b33afe328f833ac8a8cb55e11e137938d22a7a66e9e72aa837ee58a9a00f94aa06977c78eac88bd3f446571753728536414b4a9b34a1ddfc0971bf
7
+ data.tar.gz: 2b979a07116667932ee3e0ca71678f1eec119840b712a2d265a61b1c1585bc14134e1238829d336bedf8c1373bff08cd6f0a80c66bf8378d63123e53a3ab249b
data/CHANGELOG.md CHANGED
@@ -1,5 +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
+
14
+ ### 4.4.1 (2020-06-01)
15
+ * Do not include binstubs used for troubleshooting only. Fixes [#174](https://github.com/titusfortner/webdrivers/issues/174).
16
+
1
17
  ### 4.4.0 (2020-05-31)
2
- * Implement initial support for WSLv1 ([#172](https://github.com/titusfortner/webdrivers/issues/172)). Thanks G-Rath!
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)!
3
20
  * Chrome/Edgedriver - Fix [#171](https://github.com/titusfortner/webdrivers/issues/171) by making sure the cached
4
21
  driver build version matches the browser build version before using it.
5
22
  * Chrome/Edgedriver - Driver version check now matches the driver and browser `major.minor.build` versions instead of just
data/README.md CHANGED
@@ -15,11 +15,13 @@ Run Selenium tests more easily with automatic installation and updates for all s
15
15
  * [IEDriverServer](https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver)
16
16
  * [msedgedriver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
17
17
 
18
+ Works on macOS, Linux, Windows, and Windows Subsystem for Linux (WSL) v1.
19
+
18
20
  ## Usage
19
21
 
20
22
  In your Gemfile:
21
23
 
22
- `gem 'webdrivers', '~> 4.0'`
24
+ `gem 'webdrivers', '~> 4.0', require: false`
23
25
 
24
26
  In your project:
25
27
 
@@ -192,6 +194,14 @@ The logging level can be configured for debugging purpose:
192
194
  Webdrivers.logger.level = :DEBUG
193
195
  ```
194
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
+
195
205
  ### Browser Specific Notes
196
206
 
197
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
- rescue NetworkError
77
- "#{msg} A network issue is preventing determination of latest chromedriver release."
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
- rescue NetworkError
62
- "#{msg} A network issue is preventing determination of latest msedgedriver release."
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>` "\
@@ -44,16 +44,19 @@ module Webdrivers
44
44
  end
45
45
 
46
46
  def downloads
47
- doc = Nokogiri::XML.parse(Network.get(base_url))
48
- items = doc.css('Key').collect(&:text)
49
- items.select! { |item| item.include?('IEDriverServer_Win32') }
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
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'net/http'
4
+
3
5
  module Webdrivers
4
6
  #
5
7
  # @api private
@@ -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?('Microsoft')
153
+ platform == 'linux' && File.open('/proc/version').read.downcase.include?('microsoft')
154
154
  end
155
155
 
156
156
  # @param [String] path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Webdrivers
4
- VERSION = '4.4.0'
4
+ VERSION = '4.4.2'
5
5
  end
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.0
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-06-01 00:00:00.000000000 Z
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.66'
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.66'
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.32'
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.32'
112
+ version: '1.42'
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: simplecov
101
115
  requirement: !ruby/object:Gem::Requirement
@@ -163,25 +177,13 @@ description: Run Selenium tests more easily with install and updates for all sup
163
177
  email:
164
178
  - titusfortner@gmail.com
165
179
  - kapoorlakshya@gmail.com
166
- executables:
167
- - console
168
- - setup
180
+ executables: []
169
181
  extensions: []
170
182
  extra_rdoc_files: []
171
183
  files:
172
- - ".github/ISSUE_TEMPLATE.md"
173
- - ".gitignore"
174
- - ".rubocop.yml"
175
- - ".travis.yml"
176
184
  - CHANGELOG.md
177
- - Gemfile
178
185
  - LICENSE.txt
179
186
  - README.md
180
- - Rakefile
181
- - appveyor.yml
182
- - bin/console
183
- - bin/setup
184
- - gemfiles/Gemfile.edge
185
187
  - lib/webdrivers.rb
186
188
  - lib/webdrivers/Rakefile
187
189
  - lib/webdrivers/chrome_finder.rb
@@ -210,17 +212,14 @@ files:
210
212
  - spec/webdrivers/system_spec.rb
211
213
  - spec/webdrivers/webdrivers_spec.rb
212
214
  - spec/webdrivers_proxy_support_spec.rb
213
- - support/install_jruby.ps1
214
- - support/install_msedge.ps1
215
- - webdrivers.gemspec
216
215
  homepage: https://github.com/titusfortner/webdrivers
217
216
  licenses:
218
217
  - MIT
219
218
  metadata:
220
219
  bug_tracker_uri: https://github.com/titusfortner/webdrivers/issues
221
220
  changelog_uri: https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md
222
- documentation_uri: https://www.rubydoc.info/gems/webdrivers/4.4.0
223
- source_code_uri: https://github.com/titusfortner/webdrivers/tree/v4.4.0
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
224
223
  post_install_message:
225
224
  rdoc_options: []
226
225
  require_paths:
@@ -236,8 +235,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
235
  - !ruby/object:Gem::Version
237
236
  version: '0'
238
237
  requirements: []
239
- rubygems_version: 3.1.3
238
+ rubygems_version: 3.1.4
240
239
  signing_key:
241
240
  specification_version: 4
242
241
  summary: Easy download and use of browser drivers.
243
- 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
@@ -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
@@ -1,8 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- chromedriver.log
6
- /.idea/
7
- coverage/
8
- gemfiles/Gemfile.*.lock
data/.rubocop.yml DELETED
@@ -1,48 +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
- Metrics/MethodLength:
20
- Max: 20
21
-
22
- Metrics/BlockLength:
23
- Exclude:
24
- - 'spec/**/*'
25
- - 'lib/webdrivers/tasks/*.rake'
26
- - 'webdrivers.gemspec'
27
-
28
- Metrics/ClassLength:
29
- Max: 116
30
- Exclude:
31
- - 'lib/webdrivers/system.rb'
32
-
33
- Metrics/CyclomaticComplexity:
34
- Max: 8
35
-
36
- Metrics/AbcSize:
37
- Max: 16
38
- Exclude:
39
- - 'lib/webdrivers/chromedriver.rb'
40
-
41
- Style/Documentation:
42
- Enabled: false
43
-
44
- RSpec/ExampleLength:
45
- Enabled: false
46
-
47
- RSpec/MultipleExpectations:
48
- 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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in webdrivers.gemspec
6
- gemspec
data/Rakefile DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
- require 'rubocop/rake_task'
6
-
7
- RuboCop::RakeTask.new
8
-
9
- RSpec::Core::RakeTask.new(:spec)
10
-
11
- task default: %i[rubocop spec]
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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in webdrivers.gemspec
6
- gemspec path: '..'
7
- gem 'selenium-webdriver', github: 'seleniumhq/selenium', glob: 'rb/*.gemspec'
@@ -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
@@ -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 = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
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