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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ce625ee9e0c18415c10cbf691199d115b791da8
4
- data.tar.gz: fa8bf5c8fd1c61f882bb2ac9c5fcddcba245d980
3
+ metadata.gz: 4919d1e019a14095c9ade915f3761e3b92a5eb7f
4
+ data.tar.gz: 20d7a83b8a5ff25ddfcaf32d66a4d21fdafaba06
5
5
  SHA512:
6
- metadata.gz: e71de7fefd3e67a37bb27d116da24368f594547e97e77b3127be67644f32d59267b9a96c948b7e706d430b21a3c9e218c8d3f2be80816356088f7372077199bc
7
- data.tar.gz: 62c74deabb0390a30c6e5fff378f53b613f0c1d5e050ad03ef34be1cd8ee5718814de77f1ca906b303fbd7b5584e7129c2fd5660f8e12d363b4c1144a60a88e8
6
+ metadata.gz: ec9c58c4c2dda1c59622c31a709ff92ca210e21694dbce986dda9cc7244e0040d1c601580c9bdaf3c6ade79175480b502cf29b91f6fd1f804d612ad604b82b86
7
+ data.tar.gz: 6fe8ad2455ffff7c050966e1102df95e53cbf35a00e28fe02034d34a3e0ded9ca85cf6becaa19df3d9277fed869ef2dd7de3fc4ac0071b5dc70b10d1ce89ded5
@@ -8,7 +8,7 @@ require 'rubygems/package'
8
8
 
9
9
  module Geckodriver
10
10
  class Helper
11
- DRIVER_VERSION = "v0.20.1".freeze
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
- if platform == 'win'
38
+ case file
39
+ when /\.zip$/
39
40
  unzip(file)
40
- else
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
 
@@ -1,5 +1,5 @@
1
1
  module Geckodriver
2
2
  class Helper
3
- VERSION = '0.20.2'
3
+ VERSION = '0.21.0'
4
4
  end
5
5
  end
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.20.2
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-05-16 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec