aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-03-07 20:55:59 -0600
committerTerence Lee <hone02@gmail.com>2012-03-07 20:55:59 -0600
commitff04fa295f182b4fc8672aeab03929cac774935a (patch)
tree397484c82d1a2032fcee3ac1b5cb637ef6e6ac00 /lib/bundler/dsl.rb
parent47072f5e558bc5f0bea5957b092d5a7a6e59dffd (diff)
parent504ff2a323967f2af617786f439431c787d0e49b (diff)
downloadbundler-ff04fa295f182b4fc8672aeab03929cac774935a.tar.gz
Merge branch '1-1-stable'
Diffstat (limited to 'lib/bundler/dsl.rb')
-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 c8562e51..4148c11d 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -110,7 +110,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