diff --git a/guides/bug_report_templates/action_controller.rb b/guides/bug_report_templates/action_controller.rb index 8062d67293288..732e7af6b2e89 100644 --- a/guides/bug_report_templates/action_controller.rb +++ b/guides/bug_report_templates/action_controller.rb @@ -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" diff --git a/guides/bug_report_templates/action_mailbox.rb b/guides/bug_report_templates/action_mailbox.rb index cb4b599c4d309..35efb337b6cd0 100644 --- a/guides/bug_report_templates/action_mailbox.rb +++ b/guides/bug_report_templates/action_mailbox.rb @@ -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" diff --git a/guides/bug_report_templates/action_mailer.rb b/guides/bug_report_templates/action_mailer.rb index 5d97c231c2429..90a654479af7f 100644 --- a/guides/bug_report_templates/action_mailer.rb +++ b/guides/bug_report_templates/action_mailer.rb @@ -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" diff --git a/guides/bug_report_templates/action_view.rb b/guides/bug_report_templates/action_view.rb index 763739fa97ae8..9d215662bcc2f 100644 --- a/guides/bug_report_templates/action_view.rb +++ b/guides/bug_report_templates/action_view.rb @@ -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" diff --git a/guides/bug_report_templates/active_job.rb b/guides/bug_report_templates/active_job.rb index 8b551cc392aec..962b0eadd9bff 100644 --- a/guides/bug_report_templates/active_job.rb +++ b/guides/bug_report_templates/active_job.rb @@ -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" diff --git a/guides/bug_report_templates/active_record.rb b/guides/bug_report_templates/active_record.rb index d9fb143676481..6d300c2db5e60 100644 --- a/guides/bug_report_templates/active_record.rb +++ b/guides/bug_report_templates/active_record.rb @@ -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" diff --git a/guides/bug_report_templates/active_record_migrations.rb b/guides/bug_report_templates/active_record_migrations.rb index 38fbb8fe95d81..13265a014dcf4 100644 --- a/guides/bug_report_templates/active_record_migrations.rb +++ b/guides/bug_report_templates/active_record_migrations.rb @@ -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" diff --git a/guides/bug_report_templates/active_storage.rb b/guides/bug_report_templates/active_storage.rb index 237a92700634a..01b3ac6c8d592 100644 --- a/guides/bug_report_templates/active_storage.rb +++ b/guides/bug_report_templates/active_storage.rb @@ -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" diff --git a/guides/bug_report_templates/benchmark.rb b/guides/bug_report_templates/benchmark.rb index dcfa9c3d1a7d9..6497ff3ea20aa 100644 --- a/guides/bug_report_templates/benchmark.rb +++ b/guides/bug_report_templates/benchmark.rb @@ -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" diff --git a/guides/bug_report_templates/generic.rb b/guides/bug_report_templates/generic.rb index 92d082e9d2fd5..42cd995da4f7b 100644 --- a/guides/bug_report_templates/generic.rb +++ b/guides/bug_report_templates/generic.rb @@ -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" diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index d0042e6eeb728..0daea182bdecf 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -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 diff --git a/railties/lib/rails/generators/rails/plugin/templates/Gemfile.tt b/railties/lib/rails/generators/rails/plugin/templates/Gemfile.tt index 92ec405ccb1bd..b06a4194106d0 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/Gemfile.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/Gemfile.tt @@ -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. diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index a82e70ebb1458..44bd5ca661fb3 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -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)