aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/templates/newgem/bin/console.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/bin/console.tt')
-rw-r--r--lib/bundler/templates/newgem/bin/console.tt14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/bin/console.tt b/lib/bundler/templates/newgem/bin/console.tt
new file mode 100644
index 0000000000..a27f82430f
--- /dev/null
+++ b/lib/bundler/templates/newgem/bin/console.tt
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+
+require "bundler/setup"
+require "<%= config[:namespaced_path] %>"
+
+# 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__)