bin/console in glob-0.2.0 vs bin/console in glob-0.2.1
- old
+ new
@@ -5,11 +5,12 @@
require "glob"
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
-# (If you use this, don't forget to add pry to your Gemfile!)
-# require "pry"
-# Pry.start
-
-require "irb"
-IRB.start(__FILE__)
+begin
+ require "pry"
+ Pry.start
+rescue LoadError
+ require "irb"
+ IRB.start(__FILE__)
+end