In Bundler, how can I override a dependency's

2019-06-17 10:22发布

I have a couple of needs in my application for which working on edge Rails (3.1) would help me complete my task faster.

The problem is that one of the gems I depend on doesn't yet officially support Rails 3.1, and it has a "~> 3.0.0" railties dependency, which creates a dependency conflict and bundler can't resolve my dependencies. Can I override that requirement in my app's Gemfile somehow, or is my only workaround to fork my dependency?

1条回答
SAY GOODBYE
2楼-- · 2019-06-17 11:01

Sadly, branching it is the only way to unravel that. Or, being more hacky, modifying the /vendor local installation of the gem.

查看更多
登录 后发表回答