summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-03-06 16:37:30 -0800
committerTerence Lee <hone02@gmail.com>2012-03-06 16:37:30 -0800
commit6d4962dbad7c620045a02393a5878b29ab11a55b (patch)
tree7a7b8f81ecd7e6dd69110cbd17b298b0b079a9f4
parent8880307d836ddb87fb5a69b5829eb2ff2c46a8e3 (diff)
parent047444cf3b841a9aef0696565781fe0bf1b38c1d (diff)
downloadbundler-6d4962dbad7c620045a02393a5878b29ab11a55b.tar.gz
Merge pull request #1695 from geemus/bundler
---
-rw-r--r--lib/bundler/dsl.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 7bf03cfd8c..f62cf03ee9 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -104,7 +104,11 @@ module Bundler
return
else
@source = source
- options[:prepend] ? @sources.unshift(@source) : @sources << @source
+ if options[:prepend]
+ @sources = [@source] | @sources
+ else
+ @sources = @sources | [@source]
+ end
yield if block_given?
return @source