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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/webdrivers/common.rb +5 -7
- data/webdrivers.gemspec +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: 045a38d81bc4018f1d0e5657b1b0ff6db93368fa
|
4
|
+
data.tar.gz: 5ecbe9421b324fbc07e15d76067c8f3a52c04dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee7dea9c4e900564ef6f79b51f84f5b12c99492f322db317d70c869e7d6644eb06ab5f6bc1b9bdf661f8c687d7f4f2d3263a9af9655d618ac504f43ca1644534
|
7
|
+
data.tar.gz: 944f505b1f1eaac8382c2a6fcdd8de5115be3dd36511369f5004707a3b54232c0793606d0312defb373fc09b27814e54637e3068c47b89e577480c596f540424
|
data/CHANGELOG.md
CHANGED
data/lib/webdrivers/common.rb
CHANGED
@@ -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
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
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.
|
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.
|
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-
|
11
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|