aboutsummaryrefslogtreecommitdiff
path: root/install.rb
diff options
context:
space:
mode:
Diffstat (limited to 'install.rb')
-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'