summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-07 17:01:22 +0900
committerGitHub <noreply@github.com>2022-08-07 17:01:22 +0900
commit0bb5525eb2966b5821eb714c898b1c9c33221660 (patch)
tree0baf9c94dd1ea5fee4d594101dd26049d2267a44
parentf2423be49d6f1b6ae42f542c43b8b02d5115dc0c (diff)
Fix files for gemspec files direct-under lib
Collected `files` lacked `lib` prefix.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6219 Merged-By: nobu <nobu@ruby-lang.org>
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index ab3193f9e0..ba0d911fc2 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -773,7 +773,7 @@ module RbInstall
remove_prefix(prefix, ruby_source)
end
else
- [File.basename(@gemspec, '.gemspec') + '.rb']
+ [@gemspec[%r[(?:[^/]+/)?[^/]+(?=\.gemspec\z)]] + '.rb']
end
case File.basename(@gemspec, ".gemspec")