Skip to content

Instantly share code, notes, and snippets.

@lrowe
Created April 4, 2012 17:05
Show Gist options
  • Save lrowe/2303879 to your computer and use it in GitHub Desktop.
Save lrowe/2303879 to your computer and use it in GitHub Desktop.
[PATCH] Update selenium server version to 2.20.0. Tweak formula.
From 753e7a27d4650199c75e1476b821ac998213a797 Mon Sep 17 00:00:00 2001
From: Laurence Rowe <laurence@lrowe.co.uk>
Date: Wed, 4 Apr 2012 17:06:56 +0100
Subject: [PATCH] Update version to 2.20.0. Tweak formula.
* Use #{version} instead of a hardcoded version in the caveats.
* Use a sha1 checksum instead of md5 as it is listed on google code.
---
Library/Formula/selenium-server-standalone.rb | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Library/Formula/selenium-server-standalone.rb b/Library/Formula/selenium-server-standalone.rb
index cb585f4..5a53c00 100644
--- a/Library/Formula/selenium-server-standalone.rb
+++ b/Library/Formula/selenium-server-standalone.rb
@@ -1,12 +1,12 @@
require 'formula'
class SeleniumServerStandalone < Formula
- url 'http://selenium.googlecode.com/files/selenium-server-standalone-2.16.1.jar'
+ url 'http://selenium.googlecode.com/files/selenium-server-standalone-2.20.0.jar'
homepage 'http://seleniumhq.org/'
- md5 'ce6e50d8c9114ffea5f712b93e088e5f'
+ sha1 '8d387cdd61e3df9134e59eec6867a0f6a7e1933d'
def install
- prefix.install "selenium-server-standalone-2.16.1.jar"
+ prefix.install "selenium-server-standalone-#{version}.jar"
plist_path.write startup_plist
plist_path.chmod 0644
end
@@ -24,7 +24,7 @@ class SeleniumServerStandalone < Formula
launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
Or start it manually with:
- java -jar #{prefix}/selenium-server-standalone-2.16.1.jar -p 4444
+ java -jar #{prefix}/selenium-server-standalone-#{version}.jar -p 4444
EOS
end
@@ -44,7 +44,7 @@ class SeleniumServerStandalone < Formula
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
- <string>#{prefix}/selenium-server-standalone-2.16.1.jar</string>
+ <string>#{prefix}/selenium-server-standalone-#{version}.jar</string>
<string>-port</string>
<string>4444</string>
</array>
--
1.7.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment