3 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
5 # See LICENSE.txt for permissions.
12 path_to_gem = File.join("redist", "session.gem")
14 Gem::Installer.new(path_to_gem).install
15 rescue Errno::EACCES => ex
17 puts "*****************************************************************"
18 puts "Unable to install Gem 'Session'."
19 puts "Reason: #{ex.message}"
22 puts " gem -Li #{path_to_gem}"
24 puts "with the appropriate admin privileges."
25 puts "*****************************************************************"
36 puts "Required Gem 'Session' missing."
37 puts "We can attempt to install from the RubyGems Distribution,"
38 puts "but installation may require admin privileges on your system."
40 print "Install now from RubyGems distribution? [Yn]"
42 if(answer =~ /^y/i || answer =~ /^[^a-zA-Z0-9]$/) then
45 puts "Retry running the functional tests."
48 puts "Test cancelled...quitting"