From 4b51bc00cda70d3c118401a74f1704df38c947a3 Mon Sep 17 00:00:00 2001
From: Ralph Amissah <ralph@amissah.com>
Date: Tue, 1 Feb 2011 09:48:30 -0500
Subject: v3 introduced as development branch, invoked using "sisu --v3
 [instructions]

---
 bin/sisu_webrick | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'bin/sisu_webrick')

diff --git a/bin/sisu_webrick b/bin/sisu_webrick
index e0d6e5ca..cde38193 100644
--- a/bin/sisu_webrick
+++ b/bin/sisu_webrick
@@ -5,7 +5,18 @@ raise "Please, use Ruby1.8 (1.8.4 or later), current Ruby #{RUBY_VERSION}" if RU
 #raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4'
 $VERBOSE=nil
 argv=$*
-SiSU_version_dir=(argv.inspect=~/--v1/) ? 'v1' : 'v2'
+SiSU_version_dir=case argv.inspect
+when /--v1/
+  'v1'
+when /--v2/
+  'v2'
+when /--v3/
+  'v3'
+when /--dev/
+  'v3'
+else
+  'v2'
+end
 SiSU_lib="sisu/#{SiSU_version_dir}"
 require "#{SiSU_lib}/webrick"
 __END__
-- 
cgit v1.2.3