summaryrefslogtreecommitdiff
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r--lib/bundler/dsl.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index feedfda8f9..d81b7a2dce 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -11,8 +11,6 @@ module Bundler
def initialize
@sources = [] # Gem.sources.map { |s| Source::Rubygems.new(:uri => s) }
@dependencies = []
- @git = nil
- @git_sources = {}
@group = nil
end
@@ -25,9 +23,13 @@ module Bundler
options[k.to_s] = v
end
- # Set defaults
+ # Set options
options["group"] ||= @group
+ if options["git"]
+ options["source"] = git(options["git"])
+ end
+
@dependencies << Dependency.new(name, version, options)
end
@@ -39,6 +41,7 @@ module Bundler
end
@sources << source
+ source
end
def path(path, options = {})