Skip to content

Commit

Permalink
Stop generating files with git_source(:github)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
byroot committed Apr 4, 2024
1 parent d4c40b6 commit 40d6385
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions guides/bug_report_templates/action_controller.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/action_mailbox.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/action_mailer.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/action_view.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/active_job.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/active_record.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/active_record_migrations.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/active_storage.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/benchmark.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
2 changes: 0 additions & 2 deletions guides/bug_report_templates/generic.rb
Expand Up @@ -5,8 +5,6 @@
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"
Expand Down
1 change: 0 additions & 1 deletion railties/lib/rails/generators/app_base.rb
Expand Up @@ -672,7 +672,6 @@ def target_rails_prerelease(self_command = "new")
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

Expand Down
@@ -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.
Expand Down
5 changes: 0 additions & 5 deletions railties/test/generators/plugin_generator_test.rb
Expand Up @@ -183,11 +183,6 @@ def test_generating_test_files_in_full_mode
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)
Expand Down

0 comments on commit 40d6385

Please sign in to comment.