【发布时间】:2018-05-06 01:32:16
【问题描述】:
喜欢path 和source 我想这样做:
git 'https://github.com/my_company', branch: 'rm_2422-rails5-upgrade' do
gem 'foo'
gem 'bar'
# many more gems...
end
这样做的想法是使用rm_2422-rails5-upgrade 分支获取带有URL 的https://github.com/my_company/foo.git 的foo gem。
我可以从bundler docs 看到它不是这样工作的,我知道我可以做到:
git 'foo', git: 'https://github.com/my_company/foo.git', branch: 'rm_2422-rails5-upgrade'
但我有 很多 需要从所述分支中提取的宝石。
我也查看了git_source,但这似乎也不适用于这种情况。
【问题讨论】: