I want to customize my development environment with a few extra gems. I am using bundler with rails 3.0.x. I have those extra gems in my local system and i dont want to add them into my Gemfile. How can i by pass bundler and require these gems in my console which was opened using bundle exec ?
I found one way to do it, though it's a little hacky.
$ gem install gem_name
$ gem which gem_name
# outputs <full path to gem>/lib/gem_name.rb
$ rails console
> $LOAD_PATH << "<full path to gem>/lib"
> require 'gem_name'
I'm doing this to play around with different Ruby performance gems, although it might just be easier to add it to your Gemfile, bundle, and then revert before you push up your changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With