diff options
Diffstat (limited to 'lib/bundler/source.rb')
-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 |