From da254e4aab3b94fd7d51af9879089fd2a3e0d465 Mon Sep 17 00:00:00 2001 From: stve Date: Thu, 14 Jan 2016 21:45:08 -0500 Subject: [PATCH] add console script --- script/console | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 script/console diff --git a/script/console b/script/console new file mode 100755 index 0000000..b8f4810 --- /dev/null +++ b/script/console @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby +# Usage: script/console +# Starts an IRB console with this library loaded. + +require 'bundler/setup' +require 'irb' +require 'irb/completion' + +project_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) +$:.unshift project_lib unless $:.include?(project_lib) + +require 'instapaper' + +ARGV.clear +IRB.start