1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix files for gemspec files direct-under lib

Collected `files` lacked `lib` prefix.
This commit is contained in:
Nobuyoshi Nakada 2022-08-07 17:01:22 +09:00 committed by GitHub
parent f2423be49d
commit 0bb5525eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-08-07 17:01:48 +09:00
Merged: https://github.com/ruby/ruby/pull/6219

Merged-By: nobu <nobu@ruby-lang.org>

View file

@ -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")