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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cd7ebf2f29727575042cf40f562078368874a966f32185894fccc870846eae4
4
- data.tar.gz: b11fabe9de1ba71cf72eac2cd3144a2564aa898a730a44a75195b380ee87d2d5
3
+ metadata.gz: ecc36e5f9d3969cfc74f760b76c503aee82245ef3d38e4abf185927b9c4a4de4
4
+ data.tar.gz: 0d20abe48637e92ae714e24d50ea7ef51feaeb1dc018fb69ae145f766e799344
5
5
  SHA512:
6
- metadata.gz: edd6426c60e37b35655b9170321bd7c66d5fb1992ce1f2e9038a7fb75793b4d2270792c876b7a165ce7411330ddc35b63c33e274a9a836e1e4d073c4bf80887d
7
- data.tar.gz: 356ec146930fcd79c1ad9a8b6fe9c0d0f78552a5ad90d07809723e4c9c3ce1b3328824e8583e8cae732b3a1c47c3e08697a72af707ab09fbb0f88ed926f669d1
6
+ metadata.gz: 69ee84671cb4ea6c45cfc4f12260c43da13827558f7c91653081bdc01f51ca750145bfe9e42908e5a907a60bd75d92698cd8f1cee3a81cd80094946d7841a680
7
+ data.tar.gz: 2a047608c7d39f7790fadcb5aa1deb91abe8daf6c1132059f9f61c03bcffe39d8983e9aa8c65b7bad6abe2af71e3f4031317ae92331497e807c44c294356eae5
@@ -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
 
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rubygems/package'
4
- require 'zip'
5
4
  require 'webdrivers/logger'
6
5
  require 'webdrivers/network'
7
6
  require 'webdrivers/system'
@@ -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
- File.delete file if File.exist? file
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Webdrivers
4
- VERSION = '4.1.2'
4
+ VERSION = '4.1.3'
5
5
  end
@@ -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', '~> 1.0'
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.2
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-29 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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.3
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.