webdrivers 4.1.2 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/webdrivers/common.rb +0 -1
- data/lib/webdrivers/system.rb +10 -2
- data/lib/webdrivers/version.rb +1 -1
- data/webdrivers.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecc36e5f9d3969cfc74f760b76c503aee82245ef3d38e4abf185927b9c4a4de4
|
4
|
+
data.tar.gz: 0d20abe48637e92ae714e24d50ea7ef51feaeb1dc018fb69ae145f766e799344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ee84671cb4ea6c45cfc4f12260c43da13827558f7c91653081bdc01f51ca750145bfe9e42908e5a907a60bd75d92698cd8f1cee3a81cd80094946d7841a680
|
7
|
+
data.tar.gz: 2a047608c7d39f7790fadcb5aa1deb91abe8daf6c1132059f9f61c03bcffe39d8983e9aa8c65b7bad6abe2af71e3f4031317ae92331497e807c44c294356eae5
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 4.1.3 (2019-10-07)
|
2
|
+
* 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
|
+
* Fix a bug where the file deletion confirmation was printed even when there were no files to delete.
|
4
|
+
|
1
5
|
### 4.1.2 (2019-07-29)
|
2
6
|
* Fix a bug related to raising `BrowserNotFound`.
|
3
7
|
|
data/lib/webdrivers/common.rb
CHANGED
data/lib/webdrivers/system.rb
CHANGED
@@ -4,6 +4,12 @@ require 'rubygems/package'
|
|
4
4
|
require 'zip'
|
5
5
|
require 'English'
|
6
6
|
|
7
|
+
# validate zip entry sizes to avoid zip bombs
|
8
|
+
# see https://github.com/rubyzip/rubyzip#size-validation
|
9
|
+
# and https://github.com/rubyzip/rubyzip/pull/403 for further details
|
10
|
+
# this will be the default in rubyzip 2.0+
|
11
|
+
Zip.validate_entry_sizes = true
|
12
|
+
|
7
13
|
module Webdrivers
|
8
14
|
#
|
9
15
|
# @api private
|
@@ -14,11 +20,13 @@ module Webdrivers
|
|
14
20
|
max_attempts = 3
|
15
21
|
attempts_made = 0
|
16
22
|
delay = 0.5
|
17
|
-
Webdrivers.logger.debug "Deleting #{file}"
|
18
23
|
|
19
24
|
begin
|
20
25
|
attempts_made += 1
|
21
|
-
|
26
|
+
if File.exist? file
|
27
|
+
Webdrivers.logger.debug "Deleting #{file}"
|
28
|
+
File.delete file
|
29
|
+
end
|
22
30
|
rescue Errno::EACCES # Solves an intermittent file locking issue on Windows
|
23
31
|
sleep(delay)
|
24
32
|
retry if File.exist?(file) && attempts_made <= max_attempts
|
data/lib/webdrivers/version.rb
CHANGED
data/webdrivers.gemspec
CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.add_development_dependency 'simplecov', '~>0.16'
|
30
30
|
|
31
31
|
s.add_runtime_dependency 'nokogiri', '~> 1.6'
|
32
|
-
s.add_runtime_dependency 'rubyzip', '
|
32
|
+
s.add_runtime_dependency 'rubyzip', '>= 1.3.0'
|
33
33
|
s.add_runtime_dependency 'selenium-webdriver', '>= 3.0', '< 4.0'
|
34
34
|
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.1.
|
4
|
+
version: 4.1.3
|
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-07
|
13
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -142,16 +142,16 @@ dependencies:
|
|
142
142
|
name: rubyzip
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- - "
|
145
|
+
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
147
|
+
version: 1.3.0
|
148
148
|
type: :runtime
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - "
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: 1.3.0
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: selenium-webdriver
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
- !ruby/object:Gem::Version
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
|
-
rubygems_version: 3.0.
|
244
|
+
rubygems_version: 3.0.4
|
245
245
|
signing_key:
|
246
246
|
specification_version: 4
|
247
247
|
summary: Easy download and use of browser drivers.
|