Personal Gemfiles

When doing Rails development its sometimes handy to have your own additions to the team's Gemfile. This is not as easy to accomplish as you might imagine.

First you need an environment variable, because the corresponding Bundler config option doesn't work:

1
2
export BUNDLE_GEMFILE=Gemfile.mine

Then you need your personal Gemfile.mine:

1
2
3
4
5
eval(IO.read('Gemfile'), binding)
gem 'mongrel', '>= 1.2.0.pre2'
gem 'irbtools'
gem 'irbtools-more'

The eval is because 'load' and 'require' don't work in Gemfiles.

Back

Metadata

Home

Leslie

This is the website of Leslie Viljoen. More info



This website is powered by Rails 4
log in