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 +4 -4
- data/ikm-chromedriver-helper.gemspec +1 -0
- data/lib/chromedriver/helper.rb +11 -1
- data/lib/chromedriver/helper/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2869e37af7da90703cca879f0e184166b99befe0
|
4
|
+
data.tar.gz: 86711c06991c1582bfd51cd777c5aa42bf05395a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c53053fabfd02251b08ac395d9cdc08e26a0b31c73d6746285034a229334a47aedba3ab25956a7e08fc3c2f0403282734a0d05182bdb12de4a3861449c790c3e
|
7
|
+
data.tar.gz: 9ac9f6a00d0c79ffe8ee3aee28e089cd0373b63d9dd1a82a2fafe4f32ad903ef9b122f950c6e537665c21a41cac0ef06d9440102e0d75802d288e5c91f72e5c2
|
data/lib/chromedriver/helper.rb
CHANGED
@@ -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
|
-
|
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
|
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.
|
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:
|