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:
Prathamesh Sonpatki 2016-11-18 12:17:22 +05:30
parent 796049ef3e
commit efcc361b32
No known key found for this signature in database
GPG Key ID: 8B90F6B89E2BCB71
1 changed files with 5 additions and 0 deletions

View File

@ -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 -%>