From 94591ae63b15dc4e16523444589aba1b14f4aea2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 1 Jul 2025 10:00:31 +0900 Subject: [PATCH] Use Dir.glob and base keyword arg for the installer of Ruby package --- json.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/json.gemspec b/json.gemspec index 07426363a..557573102 100644 --- a/json.gemspec +++ b/json.gemspec @@ -44,8 +44,7 @@ spec = Gem::Specification.new do |s| "LEGAL", "README.md", "json.gemspec", - *Dir["lib/**/*.rb"], - ] + ] + Dir.glob("lib/**/*.rb", base: File.expand_path("..", __FILE__)) if java_ext s.platform = 'java'