修订版 | bef3f6803c7702ab5052ffff3da08cbf2b3abb08 (tree) |
---|---|
时间 | 2020-08-31 02:10:56 |
作者 | HMML <hmml3939@gmai...> |
Commiter | HMML |
Fix gem fetching from github.
@@ -1,6 +1,11 @@ | ||
1 | 1 | #ruby '~> 2.6.0' |
2 | 2 | source "https://rubygems.org" |
3 | 3 | |
4 | +git_source(:github) do |repo_name| | |
5 | + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | |
6 | + "https://github.com/#{repo_name}.git" | |
7 | +end | |
8 | + | |
4 | 9 | # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' |
5 | 10 | gem "rails", "~> 5.2" |
6 | 11 | # Use sqlite3 as the database for Active Record |