geckodriver-helper 0.20.2 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/geckodriver/helper.rb +6 -3
- data/lib/geckodriver/helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4919d1e019a14095c9ade915f3761e3b92a5eb7f
|
4
|
+
data.tar.gz: 20d7a83b8a5ff25ddfcaf32d66a4d21fdafaba06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec9c58c4c2dda1c59622c31a709ff92ca210e21694dbce986dda9cc7244e0040d1c601580c9bdaf3c6ade79175480b502cf29b91f6fd1f804d612ad604b82b86
|
7
|
+
data.tar.gz: 6fe8ad2455ffff7c050966e1102df95e53cbf35a00e28fe02034d34a3e0ded9ca85cf6becaa19df3d9277fed869ef2dd7de3fc4ac0071b5dc70b10d1ce89ded5
|
data/lib/geckodriver/helper.rb
CHANGED
@@ -8,7 +8,7 @@ require 'rubygems/package'
|
|
8
8
|
|
9
9
|
module Geckodriver
|
10
10
|
class Helper
|
11
|
-
DRIVER_VERSION = "v0.
|
11
|
+
DRIVER_VERSION = "v0.21.0".freeze
|
12
12
|
|
13
13
|
def run *args
|
14
14
|
download
|
@@ -35,11 +35,14 @@ module Geckodriver
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def unpack_archive(file)
|
38
|
-
|
38
|
+
case file
|
39
|
+
when /\.zip$/
|
39
40
|
unzip(file)
|
40
|
-
|
41
|
+
when /\.tar\.gz$/
|
41
42
|
io = ungzip(file)
|
42
43
|
untar(io)
|
44
|
+
else
|
45
|
+
raise "Don't know how to unpack #{file}"
|
43
46
|
end
|
44
47
|
end
|
45
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geckodriver-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devico Solutions
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|