Give each of your projects it’s own RVM gemset and use Bundler to install the required gems.
Based on this implementation by Wayne E. Seguin
gem install rvmify
cd my_project
rvmify .
Or do it with ruby:
Dir.glob("*").each do |dir|
RVMify.generate(dir)
end
Make sure you have the following line in the .rvmrc file in your home directory:
export rvm_gemset_create_on_use_flag=1
- Use Thor for generators
- Figure out how to handle bundler updates
- Provide a flag to override the gemset name
- Play nice with passenger
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don’t break it in a
future version unintentionally. - Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) - Send me a pull request. Bonus points for topic branches.
Copyright © 2010 Steve Agalloco. See LICENSE for details.