When I install new gems, they all go to .gem/ruby/2.2.0/gems/, not to .rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/ . Is how this supposed to work? Now bundle install will take the gems from both dir, often each dir consist different versions of same gems, for example gem list shows test-unit (3.0.9, 3.0.8)
Yep, this is the intended behavior. Gems and rubies should be separated. If you use chruby as root, gems will be installed into the rubygems directory within /path/to/ruby/lib/ruby/gems/....
When I install new gems, they all go to .gem/ruby/2.2.0/gems/, not to .rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/ . Is how this supposed to work? Now bundle install will take the gems from both dir, often each dir consist different versions of same gems, for example gem list shows test-unit (3.0.9, 3.0.8)
$which ruby
$ which gem
My gem env: