diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-07-01 09:47:20 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-07-01 01:02:52 +0000 |
| commit | 05443bb7e92498ded149ad0324f8d4fc7321e9ee (patch) | |
| tree | d7650ac001c74eb9beada63a8378fd2f00e2cc9f /lib/optparse | |
| parent | 03e08a946d498e75e1bb31ddb28fc012dc4694f5 (diff) | |
[ruby/optparse] Use Dir.glob and base keyword arg for the installer of Ruby package
https://github.com/ruby/optparse/commit/24374b42d3
Diffstat (limited to 'lib/optparse')
| -rw-r--r-- | lib/optparse/optparse.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index 8589f1857c..cd292674a9 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage - spec.files = Dir["{doc,lib,misc}/**/{*,.document}"] + + spec.files = Dir.glob("{doc,lib,misc}/**/{*,.document}", base: File.expand_path("..", __FILE__)) + %w[README.md ChangeLog COPYING .document .rdoc_options] spec.bindir = "exe" spec.executables = [] |
