diff options
author | Eric Allen <ericpallen@gmail.com> | 2011-02-27 12:38:54 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-04-08 13:54:27 -0700 |
commit | 0ea5d76b9a420502d6bd9b4c621665b391587f50 (patch) | |
tree | f3231f573f5d5576255aac225b278539e290add4 | |
parent | f43bfe63e87f84e3dce87a409ff0d26216422ce2 (diff) | |
download | bundler-0ea5d76b9a420502d6bd9b4c621665b391587f50.tar.gz |
Don't choke on dirs inside a :path gem's bin
-rw-r--r-- | lib/bundler/source.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index b93449c91d..251ddc4b7a 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -350,8 +350,9 @@ module Bundler 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 |