webdrivers 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +2 -0
- data/lib/webdrivers/common.rb +18 -19
- data/webdrivers.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b7acac106626b421cdff5ca82e6f78085dd9e0f6
|
4
|
+
data.tar.gz: 5fb8a3743d30d2f62862cf1c14ced6088f3c1220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36aef26a148a4d035b174047dbf2952cedc2e2af0d4919704cf9b1353f2863844ca2125058b95e625e2705bd865e99db23443a57b325ba54b2d3a09342bca992
|
7
|
+
data.tar.gz: c52446fdd150dae18b01d90eb12299bd06b8baecec2f55fa25d71c142d3e780eeb8c356ffa7f4f09a2baf9ad877a09dbaa3403f3ce344d1fc33e3e7b91ccebad
|
data/CHANGELOG.md
CHANGED
data/lib/webdrivers/common.rb
CHANGED
@@ -96,16 +96,17 @@ module Webdrivers
|
|
96
96
|
raise StandardError, 'Too many HTTP redirects' if limit == 0
|
97
97
|
|
98
98
|
response = http.get_response(URI(url))
|
99
|
+
Webdrivers.logger.debug "Get response: #{response.inspect}"
|
99
100
|
|
100
101
|
case response
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
102
|
+
when Net::HTTPSuccess
|
103
|
+
response.body
|
104
|
+
when Net::HTTPRedirection
|
105
|
+
location = response['location']
|
106
|
+
Webdrivers.logger.debug "Redirected to #{location}"
|
107
|
+
get(location, limit - 1)
|
108
|
+
else
|
109
|
+
response.value
|
109
110
|
end
|
110
111
|
end
|
111
112
|
|
@@ -135,20 +136,18 @@ module Webdrivers
|
|
135
136
|
get(base_url)
|
136
137
|
Webdrivers.logger.debug "Found Site: #{base_url}"
|
137
138
|
true
|
138
|
-
rescue StandardError
|
139
|
-
Webdrivers.logger.debug
|
139
|
+
rescue StandardError => ex
|
140
|
+
Webdrivers.logger.debug ex.inspect
|
140
141
|
false
|
141
142
|
end
|
142
143
|
|
143
144
|
def platform
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
else
|
151
|
-
"win"
|
145
|
+
if Selenium::WebDriver::Platform.linux?
|
146
|
+
"linux#{Selenium::WebDriver::Platform.bitsize}"
|
147
|
+
elsif Selenium::WebDriver::Platform.mac?
|
148
|
+
'mac'
|
149
|
+
else
|
150
|
+
'win'
|
152
151
|
end
|
153
152
|
end
|
154
153
|
|
@@ -194,7 +193,7 @@ module Webdrivers
|
|
194
193
|
|
195
194
|
# Already have latest version downloaded?
|
196
195
|
def correct_binary?
|
197
|
-
|
196
|
+
desired_version == current_version && File.exists?(binary)
|
198
197
|
end
|
199
198
|
|
200
199
|
def normalize(string)
|
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.5.
|
6
|
+
s.version = "3.5.1"
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdrivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.5.2.3
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Easy download and use of browser drivers.
|