webdrivers 3.2.1 → 3.2.2

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: 9d9e5fa3b0bb58f58355559ad96a2915d089aeea
4
- data.tar.gz: 9bed1f9723c15044589a1e514db681fa28190f47
3
+ metadata.gz: 045a38d81bc4018f1d0e5657b1b0ff6db93368fa
4
+ data.tar.gz: 5ecbe9421b324fbc07e15d76067c8f3a52c04dd7
5
5
  SHA512:
6
- metadata.gz: 22d871b657056542a63a7f8a336b2d2877a5426ea291ca23bb3c2d1fa01a9992015da95a49860276f7d563e079eb960ee7ead2f423df591bd646c92ab67c8086
7
- data.tar.gz: ac8b1ba73a0c7e037419d13ddb3d18d77179265584d907001a1e14736544863b3dab6b1a72626c1399f1a961696c2c60a27943138f0a93fd83653c37a74946bc
6
+ metadata.gz: ee7dea9c4e900564ef6f79b51f84f5b12c99492f322db317d70c869e7d6644eb06ab5f6bc1b9bdf661f8c687d7f4f2d3263a9af9655d618ac504f43ca1644534
7
+ data.tar.gz: 944f505b1f1eaac8382c2a6fcdd8de5115be3dd36511369f5004707a3b54232c0793606d0312defb373fc09b27814e54637e3068c47b89e577480c596f540424
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 3.2.2 (2017-11-20)
2
+
3
+ * Fixed bug in `#untargz_file` (thanks Jake Goulding)
4
+
1
5
  ### 3.2.1 (2017-09-06)
2
6
 
3
7
  * Fixed Proxy support so it actually works (thanks Cheezy)
@@ -98,12 +98,11 @@ module Webdrivers
98
98
  File.join install_dir, file_name
99
99
  end
100
100
 
101
- # TODO - specify what gets rescued
102
101
  def site_available?
103
102
  get(base_url)
104
103
  Webdrivers.logger.debug "Found Site: #{base_url}"
105
104
  true
106
- rescue
105
+ rescue StandardError
107
106
  Webdrivers.logger.debug "Site Not Available: #{base_url}"
108
107
  false
109
108
  end
@@ -140,12 +139,11 @@ module Webdrivers
140
139
 
141
140
  def untargz_file(filename)
142
141
  tar_extract = Gem::Package::TarReader.new(Zlib::GzipReader.open(filename))
143
- tar_extract.rewind
144
142
 
145
- ucf = File.open(file_name, "w+")
146
- tar_extract.each {|entry| ucf << entry.read}
147
- ucf.close
148
- File.basename ucf
143
+ File.open(file_name, "w+b") do |ucf|
144
+ tar_extract.each {|entry| ucf << entry.read}
145
+ File.basename ucf
146
+ end
149
147
  end
150
148
 
151
149
  def unzip_file(filename)
data/webdrivers.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "webdrivers"
6
- s.version = "3.2.1"
6
+ s.version = "3.2.2"
7
7
  s.authors = ["Titus Fortner"]
8
8
  s.email = ["titusfortner@gmail.com"]
9
9
  s.homepage = "https://github.com/titusfortner/webdrivers"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdrivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec