webdrivers 4.1.3 → 4.2.0

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: ecc36e5f9d3969cfc74f760b76c503aee82245ef3d38e4abf185927b9c4a4de4
4
- data.tar.gz: 0d20abe48637e92ae714e24d50ea7ef51feaeb1dc018fb69ae145f766e799344
3
+ metadata.gz: fac06602fcff05585f6d938c97929a997965ce587d40fab35c319fbd1f199b16
4
+ data.tar.gz: cb7dc89fed860e1c900b1593a98743ffc2f43b31f5d4608e6d86e04a70e10db4
5
5
  SHA512:
6
- metadata.gz: 69ee84671cb4ea6c45cfc4f12260c43da13827558f7c91653081bdc01f51ca750145bfe9e42908e5a907a60bd75d92698cd8f1cee3a81cd80094946d7841a680
7
- data.tar.gz: 2a047608c7d39f7790fadcb5aa1deb91abe8daf6c1132059f9f61c03bcffe39d8983e9aa8c65b7bad6abe2af71e3f4031317ae92331497e807c44c294356eae5
6
+ metadata.gz: 4c331e0e6b99c41b6285f58f6aa1245edc251832f1e6edb5ce2c6b0fca469d31b3b9431f65c220195b2630264a87d3b91e6f7a1d820fa79e3093f1b3c50f3b21
7
+ data.tar.gz: 341df4de8de5bf6e67784dfc3a74b445c0ea1f3fdfda47f84744a69ac5a3828762926aeff8393d3d6017160ba9d9fbbc51f4b533573992f85a4c94ad4771dc5a
@@ -23,19 +23,19 @@ matrix:
23
23
  env: RAKE_TASK=spec
24
24
  - rvm: 2.4.6
25
25
  env: RAKE_TASK=rubocop
26
- - rvm: jruby-9.2.7.0
26
+ - rvm: jruby-9.2.9.0
27
27
  jdk: openjdk8
28
28
  env: RAKE_TASK=spec
29
- - rvm: 2.6
29
+ - rvm: 2.7
30
30
  env: RAKE_TASK=spec
31
31
  gemfile: gemfiles/Gemfile.edge
32
32
  os: osx
33
- osx_image: xcode10.2
33
+ osx_image: xcode11.3
34
34
  addons:
35
35
  chrome: stable
36
36
  homebrew:
37
37
  taps: homebrew/cask-versions
38
38
  casks:
39
- - microsoft-edge-dev
39
+ - microsoft-edge-beta
40
40
  allow_failures:
41
41
  - gemfile: gemfiles/Gemfile.edge
@@ -1,3 +1,8 @@
1
+ ### 4.2.0 (2019-12-27)
2
+ * Add support for Microsoft Edge (Chromium) Beta releases ([#155](https://github.com/titusfortner/webdrivers/pull/155))
3
+ * Use tilde expansion to resolve user's home directory ([#166](https://github.com/titusfortner/webdrivers/pull/161))
4
+ * Add support for Chromium installed using Snap on Ubuntu ([#163](https://github.com/titusfortner/webdrivers/pull/163)). Thanks Tietew!
5
+
1
6
  ### 4.1.3 (2019-10-07)
2
7
  * Require rubyzip version 1.3.0 or higher to fix [rubyzip#403](https://github.com/rubyzip/rubyzip/pull/403). Thanks rhymes! ([#153](https://github.com/titusfortner/webdrivers/pull/153))
3
8
  * Fix a bug where the file deletion confirmation was printed even when there were no files to delete.
data/README.md CHANGED
@@ -13,7 +13,7 @@ Run Selenium tests more easily with automatic installation and updates for all s
13
13
  * [chromedriver](http://chromedriver.chromium.org/)
14
14
  * [geckodriver](https://github.com/mozilla/geckodriver)
15
15
  * [IEDriverServer](https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver)
16
- * [msedgedriver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/) - Dev and Canary releases on Windows and macOS only
16
+ * [msedgedriver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
17
17
 
18
18
  ## Usage
19
19
 
@@ -68,7 +68,7 @@ Webdrivers::Geckodriver.required_version = '0.23.0'
68
68
  Webdrivers::IEdriver.required_version = '3.14.0'
69
69
 
70
70
  # Edge (Chromium)
71
- Webdrivers::Edgedriver.required_version = '76.0.183.0'
71
+ Webdrivers::Edgedriver.required_version = '76.0.183.0'
72
72
  ```
73
73
 
74
74
  You can explicitly trigger the update in your code, but this will happen
@@ -21,7 +21,7 @@ environment:
21
21
  RUBY_BIN: ruby
22
22
  RAKE_TASK: spec
23
23
  SCRIPT_CONTEXT: bundle exec
24
- - RUBY_VERSION: jruby-9.2.7.0
24
+ - RUBY_VERSION: jruby-9.2.9.0
25
25
  RUBY_BIN: jruby
26
26
  RAKE_TASK: spec
27
27
  SCRIPT_CONTEXT: jruby -G -S
@@ -66,7 +66,7 @@ module Webdrivers
66
66
  end
67
67
 
68
68
  def linux_location
69
- directories = %w[/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /opt/google/chrome]
69
+ directories = %w[/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /snap/bin /opt/google/chrome]
70
70
  files = %w[google-chrome chrome chromium chromium-browser]
71
71
 
72
72
  directories.each do |dir|
@@ -21,7 +21,7 @@ module Webdrivers
21
21
  end
22
22
 
23
23
  DEFAULT_CACHE_TIME = 86_400 # 24 hours
24
- DEFAULT_INSTALL_DIR = File.expand_path(File.join(ENV['HOME'], '.webdrivers'))
24
+ DEFAULT_INSTALL_DIR = File.expand_path('~/.webdrivers')
25
25
 
26
26
  class << self
27
27
  attr_accessor :proxy_addr, :proxy_port, :proxy_user, :proxy_pass
@@ -37,7 +37,9 @@ module Webdrivers
37
37
 
38
38
  def win_location
39
39
  envs = %w[LOCALAPPDATA PROGRAMFILES PROGRAMFILES(X86)]
40
- directories = ['\\Microsoft\\Edge Dev\\Application', '\\Microsoft\\Edge SxS\\Application']
40
+ directories = ['\\Microsoft\\Edge Beta\\Application',
41
+ '\\Microsoft\\Edge Dev\\Application',
42
+ '\\Microsoft\\Edge SxS\\Application']
41
43
  file = 'msedge.exe'
42
44
 
43
45
  directories.each do |dir|
@@ -52,6 +54,7 @@ module Webdrivers
52
54
  def mac_location
53
55
  directories = ['', File.expand_path('~')]
54
56
  files = ['/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
57
+ '/Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta',
55
58
  '/Applications/Microsoft Edge Dev.app/Contents/MacOS/Microsoft Edge Dev',
56
59
  '/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary']
57
60
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Webdrivers
4
- VERSION = '4.1.3'
4
+ VERSION = '4.2.0'
5
5
  end
@@ -1,5 +1,5 @@
1
- $downloadLink = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.7.0/jruby-dist-9.2.7.0-bin.zip"
2
- $zipPath = "c:\jruby-dist-9.2.7.0-bin.zip"
1
+ $downloadLink = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.9.0/jruby-dist-9.2.9.0-bin.zip"
2
+ $zipPath = "c:\jruby-dist-9.2.9.0-bin.zip"
3
3
 
4
4
  Write-Host "Installing $($env:RUBY_VERSION)" -ForegroundColor cyan
5
5
  appveyor DownloadFile "$($downloadLink)" -FileName "$($zipPath)"
@@ -1,17 +1,11 @@
1
- $downloadDevLink = "https://go.microsoft.com/fwlink/?linkid=2069324&Channel=Dev&language=en-us&Consent=0&IID=85213fc4-6a13-57ae-9082-72910982ede8"
2
- $downloadCanaryLink = "https://go.microsoft.com/fwlink/?linkid=2084706&Channel=Canary&language=en-us&Consent=0&IID=85213fc4-6a13-57ae-9082-72910982ede8"
3
- $devSetup = "C:\MicrosoftEdgeSetupDev.exe"
4
- $canarySetup = "C:\MicrosoftEdgeSetupCanary.exe"
1
+ $downloadBetaLink = "https://go.microsoft.com/fwlink/?linkid=2069324&Channel=Dev&language=en-us&Consent=0&IID=85213fc4-6a13-57ae-9082-72910982ede8"
2
+ $betaSetup = "C:\MicrosoftEdgeSetupBeta.exe"
5
3
 
6
4
  # Note: We're purposely skipping the -Wait flag in Start-Process.
7
5
  # This is because Edge auto-launches after the setup is done and
8
6
  # Start-Process continues to indefinitely wait on that process.
9
- Write-Host "Installing Microsoft Edge (Dev)..." -ForegroundColor cyan
10
- Invoke-WebRequest $downloadDevLink -OutFile $devSetup # Download Dev
11
- Start-Process $devSetup # Run installer
12
- Write-Host "Microsoft Edge (Dev) installed.`n" -ForegroundColor green
13
-
14
- Write-Host "Installing Microsoft Edge (Canary)..." -ForegroundColor cyan
15
- Invoke-WebRequest $downloadCanaryLink -OutFile $canarySetup # Download Canary
16
- Start-Process $canarySetup # Run installer
17
- Write-Host "Microsoft Edge (Canary) installed.`n" -ForegroundColor green
7
+ Write-Host "Downloading Microsoft Edge (Beta)..." -ForegroundColor cyan
8
+ Invoke-WebRequest $downloadBetaLink -OutFile $betaSetup
9
+ Write-Host "Installing..." -ForegroundColor cyan
10
+ Start-Process $betaSetup
11
+ Write-Host "Microsoft Edge (Beta) installed.`n" -ForegroundColor green
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_development_dependency 'ffi', '~> 1.0' # For selenium-webdriver on Windows
23
23
  s.add_development_dependency 'irb'
24
24
  s.add_development_dependency 'rake', '~> 12.0'
25
+ s.add_development_dependency 'reline', '0.0.7' # Required by irb, and newer versions don't work on JRuby
25
26
  s.add_development_dependency 'rspec', '~> 3.0'
26
27
  s.add_development_dependency 'rubocop', '~>0.66'
27
28
  s.add_development_dependency 'rubocop-performance'
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.1.3
4
+ version: 4.2.0
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: 2019-10-07 00:00:00.000000000 Z
13
+ date: 2019-12-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi
@@ -54,6 +54,20 @@ dependencies:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: '12.0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: reline
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '='
62
+ - !ruby/object:Gem::Version
63
+ version: 0.0.7
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 0.0.7
57
71
  - !ruby/object:Gem::Dependency
58
72
  name: rspec
59
73
  requirement: !ruby/object:Gem::Requirement
@@ -241,8 +255,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
255
  - !ruby/object:Gem::Version
242
256
  version: '0'
243
257
  requirements: []
244
- rubygems_version: 3.0.4
258
+ rubygems_version: 3.1.2
245
259
  signing_key:
246
260
  specification_version: 4
247
261
  summary: Easy download and use of browser drivers.
248
- test_files: []
262
+ test_files:
263
+ - spec/spec_helper.rb
264
+ - spec/webdrivers/chrome_finder_spec.rb
265
+ - spec/webdrivers/chromedriver_spec.rb
266
+ - spec/webdrivers/edge_finder_spec.rb
267
+ - spec/webdrivers/edgedriver_spec.rb
268
+ - spec/webdrivers/geckodriver_spec.rb
269
+ - spec/webdrivers/i_edriver_spec.rb
270
+ - spec/webdrivers/webdrivers_spec.rb
271
+ - spec/webdrivers_proxy_support_spec.rb