selenium-webdriver 2.22.0 → 2.22.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.
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 2.22.1 (???)
2
+ ============
3
+
4
+ * Fix for 1.8.7 behaviour of Socket.getaddrinfo.
5
+ * Automatically reap Firefox profile on exit, not just in #quit.
6
+
1
7
  2.22.0 (2012-05-29)
2
8
  ===================
3
9
 
@@ -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 => Selenium::WebDriver::Platform.engine,
162
- :os => Selenium::WebDriver::Platform.os,
163
- :ruby187? => Selenium::WebDriver::Platform.ruby187?,
164
- :ruby19? => Selenium::WebDriver::Platform.ruby19?,
165
- :jruby? => Selenium::WebDriver::Platform.jruby?,
166
- :windows? => Selenium::WebDriver::Platform.windows?,
167
- :home => Selenium::WebDriver::Platform.home,
168
- :bitsize => Selenium::WebDriver::Platform.bitsize,
169
- :localhost => Selenium::WebDriver::Platform.localhost,
170
- :ip => Selenium::WebDriver::Platform.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 = Socket.getaddrinfo("localhost", port).map { |e| e[2] }
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
@@ -54,7 +54,9 @@ module Selenium
54
54
 
55
55
  @profile.add_webdriver_extension
56
56
  @profile.port = @port
57
+
57
58
  @profile_dir = @profile.layout_on_disk
59
+ FileReaper << @profile_dir
58
60
  end
59
61
 
60
62
  def start
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.0
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-05-30 00:00:00 +02:00
13
+ date: 2012-06-01 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency