Currently I use the following development workflow for my ruby project,
I want to check if I am doing something wrong or any place I can
improve.
- install rbenv at ~/.rbenv
- install ruby-build at ~/.rbenv/plugins/ruby-build
- download ruby and installed under ~/.rbenv/versions
When I start a new ruby project, e.g., under path ~/Projects/myproject
- cd to the project folder, save a .ruby-version in the project folder
- prepare the gemspec
- Run
export GEM_PATH=./vendor/bundle/ruby/1.9.1;
export GEM_HOME="$GEM_PATH";
gem install bundler --no-ri --no-rdoc;
bundle install --path vendor/bundle
gem list
So all the gems will be installed into the local vendor folder
Question: Is my workflow special or standard way to handle multiple ruby
version and gems version?