Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 0ea5d76b9a420502d6bd9b4c621665b391587f50 1 parent f43bfe6
Eric Allen epall authored indirect committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/bundler/source.rb
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.