blackwinter / brice

Extra cool IRb goodness for the masses.

Home Page:http://blackwinter.github.io/brice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors in IRB (ruby-1.9.3p0+rvm)

elado opened this issue · comments

I did:

gem install brice

added

require 'rubygems'
require 'brice/init'

to .irbrc

Executed irb, got:

LoadError: cannot load such file -- added_methods [/Users/Elad/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require']
LoadError: cannot load such file -- backports [/Users/Elad/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require']
LoadError: cannot load such file -- what_methods [/Users/Elad/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require']

Syntax coloring works.

well, it just tells you that some libraries for additional functionality are missing. they aren't required though, everything else still works. you can either install them as well or exclude them from the list of libraries to be loaded -- so instead of require 'brice/init' you would write:

require 'brice'

Brice.init { |config|
  config.exclude(:added_methods)
  config.libs = %w[whatever you want]
}

please be aware, though, that the default config is carefully crafted and certain features may depend on others. if you have any suggestions just let me know.

hope that helps. have fun!

in case anyone else gets here, the real response is:

gem install added_methods backports what_methods

Took me a bit to realize it meant a library that could be installed :)