mirror of https://github.com/rails/rails
Stop generating files with `git_source(:github)`
This has been built-in in Bundler for years now, and the builtin version is much better as it allows to point to a PR directly.
This commit is contained in:
parent
d4c40b6cf9
commit
40d6385123
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -5,8 +5,6 @@ require "bundler/inline"
|
|||
gemfile(true) do
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
gem "rails"
|
||||
# If you want to test against edge Rails replace the previous line with this:
|
||||
# gem "rails", github: "rails/rails", branch: "main"
|
||||
|
|
|
@ -672,7 +672,6 @@ module Rails
|
|||
if !File.exist?(File.expand_path("Gemfile", destination_root))
|
||||
create_file("Gemfile", <<~GEMFILE)
|
||||
source "https://rubygems.org"
|
||||
git_source(:github) { |repo| "https://github.com/\#{repo}.git" }
|
||||
#{rails_gemfile_entry}
|
||||
GEMFILE
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
source "https://rubygems.org"
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
<% unless options[:skip_gemspec] -%>
|
||||
|
||||
# Specify your gem's dependencies in <%= name %>.gemspec.
|
||||
|
|
|
@ -183,11 +183,6 @@ class PluginGeneratorTest < Rails::Generators::TestCase
|
|||
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
|
||||
end
|
||||
|
||||
def test_inclusion_of_git_source
|
||||
run_generator [destination_root]
|
||||
assert_file "Gemfile", /git_source/
|
||||
end
|
||||
|
||||
def test_inclusion_of_a_debugger
|
||||
run_generator [destination_root, "--full"]
|
||||
if defined?(JRUBY_VERSION)
|
||||
|
|
Loading…
Reference in New Issue