[rb] fix parsing server versions to be able to get the latest
@@ -113,8 +113,8 @@ module Selenium
require 'rexml/document'
net_http.start('selenium-release.storage.googleapis.com') do |http|
REXML::Document.new(http.get('/').body).root.get_elements('//Contents/Key').map do |e|
- e.text[/selenium-server-standalone-(\d+\.\d+\.\d+)\.jar/, 1]
- end.compact.max
+ Gem::Version.new e.text[/selenium-server-standalone-(\d+\.\d+\.\d+)\.jar/, 1]
+ end.compact.max.version
end
end
