aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2011-10-06 20:32:04 +0200
committerMiquel Sabaté <mikisabate@gmail.com>2011-10-06 20:32:04 +0200
commit7cd33c33d5c71abc77fdd765fb6bcc490b2e1e52 (patch)
tree9377290351788dec73ef6e584bdacf6a336681cf
parent30ce16e20a12deef3ee97003694f6ae505936080 (diff)
downloaddotfiles-7cd33c33d5c71abc77fdd765fb6bcc490b2e1e52.tar.gz
dotfiles-7cd33c33d5c71abc77fdd765fb6bcc490b2e1e52.zip
Check for the wirble gem before installing
-rw-r--r--install.rb8
1 files changed, 8 insertions, 0 deletions
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'