summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-04-08 13:55:25 -0700
committerAndre Arko <andre@arko.net>2011-04-08 13:55:25 -0700
commit4ee73a75c146198562ad38276d357ba81b4463f4 (patch)
tree24b125529663bbba39031b7723c8b196bf3187e6
parent0ea5d76b9a420502d6bd9b4c621665b391587f50 (diff)
downloadbundler-4ee73a75c146198562ad38276d357ba81b4463f4.tar.gz
Bundler needs to work with ruby 1.8 too
-rw-r--r--lib/bundler/source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 251ddc4b7a..2bcd47fb4f 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -351,7 +351,7 @@ module Bundler
s.relative_loaded_from = "#{@name}.gemspec"
if expanded_path.join("bin").exist?
binaries = expanded_path.join("bin").children
- binaries.reject! &:directory?
+ binaries.reject!{|p| p.directory? }
s.executables = binaries.map{|c| c.basename.to_s }
end
end