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 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
gemfile(true) do
|
gemfile(true) do
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
|
|
||||||
gem "rails"
|
gem "rails"
|
||||||
# If you want to test against edge Rails replace the previous line with this:
|
# If you want to test against edge Rails replace the previous line with this:
|
||||||
# gem "rails", github: "rails/rails", branch: "main"
|
# gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
@ -672,7 +672,6 @@ def target_rails_prerelease(self_command = "new")
|
|||||||
if !File.exist?(File.expand_path("Gemfile", destination_root))
|
if !File.exist?(File.expand_path("Gemfile", destination_root))
|
||||||
create_file("Gemfile", <<~GEMFILE)
|
create_file("Gemfile", <<~GEMFILE)
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
git_source(:github) { |repo| "https://github.com/\#{repo}.git" }
|
|
||||||
#{rails_gemfile_entry}
|
#{rails_gemfile_entry}
|
||||||
GEMFILE
|
GEMFILE
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
||||||
<% unless options[:skip_gemspec] -%>
|
<% unless options[:skip_gemspec] -%>
|
||||||
|
|
||||||
# Specify your gem's dependencies in <%= name %>.gemspec.
|
# Specify your gem's dependencies in <%= name %>.gemspec.
|
||||||
|
@ -183,11 +183,6 @@ def test_generating_test_files_in_full_mode
|
|||||||
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
|
assert_file "test/integration/navigation_test.rb", /ActionDispatch::IntegrationTest/
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_inclusion_of_git_source
|
|
||||||
run_generator [destination_root]
|
|
||||||
assert_file "Gemfile", /git_source/
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_inclusion_of_a_debugger
|
def test_inclusion_of_a_debugger
|
||||||
run_generator [destination_root, "--full"]
|
run_generator [destination_root, "--full"]
|
||||||
if defined?(JRUBY_VERSION)
|
if defined?(JRUBY_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user