Permalink
Browse files

Don't choke on dirs inside a :path gem's bin

  • Loading branch information...
1 parent f43bfe6 commit 0ea5d76b9a420502d6bd9b4c621665b391587f50 @epall epall committed with indirect Feb 27, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/bundler/source.rb
View
@@ -350,8 +350,9 @@ def load_spec_files
s.summary = "Fake gemspec for #{@name}"
s.relative_loaded_from = "#{@name}.gemspec"
if expanded_path.join("bin").exist?
- binaries = expanded_path.join("bin").children.map{|c| c.basename.to_s }
- s.executables = binaries
+ binaries = expanded_path.join("bin").children
+ binaries.reject! &:directory?
+ s.executables = binaries.map{|c| c.basename.to_s }
end
end
end

0 comments on commit 0ea5d76

Please sign in to comment.