mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use secure source for gems referencing "github" in the generated apps
- New apps generated on master and latest bundler give warning about "github" source being insecure. - Use the same solution used for Rails master in the generated app's Gemfile to fix this issue.
This commit is contained in:
parent
796049ef3e
commit
efcc361b32
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
git_source(:github) do |repo_name|
|
||||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
||||
"https://github.com/#{repo_name}.git"
|
||||
end
|
||||
|
||||
<% gemfile_entries.each do |gem| -%>
|
||||
<% if gem.comment -%>
|
||||
|
||||
|
|
Loading…
Reference in a new issue