summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/dsl.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 0fbe77e712..32f45d97ec 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -77,7 +77,7 @@ module Bundler
@gemspecs << spec
- path path, "glob" => glob, "name" => spec.name do
+ path path, "glob" => glob, "name" => spec.name, "gemspec" => spec do
add_dependency spec.name
end
@@ -141,8 +141,7 @@ module Bundler
def path(path, options = {}, &blk)
source_options = normalize_hash(options).merge(
"path" => Pathname.new(path),
- "root_path" => gemfile_root,
- "gemspec" => gemspecs.find {|g| g.name == options["name"] }
+ "root_path" => gemfile_root
)
source_options["global"] = true unless block_given?