selenium-webdriver 2.22.1 → 2.22.2.rc1
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.
data/CHANGES
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
2.22.
|
2
|
-
|
1
|
+
2.22.2 (2012-06-05)
|
2
|
+
===================
|
3
|
+
|
4
|
+
* Improve method for determining the local IP (#3987).
|
5
|
+
|
6
|
+
2.22.1 (2012-06-01)
|
7
|
+
===================
|
3
8
|
|
4
9
|
* Fix for 1.8.7 behaviour of Socket.getaddrinfo.
|
5
10
|
* Automatically reap Firefox profile on exit, not just in #quit.
|
@@ -150,7 +150,17 @@ module Selenium
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def ip
|
153
|
-
|
153
|
+
orig = Socket.do_not_reverse_lookup
|
154
|
+
Socket.do_not_reverse_lookup = true
|
155
|
+
|
156
|
+
begin
|
157
|
+
UDPSocket.open do |s|
|
158
|
+
s.connect '8.8.8.8', 53
|
159
|
+
return s.addr.last
|
160
|
+
end
|
161
|
+
ensure
|
162
|
+
Socket.do_not_reverse_lookup = orig
|
163
|
+
end
|
154
164
|
end
|
155
165
|
|
156
166
|
def interfaces
|
@@ -20,7 +20,14 @@ module Selenium
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.free?(port)
|
23
|
-
Platform.interfaces.each
|
23
|
+
Platform.interfaces.each do |host|
|
24
|
+
begin
|
25
|
+
TCPServer.new(host, port).close
|
26
|
+
rescue Errno::EADDRNOTAVAIL
|
27
|
+
$stderr.puts "could not bind to #{host}:#{port}" if $DEBUG
|
28
|
+
# ignored - some machines appear unable to bind to e.g. their local IP
|
29
|
+
end
|
30
|
+
end
|
24
31
|
|
25
32
|
true
|
26
33
|
rescue SocketError, Errno::EADDRINUSE
|
Binary file
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 2.22.
|
4
|
+
prerelease: 7
|
5
|
+
version: 2.22.2.rc1
|
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-06-
|
13
|
+
date: 2012-06-05 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -250,9 +250,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
250
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
251
|
none: false
|
252
252
|
requirements:
|
253
|
-
- - "
|
253
|
+
- - ">"
|
254
254
|
- !ruby/object:Gem::Version
|
255
|
-
version:
|
255
|
+
version: 1.3.1
|
256
256
|
requirements: []
|
257
257
|
|
258
258
|
rubyforge_project:
|