A skeleton web application configured to use Sinatra and ActiveRecord

console: Disable color and autocomplete, silence history save errors

When running this as an unprivileged user to access a production
database, it will probably not be able to write to its home. No
need to freak out.

+16 -1
+2 -1
bin/console
··· 17 17 18 18 P=`dirname $0` 19 19 20 - bundle exec irb -I $P/.. -r $P/../lib/app.rb 20 + bundle exec irb -I $P/.. -r $P/../lib/irb_silence.rb -r $P/../lib/app.rb \ 21 + --nocolorize --noautocomplete
+14
lib/irb_silence.rb
··· 1 + require "irb/ext/save-history" 2 + 3 + module IRB 4 + module HistorySavingAbility 5 + alias_method :old_save_history, :save_history 6 + 7 + def save_history 8 + old_save_history 9 + 10 + rescue Errno::ENOENT 11 + # ignore write failure, we may be running as an unprivileged user 12 + end 13 + end 14 + end