Skip to content

Commit f0062e8

Browse files
committed
Remove debug from the default Gemfile
It's baked in Ruby 3.1+ so not needed in most case. It also ship with a sligthly broken gemspec, so cause issues when bundling with `BUNDLE_DEPLOYMENT=1`. Ref: rubygems/rubygems#6082 (comment)
1 parent a17807e commit f0062e8

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

railties/lib/rails/generators/rails/app/templates/Gemfile.tt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ gem "bootsnap", require: false
3232
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin Ajax possible
3333
# gem "rack-cors"
3434
<%- end -%>
35-
<% if RUBY_ENGINE == "ruby" -%>
36-
37-
group :development, :test do
38-
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
39-
gem "debug", platforms: %i[ mri <%= bundler_windows_platforms %> ]
40-
end
41-
<% end -%>
4235

4336
group :development do
4437
<%- unless options.api? || options.skip_dev_gems? -%>

railties/test/generators/app_generator_test.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -600,15 +600,6 @@ def test_inclusion_of_jbuilder
600600
assert_gem "jbuilder"
601601
end
602602

603-
def test_inclusion_of_a_debugger
604-
run_generator
605-
if defined?(JRUBY_VERSION)
606-
assert_no_gem "debug"
607-
else
608-
assert_gem "debug"
609-
end
610-
end
611-
612603
def test_template_from_dir_pwd
613604
FileUtils.cd(Rails.root)
614605
assert_match(/It works from file!/, run_generator([destination_root, "-m", "lib/template.rb"]))

0 commit comments

Comments
 (0)