Skip to content

Commit

Permalink
Dir.glob is not working with bundled gems installation
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 9, 2025
1 parent a203879 commit 5810a76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion logger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/logger"
spec.licenses = ["Ruby", "BSD-2-Clause"]

spec.files = Dir.glob("lib/**/*.rb") + ["logger.gemspec", "BSDL", "COPYING"]
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.5.0"
Expand Down

0 comments on commit 5810a76

Please sign in to comment.