Permalink
Browse files

Expand path relative to Gemfile for `gemspec`

  • Loading branch information...
mitchellh authored and indirect committed Aug 21, 2010
1 parent e6483c6 commit 5a0489f78bd5321c3e414725ab686b29fbeaf4f5
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/bundler/dsl.rb
View
@@ -24,6 +24,7 @@ def gemspec(opts = nil)
path = opts && opts[:path] || '.'
name = opts && opts[:name] || '*'
development_group = opts && opts[:development_group] || :development
+ path = File.expand_path(path, Bundler.default_gemfile.dirname)
gemspecs = Dir[File.join(path, "#{name}.gemspec")]
case gemspecs.size

0 comments on commit 5a0489f

Please sign in to comment.