From 7cd33c33d5c71abc77fdd765fb6bcc490b2e1e52 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Thu, 6 Oct 2011 20:32:04 +0200 Subject: Check for the wirble gem before installing --- install.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'install.rb') diff --git a/install.rb b/install.rb index 1f90092..1cb8a60 100644 --- a/install.rb +++ b/install.rb @@ -4,6 +4,14 @@ #!/usr/bin/env ruby +# Check for the wirble gem since the .irbrc file requires +# this gem to successfully work. +begin + require 'wirble' +rescue LoadError + puts 'The .irbrc file requires wirble and you haven\'t this gem installed!' +end + # You can change your home directory ;) home = ARGV[0] home ||= '$HOME' -- cgit v1.2.3