diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-07 17:01:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 17:01:22 +0900 |
commit | 0bb5525eb2966b5821eb714c898b1c9c33221660 (patch) | |
tree | 0baf9c94dd1ea5fee4d594101dd26049d2267a44 | |
parent | f2423be49d6f1b6ae42f542c43b8b02d5115dc0c (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-x | tool/rbinstall.rb | 2 |
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") |