Skip to content

Commit f4439b4

Browse files
committed
Ignore to contain directory to Gem::Specification#files
1 parent b37c1c2 commit f4439b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

irb.gemspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ Gem::Specification.new do |spec|
3333
"exe/irb",
3434
"irb.gemspec",
3535
"man/irb.1",
36-
] + Dir.chdir(File.expand_path('..', __FILE__)) { Dir.glob("lib/**/*") }
36+
] + Dir.chdir(File.expand_path('..', __FILE__)) do
37+
Dir.glob("lib/**/*").map {|f| f unless File.directory?(f) }.compact
38+
end
3739
spec.bindir = "exe"
3840
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
3941
spec.require_paths = ["lib"]

0 commit comments

Comments
 (0)