1
0
Fork 0
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:
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

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