webdrivers 3.5.0 → 3.5.1

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
- SHA256:
3
- metadata.gz: ddc5e44a53b52ce88415b480985d2311a80f05503458781ac7e7304d3a18e604
4
- data.tar.gz: '091a196ecafe8884afb8aa622af317f870a6863632af1d7eba496fdb1c4bf312'
2
+ SHA1:
3
+ metadata.gz: b7acac106626b421cdff5ca82e6f78085dd9e0f6
4
+ data.tar.gz: 5fb8a3743d30d2f62862cf1c14ced6088f3c1220
5
5
  SHA512:
6
- metadata.gz: bbe539d47bdc43515eeeedb2a31f098255498f7d1fa2506587fad44ec44fd703aab8566693eea35833de3f60f954a110532dbc45d579a574f8aeed3f813830dc
7
- data.tar.gz: ff60fc0f3367ea39306625cffc766066528f97fefede0bb9bed2c6097306000b2a50ab38b2865c7eef07ba36088883ffab6c6d590338a3acfabd0c7f02d564c1
6
+ metadata.gz: 36aef26a148a4d035b174047dbf2952cedc2e2af0d4919704cf9b1353f2863844ca2125058b95e625e2705bd865e99db23443a57b325ba54b2d3a09342bca992
7
+ data.tar.gz: c52446fdd150dae18b01d90eb12299bd06b8baecec2f55fa25d71c142d3e780eeb8c356ffa7f4f09a2baf9ad877a09dbaa3403f3ce344d1fc33e3e7b91ccebad
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ### 3.5.1 (2018-12-16)
2
+
1
3
  ### 3.5.0 (2018-12-15)
2
4
 
3
5
  ### 3.5.0.beta1 (2018-12-15)
@@ -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
- when Net::HTTPSuccess then
102
- response.body
103
- when Net::HTTPRedirection
104
- location = response['location']
105
- Webdrivers.logger.debug "Redirected to #{location}"
106
- get(location, limit - 1)
107
- else
108
- response.value
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 "Site Not Available: #{base_url}"
139
+ rescue StandardError => ex
140
+ Webdrivers.logger.debug ex.inspect
140
141
  false
141
142
  end
142
143
 
143
144
  def platform
144
- cfg = RbConfig::CONFIG
145
- case cfg['host_os']
146
- when /linux/
147
- cfg['host_cpu'] =~ /x86_64|amd64/ ? "linux64" : "linux32"
148
- when /darwin/
149
- "mac"
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
- latest_version == current_version && File.exists?(binary)
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.0"
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.0
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.7.6
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.