Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Don't choke on dirs inside a :path gem's bin
Browse files Browse the repository at this point in the history
  • Loading branch information
epall authored and indirect committed Apr 8, 2011
1 parent f43bfe6 commit 0ea5d76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/bundler/source.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0ea5d76

Please sign in to comment.