Why should I care about RVM's Gemset feature when I use Bundler?

前端 未结 3 664
旧时难觅i
旧时难觅i 2020-12-23 14:07

I just don\'t get it. I thought, Bundler was developed to resolve version conflicts between gems. So that I just have to require \"bundler/setup\" and

相关标签:
3条回答
  • 2020-12-23 14:25

    Why should I care about RVM's Gemset feature when I use Bundler?

    You shouldn't.

    Well, if you want to, you can care about, of course, so I should better say "You don't need to."

    I just listened to a podcast interview with one of the Bundler core team members who basically said that since he started using Bundler he stopped using Gemsets, because they are redundant.

    Here's a blog post that discusses the same issue, with some examples.

    0 讨论(0)
  • 2020-12-23 14:27

    You should definitely use gemsets if you anticipate ever having to change your bundler version. And you can use gemsets to manage gems that don't matter specifically to your Rails app (wirble etc.).

    0 讨论(0)
  • 2020-12-23 14:48

    When I am dealing with legacy code or forking other non-rails ruby projects that haven't for whatever reasons gone the bundle route, gemsets are such an awesome thing to have. I also find gemsets invaluable while developing gems. Nice to have multiple test environments to switch between and test the freshly built gem.

    Passenger doesn't read the .rvmrc to the best of my knowledge. You can't run different projects in passenger under different rubies to the best of my knowledge. My default rails setup has just bundler and rake in the global gemset. I let bundler take over from there and manage rest of the gems project wise just like you describe. Works pretty well.

    0 讨论(0)
提交回复
热议问题