如标题所述,我收到错误。具体来说,这个:
Undefined local variable or method `git_source' for Gemfile
from /var/www/canvas/Gemfile.d/_before.rb:53
我查了一下bundler:
canvas$ bundler -v
返回:
Bundler version 1.13.6
相关的代码部分是:
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include? ("/")
"https://github.com/#{repo_name}.git"
end
我理解'git_source'是在Bundler 1.6中引入的。想法?