ikm-chromedriver-helper 0.0.11 → 0.0.12

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
  SHA1:
3
- metadata.gz: 59f10284be5ffbe0706170f875fc2888e88acffb
4
- data.tar.gz: 4cb36e09b86af3acf15c840dc1076eac6bb9b95c
3
+ metadata.gz: 2869e37af7da90703cca879f0e184166b99befe0
4
+ data.tar.gz: 86711c06991c1582bfd51cd777c5aa42bf05395a
5
5
  SHA512:
6
- metadata.gz: 367c089713bf8b76c4b38b20ae4ffd5d21c7c87a55ea7f410b5e18c489a6addc439918e350b1caba2fec49a3b53a5aa832e141af59144519c5794a8ceee175f1
7
- data.tar.gz: 363c71c828de190d7108d433c2a0dab4034a05427f7049bd9b0f436d6175a092cdf65105d469277069f63ce21e6b05f55b5b7ab30db7570de652c68f51c950b3
6
+ metadata.gz: c53053fabfd02251b08ac395d9cdc08e26a0b31c73d6746285034a229334a47aedba3ab25956a7e08fc3c2f0403282734a0d05182bdb12de4a3861449c790c3e
7
+ data.tar.gz: 9ac9f6a00d0c79ffe8ee3aee28e089cd0373b63d9dd1a82a2fafe4f32ad903ef9b122f950c6e537665c21a41cac0ef06d9440102e0d75802d288e5c91f72e5c2
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency "nokogiri"
22
22
  s.add_runtime_dependency "version_sorter"
23
23
  s.add_runtime_dependency "download"
24
+ s.add_runtime_dependency "rubyzip"
24
25
  end
@@ -3,6 +3,7 @@ require "chromedriver/helper/google_code_parser"
3
3
  require 'fileutils'
4
4
  require 'rbconfig'
5
5
  require 'download'
6
+ require 'zip'
6
7
 
7
8
  module Chromedriver
8
9
  class Helper
@@ -20,7 +21,7 @@ module Chromedriver
20
21
  system "rm #{filename}" if File.exists? filename
21
22
  Download.file url, filename
22
23
  raise "Could not download #{url}" unless File.exists? filename
23
- system "unzip -o #{filename}"
24
+ unzip filename
24
25
  end
25
26
  raise "Could not unzip #{filename} to get #{binary_path}" unless File.exists? binary_path
26
27
  end
@@ -63,5 +64,14 @@ module Chromedriver
63
64
  end
64
65
  end
65
66
 
67
+ private
68
+
69
+ def unzip filename
70
+ Zip::File.open(filename) do |zip_file|
71
+ zip_file.each do |entry|
72
+ entry.extract { true }
73
+ end
74
+ end
75
+ end
66
76
  end
67
77
  end
@@ -1,5 +1,5 @@
1
1
  module Chromedriver
2
2
  class Helper
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ikm-chromedriver-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubyzip
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: Easy installation and use of chromedriver, the Chromium project's selenium
84
98
  webdriver adapter. Forked from chromedriver-helper.
85
99
  email: