# File lib/bundler/dsl.rb, line 31 def source(source, options = {}) @source = case source when :gemcutter, :rubygems, :rubyforge then Source::Rubygems.new("uri" => "http://gemcutter.org") when String then Source::Rubygems.new("uri" => source) else source end options[:prepend] ? @sources.unshift(@source) : @sources << @source yield if block_given? @source ensure @source = nil end