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