selenium-webdriver 2.22.0 → 2.22.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES
CHANGED
@@ -153,19 +153,27 @@ module Selenium
|
|
153
153
|
IPSocket.getaddress(Socket.gethostname)
|
154
154
|
end
|
155
155
|
|
156
|
+
def interfaces
|
157
|
+
interfaces = Socket.getaddrinfo("localhost", 8080).map { |e| e[3] }
|
158
|
+
interfaces += ["0.0.0.0", Platform.ip]
|
159
|
+
|
160
|
+
interfaces.uniq
|
161
|
+
end
|
162
|
+
|
156
163
|
end # Platform
|
157
164
|
end # WebDriver
|
158
165
|
end # Selenium
|
159
166
|
|
160
167
|
if __FILE__ == $0
|
161
|
-
p :engine
|
162
|
-
:os
|
163
|
-
:ruby187?
|
164
|
-
:ruby19?
|
165
|
-
:jruby?
|
166
|
-
:windows?
|
167
|
-
:home
|
168
|
-
:bitsize
|
169
|
-
:localhost
|
170
|
-
:ip
|
168
|
+
p :engine => Selenium::WebDriver::Platform.engine,
|
169
|
+
:os => Selenium::WebDriver::Platform.os,
|
170
|
+
:ruby187? => Selenium::WebDriver::Platform.ruby187?,
|
171
|
+
:ruby19? => Selenium::WebDriver::Platform.ruby19?,
|
172
|
+
:jruby? => Selenium::WebDriver::Platform.jruby?,
|
173
|
+
:windows? => Selenium::WebDriver::Platform.windows?,
|
174
|
+
:home => Selenium::WebDriver::Platform.home,
|
175
|
+
:bitsize => Selenium::WebDriver::Platform.bitsize,
|
176
|
+
:localhost => Selenium::WebDriver::Platform.localhost,
|
177
|
+
:ip => Selenium::WebDriver::Platform.ip,
|
178
|
+
:interfaces => Selenium::WebDriver::Platform.interfaces
|
171
179
|
end
|
@@ -20,9 +20,7 @@ module Selenium
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.free?(port)
|
23
|
-
interfaces
|
24
|
-
interfaces += ["0.0.0.0", Platform.ip]
|
25
|
-
interfaces.each { |address| TCPServer.new(address, port).close }
|
23
|
+
Platform.interfaces.each { |host| TCPServer.new(host, port).close }
|
26
24
|
|
27
25
|
true
|
28
26
|
rescue SocketError, Errno::EADDRINUSE
|
Binary file
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: selenium-webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.22.
|
5
|
+
version: 2.22.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jari Bakken
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-06-01 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|