summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorTangRufus <[email protected]>2025-05-30 02:52:11 +0100
committerHiroshi SHIBATA <[email protected]>2025-06-03 08:05:31 +0900
commit68345e2930e18777f442a7ed67b5acbb37eeed16 ()
treed97edc8f893b91bb873db9912060cce0cad34e9d /lib/bundler
parent2745221ad857113bfa8f6c40065668efa034e591 (diff)
[rubygems/rubygems] Only ignore `test/` when generating gems with `minitest` or `test-unit`
https://.com/rubygems/rubygems/commit/c464f2036a
-rw-r--r--lib/bundler/cli/gem.rb4
1 files changed, 3 insertions, 1 deletions
@@ -74,7 +74,7 @@ module Bundler
required_ruby_version: required_ruby_version,
rust_builder_required_rubygems_version: rust_builder_required_rubygems_version,
minitest_constant_name: minitest_constant_name,
- ignore_files: %w[bin/ test/ features/ .git Gemfile],
}
ensure_safe_gem_name(name, constant_array)
@@ -125,12 +125,14 @@ module Bundler
"test/minitest/test_newgem.rb.tt" => "test/#{minitest_namespaced_path}.rb"
)
config[:test_task] = :test
when "test-unit"
templates.merge!(
"test/test-unit/test_helper.rb.tt" => "test/test_helper.rb",
"test/test-unit/newgem_test.rb.tt" => "test/#{namespaced_path}_test.rb"
)
config[:test_task] = :test
end
end