Skip to content

Commit

Permalink
Ignore to contain directory to Gem::Specification#files
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 28, 2025
1 parent b37c1c2 commit f4439b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion irb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Gem::Specification.new do |spec|
"exe/irb",
"irb.gemspec",
"man/irb.1",
] + Dir.chdir(File.expand_path('..', __FILE__)) { Dir.glob("lib/**/*") }
] + Dir.chdir(File.expand_path('..', __FILE__)) do
Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down

0 comments on commit f4439b4

Please sign in to comment.