ruby-changes:72848
From: Nobuyoshi <ko1@a...>
Date: Sun, 7 Aug 2022 17:01:42 +0900 (JST)
Subject: [ruby-changes:72848] 0bb5525eb2 (master): Fix files for gemspec files direct-under lib
https://git.ruby-lang.org/ruby.git/commit/?id=0bb5525eb2 From 0bb5525eb2966b5821eb714c898b1c9c33221660 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 7 Aug 2022 17:01:22 +0900 Subject: Fix files for gemspec files direct-under lib Collected `files` lacked `lib` prefix. --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L773 remove_prefix(prefix, ruby_source) end else - [File.basename(@gemspec, '.gemspec') + '.rb'] + [@gemspec[%r[(?:[^/]+/)?[^/]+(?=\.gemspec\z)]] + '.rb'] end case File.basename(@gemspec, ".gemspec") -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/