Thorfile in selenium-rc-2.2.1 vs Thorfile in selenium-rc-2.2.4
- old
+ new
@@ -1,27 +1,19 @@
require "zip/zip"
class Joe < Thor
- alias_method :joe_build, :build
+ desc "build", "builds the selenium-rc gem"
def build
fetch_jar
- joe_build
end
def fetch_jar
- url = "http://selenium.googlecode.com/files/selenium-server-standalone-2.0a2.jar"
+ url = "http://selenium.googlecode.com/files/selenium-server-standalone-2.0a4.jar"
file = File.join("tmp", File.basename(url))
FileUtils.mkdir_p("tmp")
system "wget #{url} -O #{file}" unless File.exist?(file)
FileUtils.mv("#{file}", "vendor/selenium-server.jar")
-
-# Zip::ZipFile.open(file) do |zipfile|
-# jar_file_entry = zipfile.entries.find {|file| file.name =~ /selenium-server-standalone-2\.0a1\.jar$/}
-# destination = "vendor/selenium-server.jar"
-# FileUtils.rm_rf(destination)
-# zipfile.extract(jar_file_entry, destination)
-# end
end
end